urosstan-db opened a new pull request, #46669: URL: https://github.com/apache/spark/pull/46669
Some cast that are supported on spark, are not supported on external database. For example, spark supports casting from float to timestamp, but many other databases does not support that. Add new cast suite that can be reused by any connector (even non JDBC connectors) Add suites for MySQL and Postgres. Fix found issues for MySQL, Postgres and Snowflake. ### Why are the changes needed? To avoid exception because illegal cast was tried on remote data source. ### Does this PR introduce _any_ user-facing change? Yes, type mapping is a little bit changed for Postgres connector. ### How was this patch tested? Integration suites. ### Was this patch authored or co-authored using generative AI tooling? No -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
