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

Row Count Mismatch: Subquery

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 2.1
    • Product Backlog
    • None

    Description

      Impala Query:

      SELECT DISTINCT
      (t1.int_col) - (t1.tinyint_col) AS int_col,
      t1.bigint_col
      FROM alltypestiny t1
      WHERE
      EXISTS (SELECT
      ABS(MIN(bigint_col)) AS int_col
      FROM alltypestiny
      WHERE
      (t1.int_col) = (year))
      

      Postgres Query:

      SELECT DISTINCT
      (t1.int_col) - (t1.tinyint_col) AS int_col,
      t1.bigint_col
      FROM alltypestiny t1
      WHERE
      EXISTS (SELECT
      ABS(MIN(bigint_col)) AS int_col
      FROM alltypestiny
      WHERE
      (t1.int_col) = (year))
      

      Number of rows returned by Impala: 0
      Number of rows returned by Postgres: 2
      DB: Functional
      File Format: Text/None
      git Hash: c295948

      Attachments

        Activity

          People

            dtsirogiannis Dimitris Tsirogiannis
            tarasbob Taras Bobrovytsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: