Skip to content

Commit

Permalink
sources: integrate dynamodb
Browse files Browse the repository at this point in the history
  • Loading branch information
turtleDev committed Dec 11, 2024
1 parent 902d8cc commit 45c1628
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions ingestr/src/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
SQL_SOURCE_SCHEMES = [
"bigquery",
"duckdb",
"dynamodb",
"mssql",
"mysql",
"mysql+pymysql",
Expand Down
4 changes: 4 additions & 0 deletions ingestr/src/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ def handles_incrementality(self) -> bool:
def dlt_source(self, uri: str, table: str, **kwargs):
table_fields = table_string_to_dataclass(table)

if uri.startswith("dynamodb://"):
# schema as a concept doesn't exist in dynamodb
table_fields.dataset = None

incremental = None
if kwargs.get("incremental_key"):
start_value = kwargs.get("interval_start")
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ pyairtable==2.3.3
types-requests==2.32.0.20240907
s3fs==2024.10.0
pyarrow==18.1.0
pyathena==3.9.0
pyathena==3.9.0
pydynamodb==0.7.1

0 comments on commit 45c1628

Please sign in to comment.