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

Long compilation time of complex query due to analysis for materialized view rewrite

    XMLWordPrintableJSON

Details

    Description

      When compiling query the optimizer tries to rewrite the query plan or subtrees of the plan to use materialized view scans.

      If

      set hive.materializedview.rewriting.sql.subquery=false;
      

      the compilation succeed in less then 10 sec otherwise it takes several minutes (~ 5min) depending on the hardware.

      Attachments

        1. sample.png
          21 kB
          Krisztian Kasa

        Issue Links

          Activity

            People

              kkasa Krisztian Kasa
              kkasa Krisztian Kasa
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 1h 50m
                  1h 50m