Skip to content

Commit

Permalink
fix: add stream name for source-file (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh-cldcvr committed Sep 2, 2024
1 parent 674edfa commit d4bcd49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-file/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ data:
connectorSubtype: file
connectorType: source
definitionId: 778daa7c-feaf-4db6-96f3-70fd645acc77
dockerImageTag: 0.3.17-v1.0.1
dockerImageTag: 0.3.17-v1.0.2
dockerRepository: airbyte/source-file
documentationUrl: https://docs.airbyte.com/integrations/sources/file
githubIssueLabel: source-file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ def reader_class(self):
@property
def stream_name(self) -> str:
file = urlparse(self._url)
if self._dataset_name:
return f"file_{self._dataset_name}"
return f"file_{self._provider['storage']}_{file.path.split('/')[-1]}"

def load_nested_json_schema(self, fp) -> dict:
Expand Down

0 comments on commit d4bcd49

Please sign in to comment.