You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Quanlong Huang (Jira)" <ji...@apache.org> on 2021/06/23 13:24:00 UTC

[jira] [Created] (IMPALA-10765) IllegalStateException when inserting empty results to unpartitioned table with event processor enabled

Quanlong Huang created IMPALA-10765:
---------------------------------------

             Summary: IllegalStateException when inserting empty results to unpartitioned table with event processor enabled
                 Key: IMPALA-10765
                 URL: https://issues.apache.org/jira/browse/IMPALA-10765
             Project: IMPALA
          Issue Type: Bug
            Reporter: Quanlong Huang


Start impala cluster with event processor enabled:
{code:java}
bin/start-impala-cluster.py --catalogd_args='--hms_event_polling_interval_s=1'{code}

Create an empty table and create another table based on it.
{code:sql}
[localhost:21050] default> create table empty_tbl(id int);
Query: create table empty_tbl(id int)
+-------------------------+
| summary                 |
+-------------------------+
| Table has been created. |
+-------------------------+
Fetched 1 row(s) in 0.18s
[localhost:21050] default> create table ctas_tbl as select * from empty_tbl;
Query: create table ctas_tbl as select * from empty_tbl
Query submitted at: 2021-06-23 20:40:35 (Coordinator: http://quanlong-OptiPlex-BJ:25000)
Query progress can be monitored at: http://quanlong-OptiPlex-BJ:25000/query_plan?query_id=f3430a91b11bcdac:b804158800000000
ERROR: IllegalStateException: null
{code}

Logs of impalad:
{code}
I0623 20:40:39.971030  4426 client-request-state.cc:1281] Updating metastore with 1 altered partitions ()
I0623 20:40:39.971042  4426 client-request-state.cc:1310] Executing FinalizeDml() using CatalogService
E0623 20:40:40.131408  4426 client-request-state.cc:1320] ERROR Finalizing DML: IllegalStateException: null 
{code}

Logs of catalogd:
{code}
I0623 20:40:39.987920  4439 HdfsTable.java:764] Loaded file and block metadata for default.ctas_tbl partitions: . Time taken: 812.439us
I0623 20:40:39.988750  4439 TableLoader.java:103] Loaded metadata for: default.ctas_tbl (12ms)
I0623 20:40:39.989748  4385 jni-util.cc:286] java.lang.IllegalStateException
        at com.google.common.base.Preconditions.checkState(Preconditions.java:492)
        at org.apache.impala.service.CatalogOpExecutor.createInsertEvents(CatalogOpExecutor.java:5056)
        at org.apache.impala.service.CatalogOpExecutor.updateCatalog(CatalogOpExecutor.java:4962)
        at org.apache.impala.service.JniCatalog.updateCatalog(JniCatalog.java:360)
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org