Skip to content
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

HIVE-26041: Fix wrong type supplied for getLatestCommittedCompaction #3113

Closed
wants to merge 1 commit into from

Conversation

hsnusonic
Copy link
Contributor

We should use preparedStatement.setLong() to set correct type for CC_ID.

What changes were proposed in this pull request?

To fix a type error in prepared statement.

Why are the changes needed?

Most databases need correct type casting. I tested on PostgresSQL and the sql query for retrieving the latest compaction would fail.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Added one more test case for compaction id filter.

We should use preparedStatement.setLong() to set correct type for CC_ID.
@nrg4878
Copy link
Contributor

nrg4878 commented Mar 21, 2022

Change looks good to me. +1

@nrg4878
Copy link
Contributor

nrg4878 commented Mar 22, 2022

Fix has been merged. Please close the jira and the PR. Thank you

@hsnusonic hsnusonic closed this Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants