-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load timestamp-data as timestamp_tz #224
Comments
I think that's hardcoded here:
Perhaps we could add a new target setting to switch to mapping from JSON PRs welcome! |
How would that work? Wouldn't it be required for the tap's schema to claim a given column has datetime-values with timezone information? I didn't find such an option in the Singer-SDK. |
In short, what I mean is we could add a user-level setting, e.g. The JSON Schema spec, which the target uses to determine column types, expects rfc3339 date-times1 but by default there's enforcement of that specific format, so expecting a full rfc3339 string by default might break some users' pipelines. Footnotes |
So what you're saying is:
|
All correct. In short, I worry that
Is that something you could confirm? Essentially I want to validate how snowflake handles a few cases: -- date
'2020-01-01'::TIMESTAMP_NTZ
'2020-01-01'::TIMESTAMP_TZ
-- date-time without tz
'2020-01-01T00:00:00'::TIMESTAMP_NTZ
'2020-01-01T00:00:00'::TIMESTAMP_TZ
-- date-time with offset
'2020-01-01T00:00:00+00:00'::TIMESTAMP_NTZ
'2020-01-01T00:00:00+00:00'::TIMESTAMP_TZ
-- date-time with Z
'2020-01-01T00:00:00+00:00Z'::TIMESTAMP_NTZ
'2020-01-01T00:00:00+00:00Z'::TIMESTAMP_TZ |
I have a tap which generates data with
DateTimeType
. Unfortunately, when loaded into Snowflake, the timezone information vanishes and data is stored astimestamp_ntz
. Am I doing something wrong? I would like to have it astimestamp_tz
The text was updated successfully, but these errors were encountered: