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

Aggregation on union inside (inline) view not distributed properly.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 1.2.3
    • Impala 1.3
    • None
    • None

    Description

      The count of the following query is executed entirely by the coordinator.

      [localhost:21000] > explain select count(*) from (select * from functional.alltypes union all select * from functional.alltypessmall) t;
      Query: explain select count(*) from (select * from functional.alltypes union all select * from functional.alltypessmall) t
      +-----------------------------------------------------------+
      | Explain String                                            |
      +-----------------------------------------------------------+
      | Estimated Per-Host Requirements: Memory=192.00MB VCores=2 |
      |                                                           |
      | 03:AGGREGATE [FINALIZE]                                   |
      | |  output: count(*)                                       |
      | |                                                         |
      | 04:EXCHANGE [PARTITION=UNPARTITIONED]                     |
      | |                                                         |
      | |--06:MERGE                                               |
      | |  |                                                      |
      | |  02:SCAN HDFS [functional.alltypessmall]                |
      | |     partitions=4/4 size=12.64KB                         |
      | |                                                         |
      | 05:MERGE                                                  |
      | |                                                         |
      | 01:SCAN HDFS [functional.alltypes]                        |
      |    partitions=24/24 size=956.90KB                         |
      +-----------------------------------------------------------+
      

      Attachments

        Activity

          People

            alex.behm Alexander Behm
            alex.behm Alexander Behm
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: