Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-12097

AnalysisException for a COUNT(*) query on Iceberg table

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Impala 4.3.0
    • Frontend
    • None
    • ghx-label-12

    Description

      Repro below:

      create table t1_ice (a1 int) stored by iceberg;
      create table t2_ice (a2 int) stored by iceberg;
      insert into t1_ice values (10);
      insert into t2_ice values (10);
      with a as (select count(*) from t1_ice), b as (select count(*) from t2_ice) select * from a, b;
      
      ERROR: AnalysisException: aggregation without a FROM clause is not allowed
      

      This appears to be caused by IMPALA-11802. If I comment out the invocations of the new optimizePlainCountStarQueryV1() and V2() in SelectStmt.java, the query works fine.

      Attachments

        Issue Links

          Activity

            People

              lipenglin Li Penglin
              amansinha Aman Sinha
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: