[ 
https://issues.apache.org/jira/browse/HIVE-26742?focusedWorklogId=829291&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-829291
 ]

ASF GitHub Bot logged work on HIVE-26742:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 28/Nov/22 11:44
            Start Date: 28/Nov/22 11:44
    Worklog Time Spent: 10m 
      Work Description: szlta commented on code in PR #3767:
URL: https://github.com/apache/hive/pull/3767#discussion_r1033439710


##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergInputFormat.java:
##########
@@ -198,4 +203,10 @@ public void injectCaches(FileMetadataCache metadataCache, 
DataCache dataCache, C
     // no-op for Iceberg
   }
 
+  public static String getVectorizationConfName(String tableName) {
+    String[] components = tableName.split("\\.");
+    String dbAndTableName = components.length == 3 ? components[1] + "." +  
components[2] : tableName;

Review Comment:
   TableName.fromString could help here?





Issue Time Tracking
-------------------

    Worklog Id:     (was: 829291)
    Time Spent: 50m  (was: 40m)

> Iceberg: Vectorization fails incase of multiple tables in queries
> -----------------------------------------------------------------
>
>                 Key: HIVE-26742
>                 URL: https://issues.apache.org/jira/browse/HIVE-26742
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Ayush Saxena
>            Assignee: Ayush Saxena
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> If the iceberg table as orc.files.only set to False and we have multiple 
> tables. 
> {noformat}
> Caused by: java.lang.ClassCastException: class 
> org.apache.hadoop.hive.ql.exec.vector.DecimalColumnVector cannot be cast to 
> class org.apache.hadoop.hive.ql.exec.vector.LongColumnVector 
> (org.apache.hadoop.hive.ql.exec.vector.DecimalColumnVector and 
> org.apache.hadoop.hive.ql.exec.vector.LongColumnVector are in unnamed module 
> of loader 'app')
>       at 
> org.apache.hadoop.hive.ql.exec.vector.expressions.FuncLongToDecimal.evaluate(FuncLongToDecimal.java:53)
>       at 
> org.apache.hadoop.hive.ql.exec.vector.expressions.VectorExpression.evaluateChildren(VectorExpression.java:314)
>       at 
> org.apache.hadoop.hive.ql.exec.vector.expressions.gen.DecimalColMultiplyDecimalColumn.evaluate(DecimalColMultiplyDecimalColumn.java:56)
>       at 
> org.apache.hadoop.hive.ql.exec.vector.VectorSelectOperator.process(VectorSelectOperator.java:146)
>       ... 25 more{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to