This is an automated email from the ASF dual-hosted git repository.

asolimando pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new 8592eb0c646 HIVE-27065: Exception in partition column statistics 
update with SQL Server db when histogram statistics is not enabled (Venu Reddy 
reviewed by Alessandro Solimando)
8592eb0c646 is described below

commit 8592eb0c6466234b9162b27c26bc2b13030cf71f
Author: Venu Reddy <[email protected]>
AuthorDate: Fri Feb 10 06:28:15 2023 +0530

    HIVE-27065: Exception in partition column statistics update with SQL Server 
db when histogram statistics is not enabled (Venu Reddy reviewed by Alessandro 
Solimando)
    
    Closes #4050
---
 .../main/java/org/apache/hadoop/hive/metastore/DirectSqlUpdateStat.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/DirectSqlUpdateStat.java
 
b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/DirectSqlUpdateStat.java
index 1f5e773bc2c..df1f77f2064 100644
--- 
a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/DirectSqlUpdateStat.java
+++ 
b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/DirectSqlUpdateStat.java
@@ -260,7 +260,7 @@ class DirectSqlUpdateStat {
         preparedStatement.setObject(15, 
mPartitionColumnStatistics.getNumNulls());
         preparedStatement.setObject(16, 
mPartitionColumnStatistics.getNumDVs());
         preparedStatement.setObject(17, 
mPartitionColumnStatistics.getBitVector());
-        preparedStatement.setObject(18, 
mPartitionColumnStatistics.getHistogram());
+        preparedStatement.setBytes(18, 
mPartitionColumnStatistics.getHistogram());
         preparedStatement.setObject(19, 
mPartitionColumnStatistics.getAvgColLen());
         preparedStatement.setObject(20, 
mPartitionColumnStatistics.getMaxColLen());
         preparedStatement.setObject(21, 
mPartitionColumnStatistics.getNumTrues());

Reply via email to