Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-11160 Auto-gather column stats
  3. HIVE-16249

With column stats, mergejoin.q throws NPE

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0, 2.1.0
    • 2.3.0
    • None
    • None

    Description

      stack trace:

      2017-03-17T16:00:26,356 ERROR [3d512d4d-72b5-48fc-92cb-0c72f7c876e5 main] parse.CalcitePlanner: CBO failed, skipping CBO.
      java.lang.NullPointerException
              at org.apache.calcite.rel.metadata.RelMdUtil.estimateFilteredRows(RelMdUtil.java:719) ~[calcite-core-1.10.0.jar:1.10.0]
              at org.apache.calcite.rel.metadata.RelMdRowCount.getRowCount(RelMdRowCount.java:123) ~[calcite-core-1.10.0.jar:1.10.0]
              at GeneratedMetadataHandler_RowCount.getRowCount_$(Unknown Source) ~[?:?]
              at GeneratedMetadataHandler_RowCount.getRowCount(Unknown Source) ~[?:?]
              at GeneratedMetadataHandler_RowCount.getRowCount_$(Unknown Source) ~[?:?]
              at GeneratedMetadataHandler_RowCount.getRowCount(Unknown Source) ~[?:?]
              at org.apache.calcite.rel.metadata.RelMetadataQuery.getRowCount(RelMetadataQuery.java:201) ~[calcite-core-1.10.0.jar:1.10.0]
              at org.apache.calcite.rel.metadata.RelMdRowCount.getRowCount(RelMdRowCount.java:132) ~[calcite-core-1.10.0.jar:1.10.0]
              at GeneratedMetadataHandler_RowCount.getRowCount_$(Unknown Source) ~[?:?]
              at GeneratedMetadataHandler_RowCount.getRowCount(Unknown Source) ~[?:?]
              at GeneratedMetadataHandler_RowCount.getRowCount_$(Unknown Source) ~[?:?]
              at GeneratedMetadataHandler_RowCount.getRowCount(Unknown Source) ~[?:?]
              at org.apache.calcite.rel.metadata.RelMetadataQuery.getRowCount(RelMetadataQuery.java:201) ~[calcite-core-1.10.0.jar:1.10.0]
              at org.apache.calcite.rel.rules.LoptOptimizeJoinRule.swapInputs(LoptOptimizeJoinRule.java:1866) ~[calcite-core-1.10.0.jar:1.10.0]
              at org.apache.calcite.rel.rules.LoptOptimizeJoinRule.createJoinSubtree(LoptOptimizeJoinRule.java:1739) ~[calcite-core-1.10.0.jar:1.10.0]
              at org.apache.calcite.rel.rules.LoptOptimizeJoinRule.addToTop(LoptOptimizeJoinRule.java:1216) ~[calcite-core-1.10.0.jar:1.10.0]
      

      Attachments

        1. HIVE-16249.01.patch
          13 kB
          Pengcheng Xiong
        2. HIVE-16249.02.patch
          13 kB
          Pengcheng Xiong

        Activity

          People

            pxiong Pengcheng Xiong
            pxiong Pengcheng Xiong
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: