-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
22 changed files
with
630 additions
and
709 deletions.
There are no files selected for viewing
1,016 changes: 494 additions & 522 deletions
1,016
airbyte-cdk/python/airbyte_cdk/sources/declarative/models/declarative_component_schema.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 11 additions & 6 deletions
17
airbyte-cdk/python/airbyte_cdk/sources/file_based/file_types/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
from typing import Mapping | ||
from typing import Any, Mapping, Type | ||
|
||
from airbyte_cdk.sources.file_based.config.avro_format import AvroFormat | ||
from airbyte_cdk.sources.file_based.config.csv_format import CsvFormat | ||
from airbyte_cdk.sources.file_based.config.jsonl_format import JsonlFormat | ||
from airbyte_cdk.sources.file_based.config.parquet_format import ParquetFormat | ||
|
||
from .avro_parser import AvroParser | ||
from .csv_parser import CsvParser | ||
from .file_type_parser import FileTypeParser | ||
from .jsonl_parser import JsonlParser | ||
from .parquet_parser import ParquetParser | ||
|
||
default_parsers: Mapping[str, FileTypeParser] = { | ||
"avro": AvroParser(), | ||
"csv": CsvParser(), | ||
"jsonl": JsonlParser(), | ||
"parquet": ParquetParser(), | ||
default_parsers: Mapping[Type[Any], FileTypeParser] = { | ||
AvroFormat: AvroParser(), | ||
CsvFormat: CsvParser(), | ||
JsonlFormat: JsonlParser(), | ||
ParquetFormat: ParquetParser(), | ||
} | ||
|
||
__all__ = ["AvroParser", "CsvParser", "JsonlParser", "ParquetParser", "default_parsers"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.