Skip to content
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

fix: custom snowflake type casting to python type #60

Merged
merged 3 commits into from
Jun 14, 2023

Conversation

pnadolny13
Copy link
Contributor

@pnadolny13 pnadolny13 commented Jun 14, 2023

Closes #59

I added a test that seeds a table before trying to load more data into it. You can see the error and how it fails in https://github.com/MeltanoLabs/target-snowflake/actions/runs/5271361651/jobs/9532121838?pr=60#step:6:118.

To fix it I overrode the custom snowflake type classes that we were using and implemented the python_type property for each.

@pnadolny13 pnadolny13 requested a review from kgpayne June 14, 2023 20:06
@pnadolny13
Copy link
Contributor Author

@kgpayne I'm going to merge this because this bug is blocking me from testing squared but let me know if theres a better way or if you disagree with the casting and I can update it.

@pnadolny13 pnadolny13 merged commit e1bb4c8 into main Jun 14, 2023
@pnadolny13 pnadolny13 deleted the fix_snowflake_type_casting_for_sorting branch June 14, 2023 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

bug: TIMESTAMP_NTZ() fails when casting to python type while sorting types
1 participant