-
Notifications
You must be signed in to change notification settings - Fork 112
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
validate schema: TIMESTAMP WITH TIME ZONE fails for Oracle/PostgreSQL validation #706
Comments
This should be resolved with Issue #710 - the allowlist will now accept the workaround. The 'timestamp' data type compared to 'timestamp with timezone' won't be considered a success off the bat since the data types technically are stored differently. |
In the test tables |
I see - in that case I think the issue is that we don't support the timestamp with time zone data type in our Oracle Ibis connector. Here we register the TIMESTAMP data type. We should add support for timezone if provided - something like this in third_party/ibis/ibis_oracle/client.py:
|
I've been doing some testing of this and notice that my test case passes for Oracle vs BigQuery, both of these systems don't pickup the time zone. |
Surveyed validate schema agg_value by engine.
So it looks like the correct course of action is remove the time zone information from PostgreSQL and not add it Oracle. @nehanene15 - any thoughts? Also need a new issue for SQL Server support. |
I'm no longer convinced regarding my statement "the correct course of action is remove the time zone information from PostgreSQL". I've been doing some column and row validation testing with time zoned data and am seeing mismatches there. If we don't know the column is a time zoned timestamp then we don't know to normalise it to UTC in the select phase. |
Work on this is currently blocked by #317 |
TIMESTAMP WITH LOCAL TIME ZONE is also unsupported:
|
This is also an issue for Snowflake. |
I've pushed fixes for schema validation to this branch for:
MySQL and SQL Server were fixed by the Ibis upgrade. It looks like Snowflake might be fixed in the latest Ibis so I can duplicate code from there.
@nehanene15 - do you know if there is already another work stream looking at implementing latest Snowflake code? |
I've kept this issue focused on schema validation and spun off a new issue for column and row validation: #917 |
Issue #907 is implementing column and row validations for Snowflake. Might be better to hold off on working on Snowflake for schema validation until that issue is complete. |
Change of plan. We'll continue with the PR for this issue without Snowflake support and add schema validation support for Snowflake TIMESTAMP_TZ to the related issue #916. |
Oracle test table:
PostgreSQL test table:
DVT command:
Output (relevant columns only):
Try to use
--allow-list
workaround but validation output is the same as above:The text was updated successfully, but these errors were encountered: