-
Notifications
You must be signed in to change notification settings - Fork 335
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
[#1154] fix(trino-connector): Fix the issue with joins causing errors in PostgreSQL. #1177
Conversation
return internalSplitManager.getSplits( | ||
gravitinoTransactionHandle.getInternalTransactionHandle(), | ||
session, | ||
gravitinoTableHandle.getInternalTableHandle(), | ||
dynamicFilter, | ||
DynamicFilter.EMPTY, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When will we use a non-null dynamicFilter?
Can you explain the real cause of the problem more clearly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the current implementation of dynamicFilter
, it includes ColumnHandle
, and this columnhandle is currently GravitinoColumnHandle
. When it's passed to the following internal connector, such as PG, it will throw an error. The PG connector only accepts JDBCColumnHandle
. Here, we pass DynamicFilter.EMPTY, which can temporarily solve this problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
… in PostgreSQL. (#1177) ### What changes were proposed in this pull request? Fix the issue with joins causing errors in PostgreSQL. Error message is "Cannot cast com.datastrato.gravitino.trino.connector.GravitinoColumnHandle to io.trino.plugin.jdbc.JdbcColumnHandle" ### Why are the changes needed? Fix: #1154 ### Does this PR introduce _any_ user-facing change? NO ### How was this patch tested? UT
What changes were proposed in this pull request?
Fix the issue with joins causing errors in PostgreSQL.
Error message is "Cannot cast com.datastrato.gravitino.trino.connector.GravitinoColumnHandle to io.trino.plugin.jdbc.JdbcColumnHandle"
Why are the changes needed?
Fix: #1154
Does this PR introduce any user-facing change?
NO
How was this patch tested?
UT