You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "doyong365 (via GitHub)" <gi...@apache.org> on 2026/04/10 00:23:18 UTC
Re: [PR] [SEATUNNEL-10685] prevent timestamp_ntz from being saved as timestamp_ltz [seatunnel]
doyong365 commented on PR #10724:
URL: https://github.com/apache/seatunnel/pull/10724#issuecomment-4218812937
> Hi, @doyong365!
>
> Thank you for your hard work.
>
> The changes regarding Oracle, MySQL, PostgreSQL, and SQL Server all look good. And the e2e testing for these sources also looks good too.
>
> BTW, It seems we need to take a closer look at all connectors that use the timestamp_ntz type, like Snowflake
>
> <img alt="image" width="499" height="344" src="https://private-user-images.githubusercontent.com/45858414/575155132-cb0dd20e-603c-4c74-b785-a25b204d854a.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU3Nzg1MjYsIm5iZiI6MTc3NTc3ODIyNiwicGF0aCI6Ii80NTg1ODQxNC81NzUxNTUxMzItY2IwZGQyMGUtNjAzYy00Yzc0LWI3ODUtYTI1YjIwNGQ4NTRhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDA5VDIzNDM0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ5ZDZiNmZkZTgxM2I2MDhmMjNjMTIzYmE5YTY2OGU0ZjZlZGJlYWUzYjdlM2M1NjA2MmE2NWUwYWY2ODE1M2ImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.X1hyHUQ17L0ZEE9ZokVycCxVAZisLWEZPbk1Xj_AjPk">
> > src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/internal/dialect/snowflake/SnowflakeTypeConverter.java
>
> > src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/internal/dialect
>
> Please let me know if I am mistaken.
@och5351 Thank you for your reviewing
I have updated `SnowflakeTypeConverter.java` and `SnowflakeDataTypeConvertor.java` to correctly split and map `TIMESTAMP_LTZ` and `TIMESTAMP_TZ` into SeaTunnel's `OFFSET_DATE_TIME_TYPE` (`TIMESTAMP_TZ`), bringing them in line with the other JDBC dialects. The `reconvert` methods have also been patched to seamlessly convert back to Snowflake's native timezone-aware types.
The latest commit includes this end-to-end fix for Snowflake. PTAL!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org