Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AC7C4200B8F for ; Thu, 25 Aug 2016 20:36:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AAFC1160AA4; Thu, 25 Aug 2016 18:36:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BB2F4160ABE for ; Thu, 25 Aug 2016 20:36:21 +0200 (CEST) Received: (qmail 64223 invoked by uid 500); 25 Aug 2016 18:36:21 -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 64180 invoked by uid 99); 25 Aug 2016 18:36:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2016 18:36:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C5B402C0151 for ; Thu, 25 Aug 2016 18:36:20 +0000 (UTC) Date: Thu, 25 Aug 2016 18:36:20 +0000 (UTC) From: "Christopher Altman (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-4863) JDBC Storage Plugin SYSTEM ERROR: NullPointerException Error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 25 Aug 2016 18:36:22 -0000 [ https://issues.apache.org/jira/browse/DRILL-4863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15437429#comment-15437429 ] Christopher Altman commented on DRILL-4863: ------------------------------------------- {code} 0: jdbc:drill:zk=local> !set maxwidth 10000 0: jdbc:drill:zk=local> explain plan for SELECT * FROM (SELECT count(*) from mysql.scan_test_data.acme_sales ) T LIMIT 0; Error: SYSTEM ERROR: NullPointerException [Error Id: 053cb4d5-ca44-4f64-bda5-e7352532d15e on 10.0.1.241:31010] (state=,code=0) {code} AND when changing the limit to 1 {code} 0: jdbc:drill:zk=local> explain plan for SELECT * FROM (SELECT count(*) from mysql.scan_test_data.acme_sales ) T LIMIT 1; +------+------+ | text | json | +------+------+ | 00-00 Screen 00-01 SelectionVectorRemover 00-02 Limit(fetch=[1]) 00-03 Jdbc(sql=[SELECT COUNT(*) AS `EXPR$0` FROM (SELECT 0 AS `$f0` FROM `scan_test_data`.`acme_sales`) AS `t`]) | { "head" : { "version" : 1, "generator" : { "type" : "ExplainHandler", "info" : "" }, "type" : "APACHE_DRILL_PHYSICAL", "options" : [ ], "queue" : 0, "resultMode" : "EXEC" }, "graph" : [ { "pop" : "jdbc-scan", "@id" : 3, "sql" : "SELECT COUNT(*) AS `EXPR$0`\nFROM (SELECT 0 AS `$f0`\nFROM `scan_test_data`.`acme_sales`) AS `t`", "config" : { "type" : "jdbc", "driver" : "com.mysql.jdbc.Driver", "url" : "jdbc:mysql://dev-db.emcien.com:3306", "username" : "scan_test_data", "password" : "****", "enabled" : true }, "userName" : "", "cost" : 1.0 }, { "pop" : "limit", "@id" : 2, "child" : 3, "first" : 0, "last" : 1, "initialAllocation" : 1000000, "maxAllocation" : 10000000000, "cost" : 1.0 }, { "pop" : "selection-vector-remover", "@id" : 1, "child" : 2, "initialAllocation" : 1000000, "maxAllocation" : 10000000000, "cost" : 1.0 }, { "pop" : "screen", "@id" : 0, "child" : 1, "initialAllocation" : 1000000, "maxAllocation" : 10000000000, "cost" : 1.0 } ] } | +------+------+ 1 row selected (0.464 seconds) {code} > JDBC Storage Plugin SYSTEM ERROR: NullPointerException Error > ------------------------------------------------------------ > > Key: DRILL-4863 > URL: https://issues.apache.org/jira/browse/DRILL-4863 > Project: Apache Drill > Issue Type: Bug > Components: Storage - JDBC > Affects Versions: 1.7.0 > Environment: * Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-40-generic x86_64) > * Java(TM) SE Runtime Environment (build 1.7.0_80-b15) > * Data Source: mysql Ver 14.14 Distrib 5.7.10 > Reporter: Christopher Altman > > When running the query: > {code} > SELECT * FROM (SELECT count(*) from mysql.test.acme_sales ) T LIMIT 0 > {code} > I receive the error: > {code} > SYSTEM ERROR: NullPointerException > {code} > Here are the logs > {code} > SYSTEM ERROR: NullPointerException > (org.apache.drill.exec.work.foreman.ForemanException) Unexpected exception during fragment initialization: null > org.apache.drill.exec.work.foreman.Foreman.run():271 > java.util.concurrent.ThreadPoolExecutor.runWorker():1145 > java.util.concurrent.ThreadPoolExecutor$Worker.run():615 > java.lang.Thread.run():745 > Caused By (java.lang.NullPointerException) null > org.apache.drill.exec.planner.sql.handlers.FindLimit0Visitor$FindHardDistributionScans.visit():262 > org.apache.calcite.rel.core.TableScan.accept():166 > org.apache.calcite.rel.RelShuttleImpl.visitChild():53 > org.apache.calcite.rel.RelShuttleImpl.visitChildren():68 > org.apache.calcite.rel.RelShuttleImpl.visit():126 > org.apache.calcite.rel.AbstractRelNode.accept():256 > org.apache.calcite.rel.RelShuttleImpl.visitChild():53 > org.apache.calcite.rel.RelShuttleImpl.visitChildren():68 > org.apache.calcite.rel.RelShuttleImpl.visit():126 > org.apache.calcite.rel.AbstractRelNode.accept():256 > org.apache.calcite.rel.RelShuttleImpl.visitChild():53 > org.apache.calcite.rel.RelShuttleImpl.visitChildren():68 > org.apache.calcite.rel.RelShuttleImpl.visit():126 > org.apache.calcite.rel.AbstractRelNode.accept():256 > org.apache.calcite.rel.RelShuttleImpl.visitChild():53 > org.apache.calcite.rel.RelShuttleImpl.visitChildren():68 > org.apache.calcite.rel.RelShuttleImpl.visit():126 > org.apache.calcite.rel.AbstractRelNode.accept():256 > org.apache.drill.exec.planner.sql.handlers.FindLimit0Visitor.containsLimit0():129 > org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.convertToDrel():259 > org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.convertToDrel():286 > org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.getPlan():168 > org.apache.drill.exec.planner.sql.DrillSqlWorker.getPlan():94 > org.apache.drill.exec.work.foreman.Foreman.runSQL():978 > org.apache.drill.exec.work.foreman.Foreman.run():257 > java.util.concurrent.ThreadPoolExecutor.runWorker():1145 > java.util.concurrent.ThreadPoolExecutor$Worker.run():615 > java.lang.Thread.run():745 > > Error Id: c9a4bc51-a18c-408a-9958-23124b9aac47 on 10.0.1.241:31010] > org.apache.drill.common.exceptions.UserException: SYSTEM ERROR: NullPointerException > [Error Id: c9a4bc51-a18c-408a-9958-23124b9aac47 on 10.0.1.241:31010] > at org.apache.drill.common.exceptions.UserException$Builder.build(UserException.java:543) ~[drill-common-1.7.0.jar:1.7.0] > at org.apache.drill.exec.work.foreman.Foreman$ForemanResult.close(Foreman.java:791) [drill-java-exec-1.7.0.jar:1.7.0] > at org.apache.drill.exec.work.foreman.Foreman.moveToState(Foreman.java:901) [drill-java-exec-1.7.0.jar:1.7.0] > at org.apache.drill.exec.work.foreman.Foreman.run(Foreman.java:271) [drill-java-exec-1.7.0.jar:1.7.0] > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_80] > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_80] > at java.lang.Thread.run(Thread.java:745) [na:1.7.0_80] > Caused by: org.apache.drill.exec.work.foreman.ForemanException: Unexpected exception during fragment initialization: null > ... 4 common frames omitted > Caused by: java.lang.NullPointerException: null > at org.apache.drill.exec.planner.sql.handlers.FindLimit0Visitor$FindHardDistributionScans.visit(FindLimit0Visitor.java:262) ~[drill-java-exec-1.7.0.jar:1.7.0] > at org.apache.calcite.rel.core.TableScan.accept(TableScan.java:166) ~[calcite-core-1.4.0-drill-r11.jar:1.4.0-drill-r11] > at org.apache.calcite.rel.RelShuttleImpl.visitChild(RelShuttleImpl.java:53) ~[calcite-core-1.4.0-drill-r11.jar:1.4.0-drill-r11] > at org.apache.calcite.rel.RelShuttleImpl.visitChildren(RelShuttleImpl.java:68) ~[calcite-core-1.4.0-drill-r11.jar:1.4.0-drill-r11] > at org.apache.calcite.rel.RelShuttleImpl.visit(RelShuttleImpl.java:126) ~[calcite-core-1.4.0-drill-r11.jar:1.4.0-drill-r11] > at org.apache.calcite.rel.AbstractRelNode.accept(AbstractRelNode.java:256) ~[calcite-core-1.4.0-drill-r11.jar:1.4.0-drill-r11] > at org.apache.calcite.rel.RelShuttleImpl.visitChild(RelShuttleImpl.java:53) ~[calcite-core-1.4.0-drill-r11.jar:1.4.0-drill-r11] > at org.apache.calcite.rel.RelShuttleImpl.visitChildren(RelShuttleImpl.java:68) ~[calcite-core-1.4.0-drill-r11.jar:1.4.0-drill-r11] > at org.apache.calcite.rel.RelShuttleImpl.visit(RelShuttleImpl.java:126) ~[calcite-core-1.4.0-drill-r11.jar:1.4.0-drill-r11] > at org.apache.calcite.rel.AbstractRelNode.accept(AbstractRelNode.java:256) ~[calcite-core-1.4.0-drill-r11.jar:1.4.0-drill-r11] > at org.apache.calcite.rel.RelShuttleImpl.visitChild(RelShuttleImpl.java:53) ~[calcite-core-1.4.0-drill-r11.jar:1.4.0-drill-r11] > at org.apache.calcite.rel.RelShuttleImpl.visitChildren(RelShuttleImpl.java:68) ~[calcite-core-1.4.0-drill-r11.jar:1.4.0-drill-r11] > at org.apache.calcite.rel.RelShuttleImpl.visit(RelShuttleImpl.java:126) ~[calcite-core-1.4.0-drill-r11.jar:1.4.0-drill-r11] > at org.apache.calcite.rel.AbstractRelNode.accept(AbstractRelNode.java:256) ~[calcite-core-1.4.0-drill-r11.jar:1.4.0-drill-r11] > at org.apache.calcite.rel.RelShuttleImpl.visitChild(RelShuttleImpl.java:53) ~[calcite-core-1.4.0-drill-r11.jar:1.4.0-drill-r11] > at org.apache.calcite.rel.RelShuttleImpl.visitChildren(RelShuttleImpl.java:68) ~[calcite-core-1.4.0-drill-r11.jar:1.4.0-drill-r11] > at org.apache.calcite.rel.RelShuttleImpl.visit(RelShuttleImpl.java:126) ~[calcite-core-1.4.0-drill-r11.jar:1.4.0-drill-r11] > at org.apache.calcite.rel.AbstractRelNode.accept(AbstractRelNode.java:256) ~[calcite-core-1.4.0-drill-r11.jar:1.4.0-drill-r11] > at org.apache.drill.exec.planner.sql.handlers.FindLimit0Visitor.containsLimit0(FindLimit0Visitor.java:129) ~[drill-java-exec-1.7.0.jar:1.7.0] > at org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.convertToDrel(DefaultSqlHandler.java:259) ~[drill-java-exec-1.7.0.jar:1.7.0] > at org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.convertToDrel(DefaultSqlHandler.java:286) ~[drill-java-exec-1.7.0.jar:1.7.0] > at org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.getPlan(DefaultSqlHandler.java:168) ~[drill-java-exec-1.7.0.jar:1.7.0] > at org.apache.drill.exec.planner.sql.DrillSqlWorker.getPlan(DrillSqlWorker.java:94) ~[drill-java-exec-1.7.0.jar:1.7.0] > at org.apache.drill.exec.work.foreman.Foreman.runSQL(Foreman.java:978) [drill-java-exec-1.7.0.jar:1.7.0] > at org.apache.drill.exec.work.foreman.Foreman.run(Foreman.java:257) [drill-java-exec-1.7.0.jar:1.7.0] > ... 3 common frames omitted > {code} > I am using Apache Drill 1.7 on a Ubuntu 14.04 Server Connecting to MySql 5.7. -- This message was sent by Atlassian JIRA (v6.3.4#6332)