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 3B073200C32 for ; Thu, 23 Feb 2017 02:34:52 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 39B5D160B62; Thu, 23 Feb 2017 01:34:52 +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 7DD5E160B72 for ; Thu, 23 Feb 2017 02:34:51 +0100 (CET) Received: (qmail 98773 invoked by uid 500); 23 Feb 2017 01:34:50 -0000 Mailing-List: contact dev-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 dev@drill.apache.org Received: (qmail 98762 invoked by uid 99); 23 Feb 2017 01:34:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2017 01:34:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 13F69C213C for ; Thu, 23 Feb 2017 01:34:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.999 X-Spam-Level: X-Spam-Status: No, score=0.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id KvqkqBzX9MOo for ; Thu, 23 Feb 2017 01:34:49 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 76C075FACC for ; Thu, 23 Feb 2017 01:34:48 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 03997E0819 for ; Thu, 23 Feb 2017 01:34:45 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3398E24134 for ; Thu, 23 Feb 2017 01:34:44 +0000 (UTC) Date: Thu, 23 Feb 2017 01:34:44 +0000 (UTC) From: "Martina Ponca (JIRA)" To: dev@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-5295) Unable to query INFORMATION_SCHEMA.`TABLES` if MySql storage plugin enabled MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 23 Feb 2017 01:34:52 -0000 Martina Ponca created DRILL-5295: ------------------------------------ Summary: Unable to query INFORMATION_SCHEMA.`TABLES` if MySql storage plugin enabled Key: DRILL-5295 URL: https://issues.apache.org/jira/browse/DRILL-5295 Project: Apache Drill Issue Type: Bug Affects Versions: 1.9.0 Environment: Drill 1.9. Error can be reproduced running Drill locally on Windows and on Linux within zookeeper. I can reproduce it with 2 mysql servers. Reporter: Martina Ponca Impact: Unable to connect from Qlik Sense to Drill because of MySql Storage Plugin enabled. Steps to repro: 1. Create a new storage plugin to MySql Community Edition 5.5.43. Enable it. 2. Run query: "select * from INFORMATION_SCHEMA.`TABLES`" 3. Error: {code} Error: SYSTEM ERROR: NullPointerException: Error. Type information for table bistoremysql.information_schema.CHARACTER_SETS provided is null. Fragment 0:0 [Error Id: 2717cfe1-413d-4330-ab3f-720ae92ebc50 on mycomputer.domain.lan:31010] (java.lang.NullPointerException) Error. Type information for table bistoremysql.information_schema.CHARACTER_SETS provided is null. com.google.common.base.Preconditions.checkNotNull():250 org.apache.drill.exec.store.ischema.InfoSchemaRecordGenerator$Tables.visitTableWithType():314 org.apache.drill.exec.store.ischema.InfoSchemaRecordGenerator$Tables.visitTables():308 org.apache.drill.exec.store.ischema.InfoSchemaRecordGenerator.scanSchema():215 org.apache.drill.exec.store.ischema.InfoSchemaRecordGenerator.scanSchema():208 org.apache.drill.exec.store.ischema.InfoSchemaRecordGenerator.scanSchema():208 org.apache.drill.exec.store.ischema.InfoSchemaRecordGenerator.scanSchema():195 org.apache.drill.exec.store.ischema.InfoSchemaTableType.getRecordReader():58 org.apache.drill.exec.store.ischema.InfoSchemaBatchCreator.getBatch():36 org.apache.drill.exec.store.ischema.InfoSchemaBatchCreator.getBatch():30 org.apache.drill.exec.physical.impl.ImplCreator.getRecordBatch():148 org.apache.drill.exec.physical.impl.ImplCreator.getChildren():171 org.apache.drill.exec.physical.impl.ImplCreator.getRecordBatch():128 org.apache.drill.exec.physical.impl.ImplCreator.getChildren():171 org.apache.drill.exec.physical.impl.ImplCreator.getRootExec():101 org.apache.drill.exec.physical.impl.ImplCreator.getExec():79 org.apache.drill.exec.work.fragment.FragmentExecutor.run():206 org.apache.drill.common.SelfCleaningRunnable.run():38 java.util.concurrent.ThreadPoolExecutor.runWorker():1145 java.util.concurrent.ThreadPoolExecutor$Worker.run():615 java.lang.Thread.run():745 (state=,code=0) {code} The full query Qlik Sense runs: {code:sql} select TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE from INFORMATION_SCHEMA.`TABLES` WHERE TABLE_CATALOG LIKE 'DRILL' ESCAPE '\' AND TABLE_SCHEMA <> 'sys' AND TABLE_SCHEMA <> 'INFORMATION_SCHEMA'ORDER BY TABLE_TYPE, TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME {code} If I disable the mysql storage plugin, I can run the query and connect from Qlik (not a workaround). This issue cannot be reproduced using Drill 1.5. -- This message was sent by Atlassian JIRA (v6.3.15#6346)