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

Cardinality estimate is wrong for partitioned tables if we filter out all partitions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 1.3.1
    • Impala 1.4
    • None
    • None

    Description

      This only happens if all partitions are filtered out and we use the table estimate.

      Query: explain select * from functional.alltypes where year = 100000
      +------------------------------------------------------------------------+
      | Explain String                                                         |
      +------------------------------------------------------------------------+
      | Estimated Per-Host Requirements: Memory=-9223372036854775808B VCores=0 |
      |                                                                        |
      | F01:PLAN FRAGMENT [PARTITION=UNPARTITIONED]                            |
      |   01:EXCHANGE [PARTITION=UNPARTITIONED]                                |
      |      hosts=3 per-host-mem=unavailable                                  |
      |      tuple-ids=0 row-size=97B cardinality=7300                         |
      |                                                                        |
      | F00:PLAN FRAGMENT [PARTITION=RANDOM]                                   |
      |   DATASTREAM SINK [FRAGMENT=F01, EXCHANGE=01, PARTITION=UNPARTITIONED] |
      | 00:SCAN HDFSSCAN HDFS [functional.alltypes, PARTITION=RANDOM]          |
      |      partitions=0/24 size=0B                                           |
      |      table stats: 7300 rows total                                      |
      |      column stats: all                                                 |
      |      hosts=3 per-host-mem=0B                                           |
      |      tuple-ids=0 row-size=97B cardinality=7300                         |
      +------------------------------------------------------------------------+
      

      Attachments

        Activity

          People

            dtsirogiannis Dimitris Tsirogiannis
            nong_impala_60e1 Nong Li
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: