You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Jinfeng Ni (JIRA)" <ji...@apache.org> on 2015/05/20 21:12:00 UTC

[jira] [Created] (DRILL-3156) Calcite tracing is broken in Drill

Jinfeng Ni created DRILL-3156:
---------------------------------

             Summary: Calcite tracing is broken in Drill 
                 Key: DRILL-3156
                 URL: https://issues.apache.org/jira/browse/DRILL-3156
             Project: Apache Drill
          Issue Type: Bug
          Components: Query Planning & Optimization
            Reporter: Jinfeng Ni
            Assignee: Jinfeng Ni


Apache Calcite's tracing functionality plays an important role when we debug issues related to either logical planning  or physical planning in Drill.  

However, since Drill-705 introduced a HepPlanner to do query planning for Window Function, the tracing functionality is broken.

For instance, if I turn on Calcite tracing and set the tracing level to "FINER", as following:

{code}
org.apache.calcite.plan.RelOptPlanner.level = FINER
{code}

When submit a query to Drill, Drill hit AssertionError.

{code}
SYSTEM ERROR: java.lang.AssertionError: Internal error: should never get here

[Error Id: 3410c3b4-726f-487b-a1c4-287b6ae724aa on 172.16.0.120:31010]
{code}

The root cause of this Assertion is here :
{code}
Caused by: java.lang.AssertionError: Internal error: should never get here
  at org.apache.calcite.util.Util.newInternal(Util.java:775) ~[calcite-core-1.1.0-drill-r7.jar:1.1.0-drill-r7]
  at org.apache.calcite.plan.hep.HepRelVertex.computeSelfCost(HepRelVertex.java:68) ~[calcite-core-1.1.0-drill-r7.jar:1.1.0-drill-r7]
  at org.apache.calcite.rel.metadata.RelMdPercentageOriginalRows.getNonCumulativeCost(RelMdPercentageOriginalRows.java:165) ~[calcite-core-1.1.0-drill-r7.jar:1.1.0-drill-r7]
{code}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)