-
Notifications
You must be signed in to change notification settings - Fork 418
Open
Labels
enhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requested
Description
Feature description
I have a postgres source that has an INTERVAL datatype and I'm using sql_database as I'm using my own incremental strategy based on xmin. I'm getting a warning as sqltypes.INTERVAL is not one of the handled data types
dlt/dlt/sources/sql_database/schema_types.py
Line 148 in 3577222
| else: |
Then later on, I get an error
dlt.pipeline.exceptions.PipelineStepFailed: Pipeline execution failed at stage extract when processing package 1744337717.574294 with exception:
<class 'TypeError'>
Type is not JSON serializable: datetime.timedelta
Are you a dlt user?
Yes, I run dlt in production.
Use case
I have source data with INTERVAL datatype
Proposed solution
Support INTERVAL / datetime.timedelta
Related issues
No response
edwinvehmaanpera
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requested
Type
Projects
Status
Todo