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: Fix json type casting #63

Merged
merged 16 commits into from
Jun 20, 2023
Merged

fix: Fix json type casting #63

merged 16 commits into from
Jun 20, 2023

Conversation

pnadolny13
Copy link
Contributor

@pnadolny13 pnadolny13 commented Jun 19, 2023

Closes #62

Test added before fix, failures in https://github.com/MeltanoLabs/target-snowflake/actions/runs/5316144247/jobs/9625351211?pr=63.

  • adds a tests to alter from timestamp to string and string to integer. UPDATE: turns out snowflake doesnt allow timestamp to string like I expected so it only alters string to int.
  • overrides _jsonschema_type_check method to fix bug from bug: anyOf sql types not parsed properly meltano/sdk#1774
  • overrides get_table_columns to cast custom types from sqlalchemy inspect to our custom types with python_type implemented

@pnadolny13 pnadolny13 changed the base branch from main to kgpayne/implement-batch June 19, 2023 21:30
@pnadolny13 pnadolny13 requested a review from kgpayne June 19, 2023 23:16
Base automatically changed from kgpayne/implement-batch to main June 20, 2023 16:10
@pnadolny13 pnadolny13 merged commit 86a9ad0 into main Jun 20, 2023
@pnadolny13 pnadolny13 deleted the fix_json_type_casting branch June 20, 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: altering existing columns with custom snowflake types fails
3 participants