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

Memoize toStringTree() for ASTNode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 1.0.0, 1.1.0, 1.2.0
    • None
    • Query Planning
    • None

    Description

      Currently it defaults to BaseTree::toStringTree() which always computes it recursively. For very large trees it becomes expensive. On one particular test query compilation time went down from 55 seconds to 2 seconds.

      Attachments

        1. HIVE-11281.patch
          2 kB
          Ashutosh Chauhan
        2. HIVE-11281.2.patch
          2 kB
          Ashutosh Chauhan
        3. HIVE-11281.3.patch
          1 kB
          Ashutosh Chauhan

        Issue Links

          Activity

            People

              ashutoshc Ashutosh Chauhan
              ashutoshc Ashutosh Chauhan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: