Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DD52418B25 for ; Mon, 13 Jul 2015 21:02:04 +0000 (UTC) Received: (qmail 51483 invoked by uid 500); 13 Jul 2015 21:02:04 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 51456 invoked by uid 500); 13 Jul 2015 21:02:04 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 51383 invoked by uid 99); 13 Jul 2015 21:02:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jul 2015 21:02:04 +0000 Date: Mon, 13 Jul 2015 21:02:04 +0000 (UTC) From: "Jinfeng Ni (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-3156) Calcite tracing is broken in Drill MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DRILL-3156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14625335#comment-14625335 ] Jinfeng Ni commented on DRILL-3156: ----------------------------------- [~amansinha100], could you please review the patch for DRILL-3156? Thanks! > 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: Aman Sinha > Fix For: 1.2.0 > > Attachments: 0001-DRILL-3156-Fix-Calcite-trace-by-registering-RelMetad.patch > > > 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)