You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NotImplementedError: Default TypeEngine.as_generic() heuristic method was unsuccessful for target_snowflake.snowflake_types.TIMESTAMP_NTZ. A custom as_generic() method must be implemented for this type class.
To reproduce
Take any table that's already in Snowflake smoke-test works, run meltano run tap-smoke-test target-snowflake
Change one of the metadata fields that has the column type of TIMESTAMP_NTZ to DATE see below for an example
UPDATE MELTANO_DATABASE.ZENOTI.ANIMALS SET _SDC_EXTRACTED_AT_TEMP = TO_DATE(SDC_EXTRACTED_AT);
ALTER TABLE MELTANO_DATABASE.ZENOTI.ANIMALS DROP COLUMN _SDC_EXTRACTED_AT;
ALTER TABLE MELTANO_DATABASE.ZENOTI.ANIMALS RENAME COLUMN _SDC_EXTRACTED_AT_TEMP to _SDC_EXTRACTED_AT;
Run it again meltano run tap-smoke-test target-snowflake You'll get the same error
The text was updated successfully, but these errors were encountered:
I'm not so sure. Converting between the two in snowflake (ignore the target) takes some migration as well like
UPDATE MELTANO_DATABASE.ZENOTI.ANIMALS SET _SDC_EXTRACTED_AT_TEMP = TO_DATE(SDC_EXTRACTED_AT);
ALTER TABLE MELTANO_DATABASE.ZENOTI.ANIMALS DROP COLUMN _SDC_EXTRACTED_AT;
ALTER TABLE MELTANO_DATABASE.ZENOTI.ANIMALS RENAME COLUMN _SDC_EXTRACTED_AT_TEMP to _SDC_EXTRACTED_AT;
There's really 2 questions I think with this issue
Should we migrate an existing TIMESTAMP_NTZ column to a Date Column if the schemas are different?
If yes - We need to detect the difference and make an auto migration plan (lossless I think is rename the old column, migrate the data from the old column into the new column, use the new column going forward)
If no (seems incorrect) - We need to convert the data from a timestamp to a date field
Error:
NotImplementedError: Default TypeEngine.as_generic() heuristic method was unsuccessful for target_snowflake.snowflake_types.TIMESTAMP_NTZ. A custom as_generic() method must be implemented for this type class.
To reproduce
meltano run tap-smoke-test target-snowflake
meltano run tap-smoke-test target-snowflake
You'll get the same errorThe text was updated successfully, but these errors were encountered: