-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Consider modern APIs for JDBC connectors' predicate pushdown of TIME/TIMESTAMP WITH TIME ZONE #9988
Comments
@findepi is this change in approach suggested somewhere in JDBC 4.2 specs? Could you please point out references? |
@amitdesai03 JDBC spec doesn't suggest a change, as always, it's backward compatible. However
(your question made me realize the spec talks about My reasoning is that
Anyway, I would abstain from any work on this until #7122 is resolved. |
This issue has been automatically marked as stale because it has not had any activity in the last 2 years. If you feel that this issue is important, just comment and the stale tag will be removed; otherwise it will be closed in 7 days. This is an attempt to ensure that our open issues remain valuable and relevant so that we can keep track of what needs to be done and prioritize the right things. |
When a connector extending
presto-base-jdbc
getsTIME WITH TIME ZONE
/TIMESTAMP WITH TIME ZONE
pushed down, it passes it to the database usingTIME W/TZ
:statement.setTime()
, whereas as of JDBC 4.2statement.setObject(OffsetTime.of(...))
should be used insteadTIMESTAMP W/TZ
:statement.setTimestamp()
, whereas as of JDBC 4.2statement.setObject(ZonedDateTime.of(...))
(or perhapsOffsetDatetime
?) should be used instead(relevant code is in
com.facebook.presto.plugin.jdbc.QueryBuilder#buildSql
)The text was updated successfully, but these errors were encountered: