From issues-return-50482-archive-asf-public=cust-asf.ponee.io@drill.apache.org Wed Mar 7 00:54:06 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 5D7EE180652 for ; Wed, 7 Mar 2018 00:54:06 +0100 (CET) Received: (qmail 66166 invoked by uid 500); 6 Mar 2018 23:54:05 -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 66157 invoked by uid 99); 6 Mar 2018 23:54:05 -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; Tue, 06 Mar 2018 23:54:05 +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 0D8D5C690A for ; Tue, 6 Mar 2018 23:54:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] 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 EeYSdU_0xQ36 for ; Tue, 6 Mar 2018 23:54:04 +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 A2F195FBE4 for ; Tue, 6 Mar 2018 23:54:01 +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 7C867E0056 for ; Tue, 6 Mar 2018 23:54:00 +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 389F2253FA for ; Tue, 6 Mar 2018 23:54:00 +0000 (UTC) Date: Tue, 6 Mar 2018 23:54:00 +0000 (UTC) From: "Kunal Khatua (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-6216) Metadata mismatch when connecting to a Drill 1.12.0 with a Drill-1.13.0-SNAPSHOT driver 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-6216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kunal Khatua updated DRILL-6216: -------------------------------- Reviewer: Aman Sinha (was: Parth Chandra) > Metadata mismatch when connecting to a Drill 1.12.0 with a Drill-1.13.0-SNAPSHOT driver > --------------------------------------------------------------------------------------- > > Key: DRILL-6216 > URL: https://issues.apache.org/jira/browse/DRILL-6216 > Project: Apache Drill > Issue Type: Bug > Affects Versions: 1.13.0 > Reporter: Kunal Khatua > Assignee: Sorabh Hamirwasia > Priority: Blocker > Fix For: 1.13.0 > > > When running against a 1.12.0 Drill server > {code:sql} > select * from sys.`options`; > {code} > I hit the following issue in Squirrel-SQL client with the 1.13.0-SNAPSHOT JDBC driver. > {code:java} > 2018-02-20 11:41:16,557 [Thread-2] DEBUG net.sourceforge.squirrel_sql.fw.util.DefaultExceptionFormatter - Error > java.sql.SQLException: Unexpected RuntimeException: java.lang.IllegalArgumentException: The field [`$values$` (BIGINT:OPTIONAL)] doesn't match the provided metadata major_type { > minor_type: BIGINT > mode: OPTIONAL > } > name_part { > name: "num_val" > } > value_count: 153 > buffer_length: 1224 > . > at org.apache.drill.jdbc.impl.DrillCursor.nextRowInternally(DrillCursor.java:544) > at org.apache.drill.jdbc.impl.DrillCursor.loadInitialSchema(DrillCursor.java:602) > at org.apache.drill.jdbc.impl.DrillResultSetImpl.execute(DrillResultSetImpl.java:1918) > at org.apache.drill.jdbc.impl.DrillResultSetImpl.execute(DrillResultSetImpl.java:66) > at oadd.org.apache.calcite.avatica.AvaticaConnection$1.execute(AvaticaConnection.java:630) > at org.apache.drill.jdbc.impl.DrillMetaImpl.prepareAndExecute(DrillMetaImpl.java:1106) > at org.apache.drill.jdbc.impl.DrillMetaImpl.prepareAndExecute(DrillMetaImpl.java:1117) > at oadd.org.apache.calcite.avatica.AvaticaConnection.prepareAndExecuteInternal(AvaticaConnection.java:638) > at org.apache.drill.jdbc.impl.DrillConnectionImpl.prepareAndExecuteInternal(DrillConnectionImpl.java:193) > at oadd.org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:149) > at oadd.org.apache.calcite.avatica.AvaticaStatement.execute(AvaticaStatement.java:209) > at org.apache.drill.jdbc.impl.DrillStatementImpl.execute(DrillStatementImpl.java:101) > at net.sourceforge.squirrel_sql.client.session.StatementWrapper.execute(StatementWrapper.java:165) > at net.sourceforge.squirrel_sql.client.session.SQLExecuterTask.processQuery(SQLExecuterTask.java:378) > at net.sourceforge.squirrel_sql.client.session.SQLExecuterTask.run(SQLExecuterTask.java:221) > at net.sourceforge.squirrel_sql.fw.util.TaskExecuter.run(TaskExecuter.java:82) > at java.lang.Thread.run(Unknown Source) > Caused by: java.lang.IllegalArgumentException: The field [`$values$` (BIGINT:OPTIONAL)] doesn't match the provided metadata major_type { > minor_type: BIGINT > mode: OPTIONAL > } > name_part { > name: "num_val" > } > value_count: 153 > buffer_length: 1224 > . > at oadd.com.google.common.base.Preconditions.checkArgument(Preconditions.java:145) > at oadd.org.apache.drill.exec.vector.BigIntVector.load(BigIntVector.java:299) > at oadd.org.apache.drill.exec.vector.NullableBigIntVector.load(NullableBigIntVector.java:295) > at oadd.org.apache.drill.exec.record.RecordBatchLoader.load(RecordBatchLoader.java:135) > at org.apache.drill.jdbc.impl.DrillCursor.nextRowInternally(DrillCursor.java:506) > ... 16 more > {code} > This issue however, doesn't exist when working with Apache Master 1.13.0-SNAPSHOT -- This message was sent by Atlassian JIRA (v7.6.3#76005)