You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/05/26 08:52:00 UTC
[jira] [Work logged] (HIVE-26267) Addendum to HIVE-26107: perpared statement is not working on Postgres
[ https://issues.apache.org/jira/browse/HIVE-26267?focusedWorklogId=774949&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-774949 ]
ASF GitHub Bot logged work on HIVE-26267:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 26/May/22 08:51
Start Date: 26/May/22 08:51
Worklog Time Spent: 10m
Work Description: veghlaci05 opened a new pull request, #3325:
URL: https://github.com/apache/hive/pull/3325
### What changes were proposed in this pull request?
In org.apache.hadoop.hive.metastore.txn.TxnHandler#compact() use the java.sql.PreparedStatement#setXXX methods instead of the org.apache.hadoop.hive.metastore.tools.SQLGenerator#prepareStmtWithParameters() method.
### Why are the changes needed?
The SQL statement modified by HIVE-26107 in org.apache.hadoop.hive.metastore.txn.TxnHandler#compact is not working with Postgres DB. org.apache.hadoop.hive.metastore.tools.SQLGenerator#prepareStmtWithParameters() can handle only string parameters.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Manually and through unit tests
Issue Time Tracking
-------------------
Worklog Id: (was: 774949)
Remaining Estimate: 0h
Time Spent: 10m
> Addendum to HIVE-26107: perpared statement is not working on Postgres
> ---------------------------------------------------------------------
>
> Key: HIVE-26267
> URL: https://issues.apache.org/jira/browse/HIVE-26267
> Project: Hive
> Issue Type: Bug
> Reporter: László Végh
> Assignee: László Végh
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> The assembled prepared statement in
> {code:java}
> org.apache.hadoop.hive.metastore.txn.TxnHandler#compact{code}
> does not work for Postgres DB.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)