[
https://issues.apache.org/jira/browse/DRILL-3156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jinfeng Ni updated DRILL-3156:
------------------------------
Fix Version/s: (was: 1.4.0)
1.2.0
> 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
> Fix For: 1.2.0
>
>
> 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)