Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-9132 CBO: Calcite Operator To Hive Operator (Calcite Return Path)
  3. HIVE-10116

CBO (Calcite Return Path): RelMdSize throws an Exception when Join is actually a Semijoin [CBO branch]

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersConvert to IssueMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • cbo-branch
    • cbo-branch
    • CBO
    • None

    Description

      cbo_semijoin.q reproduces the error.

      Stacktrace:

      2015-03-26 09:55:20,652 ERROR [main]: parse.CalcitePlanner (CalcitePlanner.java:genOPTree(269)) - CBO failed, skipping CBO.
      java.lang.ArrayIndexOutOfBoundsException: 3
              at org.apache.calcite.rel.metadata.RelMdSize.averageColumnSizes(RelMdSize.java:193)
              at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.apache.calcite.rel.metadata.ReflectiveRelMetadataProvider$2$1.invoke(ReflectiveRelMetadataProvider.java:194)
              at com.sun.proxy.$Proxy30.averageColumnSizes(Unknown Source)
              at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at 
              at java.lang.reflect.Method.invoke(Method.java:606)
      

      Attachments

        1. HIVE-10116.cbo.patch
          2 kB
          jcamachorodriguez

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment