Skip to content

Commit

Permalink
fix snippet type
Browse files Browse the repository at this point in the history
  • Loading branch information
AstrakhantsevaAA committed Jun 21, 2024
1 parent d88c688 commit f46c6a1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,12 +402,12 @@ You can also override the sql type by passing a `type_adapter_callback` function
This function takes an `sqlalchemy` data type and returns a new type (or `None` to force the column to be skipped/inferred depending on backend).

This is useful for example when:
a) You're loading a data type which is not supported by the destination (e.g. you need JSON type columns to be coerced to string)
b) You're using an sqlalchemy dialect which uses custom types that don't inherit from standard sqlalchemy types.
- You're loading a data type which is not supported by the destination (e.g. you need JSON type columns to be coerced to string)
- You're using an sqlalchemy dialect which uses custom types that don't inherit from standard sqlalchemy types.

Example, when loading timestamps from Snowflake you can make sure they translate to `timestamp` columns in the result schema:

```python
```py
import dlt
from snowflake.sqlalchemy import TIMESTAMP_NTZ
import sqlalchemy as sa
Expand Down

0 comments on commit f46c6a1

Please sign in to comment.