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

Remove logic to set global limit from SemanticAnalyzer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.1.0
    • None
    • None
    • None

    Description

      Currently, we set up the global limit for the query in the SemanticAnalyzer. In addition, we have an optimization rule GlobalLimitOptimizer that prunes the input depending on the global limit and under certain conditions (off by default).

      We would like to remove the dependency on the SemanticAnalyzer and set the global limit within GlobalLimitOptimizer.

      Further, we need to solve the problem with SimpleFetchOptimizer, which only checks the limit but does not take into account the offset of the query, which I think might lead to incorrect results if FetchOptimizer kicks in (not verified yet).

      Attachments

        1. HIVE-14866.patch
          11 kB
          jcamachorodriguez
        2. HIVE-14866.02.patch
          27 kB
          jcamachorodriguez
        3. HIVE-14866.03.patch
          27 kB
          jcamachorodriguez

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: