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

Log CBO plan after rule application for debugging purposes

    XMLWordPrintableJSON

Details

    Description

      In many cases, we want to identify which rule lead to a certain transformation in the plan or need to observe how the query plan evolves by applying some rules in order to fix some bug or find the right place to introduce another optimization step.

      Currently there are some logs during the application of a rule triggered by the HepPlanner and VolcanoPlanner but they more or less display only the top operator of the transformation and not the whole subtree.

      It would help if instead of displaying only the top operator we logged the equivalent of EXPLAIN CBO on the transformed sub-tree. 

      The change is going to be introduced soon by default in Calcite (CALCITE-4704) but till we update to that version it would help to have this functionality already in Hive.

      For more examples about the proposed change have a look in CALCITE-4704.

      Attachments

        Issue Links

          Activity

            People

              zabetak Stamatis Zampetakis
              zabetak Stamatis Zampetakis
              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 - 50m
                  50m