Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-20976

JDBC queries containing joins gives wrong results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1
    • JDBC, StorageHandler
    • None

    Description

      JDBC queries that have joins against self table gives wrong results.
      e.g.

       
      SELECT
      username AS `username`,
      SUM(double1) AS `sum_double1`
      FROM
      jdbc_table_with_nulls `tbl1`
        JOIN (
          SELECT
          username AS `username`,
          SUM(double1) AS `sum_double2`
          FROM jdbc_table_with_nulls
          GROUP BY `username`
          ORDER BY `sum_double2`
          DESC  LIMIT 10
        )
        `tbl2`
          ON (`tbl1`.`username` = `tbl2`.`username`)
      GROUP BY `tbl1`.`username`;
      

      Similar to HIVE-19762.

      Attachments

        1. HIVE-20976.patch
          23 kB
          jcamachorodriguez
        2. HIVE-20976.patch
          23 kB
          jcamachorodriguez
        3. HIVE-20976.patch
          23 kB
          jcamachorodriguez
        4. HIVE-20976.patch
          23 kB
          jcamachorodriguez

        Activity

          People

            jcamacho Jesús Camacho Rodríguez
            jcamacho Jesús Camacho Rodríguez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: