Fang-Yu Rao created IMPALA-14688:
------------------------------------

             Summary: TestIcebergV2Table.test_merge_duplicate_check could fail 
due to IllegalArgumentException
                 Key: IMPALA-14688
                 URL: https://issues.apache.org/jira/browse/IMPALA-14688
             Project: IMPALA
          Issue Type: Improvement
            Reporter: Fang-Yu Rao


We found that TestIcebergV2Table::test_merge_duplicate_check() in 
https://github.com/apache/impala/blob/master/tests/query_test/test_iceberg.py. 
could fail due to IllegalArgumentException. The failed query was last one in 
the following.
{code}
set abort_on_error=1;
set batch_size=0;
set disable_codegen=False;
set disable_codegen_rows_threshold=0;
set exec_single_node_rows_threshold=0;
set test_replan=1;
set disable_optimized_iceberg_v2_read=1;

create table merge_duplicate_check
partitioned by spec(id)
stored by iceberg
tblproperties('format-version'='2') as
    select id, bigint_col, string_col
    from functional_parquet.alltypes
    where id < 1000;

merge into merge_duplicate_check target using functional.alltypes source on 
(target.id = source.id)
when matched then update set target.bigint_col = target.bigint_col + 1;
{code}

The stack trace collected from the log file is the following.
{code}
I20260116 22:37:07.538149 106546 jni-util.cc:321] 
a0493fea24309522:861750e000000000] java.lang.IllegalArgumentException
        at 
com.google.common.base.Preconditions.checkArgument(Preconditions.java:129)
        at 
org.apache.impala.service.FrontendProfile.addChildrenProfile(FrontendProfile.java:212)
        at 
org.apache.impala.service.FrontendProfile.finalizeStagedChildrenProfiles(FrontendProfile.java:226)
        at 
org.apache.impala.service.Frontend.getTExecRequest(Frontend.java:2780)
        at 
org.apache.impala.service.Frontend.getTExecRequestWithFallback(Frontend.java:2426)
        at 
org.apache.impala.service.Frontend.createExecRequest(Frontend.java:2113)
        at 
org.apache.impala.service.JniFrontend.createExecRequest(JniFrontend.java:175)
{code}



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

Reply via email to