[ 
https://issues.apache.org/jira/browse/HIVE-28221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17842234#comment-17842234
 ] 

Seonggon Namgung commented on HIVE-28221:
-----------------------------------------

[~zhangbutao] , we enable this assertion by appending "-ea" option to 
"tez.am.launch.cmd-opts" in "hive-site.xml".

Exmaple:
{code:java}
diff --git a/data/conf/iceberg/tez/hive-site.xml 
b/data/conf/iceberg/tez/hive-site.xml
index 272859d..9b422e0 100644
--- a/data/conf/iceberg/tez/hive-site.xml
+++ b/data/conf/iceberg/tez/hive-site.xml
@@ -261,7 +261,7 @@
 
 <property>
   <name>tez.am.launch.cmd-opts</name>
-  <value> -Dlog4j.configurationFile=tez-container-log4j2.properties 
-Dtez.container.log.level=INFO -Dtez.container.root.logger=CLA </value>
+  <value> -Dlog4j.configurationFile=tez-container-log4j2.properties 
-Dtez.container.log.level=INFO -Dtez.container.root.logger=CLA -ea</value>
 </property>
 
 <property> {code}

> iceberg-handler/dynamic_partition_pruning.q fails in 
> GenericUDFIn.getDisplayString() if assertion check is enabled
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-28221
>                 URL: https://issues.apache.org/jira/browse/HIVE-28221
>             Project: Hive
>          Issue Type: Bug
>          Components: Iceberg integration
>    Affects Versions: 4.0.0
>            Reporter: Sungwoo Park
>            Priority: Major
>
> If assertion checking is enabled, 
> ql/src/test/queries/clientpositive/dynamic_partition_pruning.q fails with an 
> assertion failure in the following method of 
> ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFIn.java:
> {code:java}
>    public String getDisplayString(String[] children) {
>     assert (children.length >= 2);
> {code}
> While dynamic_partition_pruning.q is running, getDisplayString() is called 
> with children.length == 1.



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

Reply via email to