Open visch opened 11 months ago
I wonder if this is related to https://github.com/MeltanoLabs/tap-snowflake/pull/34. I believe the context is that the SDK treats all dates as datetimes.
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
TIMESTAMP_NTZ
column to a Date
Column if the schemas are different?Similar to https://github.com/MeltanoLabs/target-snowflake/issues/120
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 error