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

HiveJoinAddNotNullRule support for range predicates

    XMLWordPrintableJSON

Details

    Description

      For instance, given the following query:

      SELECT t0.col0, t0.col1
      FROM
        (
          SELECT col0, col1 FROM tab
        ) AS t0
        INNER JOIN
        (
          SELECT col0, col1 FROM tab
        ) AS t1
      ON t0.col0 < t1.col0 AND t0.col1 > t1.col1
      

      we could still infer that col0 and col1 cannot be null for any of the inputs. Currently we do not.

      Attachments

        1. HIVE-21231.14.patch
          1.78 MB
          Miklos Gergely
        2. HIVE-21231.13.patch
          1.78 MB
          Miklos Gergely
        3. HIVE-21231.12.patch
          1.78 MB
          Miklos Gergely
        4. HIVE-21231.11.patch
          1.76 MB
          Miklos Gergely
        5. HIVE-21231.10.patch
          1.76 MB
          Miklos Gergely
        6. HIVE-21231.09.patch
          1.76 MB
          Miklos Gergely
        7. HIVE-21231.08.patch
          1.76 MB
          Miklos Gergely
        8. HIVE-21231.07.patch
          1.75 MB
          Miklos Gergely
        9. HIVE-21231.06.patch
          1.91 MB
          Miklos Gergely
        10. HIVE-21231.05.patch
          1.90 MB
          Miklos Gergely
        11. HIVE-21231.04.patch
          1.90 MB
          Miklos Gergely
        12. HIVE-21231.03.patch
          1.90 MB
          Miklos Gergely
        13. HIVE-21231.02.patch
          1.90 MB
          Miklos Gergely
        14. HIVE-21231.01.patch
          19 kB
          Miklos Gergely

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m