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 CC12F18893 for ; Mon, 15 Jun 2015 19:05:06 +0000 (UTC) Received: (qmail 84430 invoked by uid 500); 15 Jun 2015 19:05:01 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 84406 invoked by uid 500); 15 Jun 2015 19:05:01 -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 84379 invoked by uid 99); 15 Jun 2015 19:05:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jun 2015 19:05:01 +0000 Date: Mon, 15 Jun 2015 19:05:01 +0000 (UTC) From: "Daniel Barclay (Drill) (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-3151) ResultMetaData not as specified by JDBC 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-3151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Barclay (Drill) updated DRILL-3151: ------------------------------------------ Description: In Drill's JDBC driver, some ResultSetMetaData methods don't return what JDBC specifies they should return. Some cases: {{getTableName(int)}}: - (JDBC says: {{table name or "" if not applicable}}) - Drill returns {{null}} (instead of empty string or table name) - (Drill indicates "not applicable" even when from named table, e.g., for "{{SELECT * FROM INFORMATION_SCHEMA.CATALOGS}}".) {{getSchemaName(int)}}: - (JDBC says: {{schema name or "" if not applicable}}) - Drill returns "{{\-\-UNKNOWN--}}" (instead of empty string or table name) - (Drill indicates "not applicable" even when from named table, e.g., for "{{SELECT * FROM INFORMATION_SCHEMA.CATALOGS}}".) {{getCatalogName(int)}}: - (JDBC says: {{the name of the catalog for the table in which the given column appears or "" if not applicable}}) - Drill returns "{{\-\-UNKNOWN--}}" (instead of empty string or table name) - (Drill indicates "not applicable" even when from named table, e.g., for "{{SELECT * FROM INFORMATION_SCHEMA.CATALOGS}}".) {{isSearchable(int)}}: - (JDBC says: {{Indicates whether the designated column can be used in a where clause.}}) - Drill returns {{false}} {{getColumnClassName(int}}: - (JDBC says: {{the fully-qualified name of the class in the Java programming language that would be used by the method ResultSet.getObject to retrieve the value in the specified column. This is the class name used for custom mapping.}}) - Drill returns "{{none}}" (instead of the correct class name) was: In Drill's JDBC driver, some ResultSetMetaData methods don't return what JDBC specifies they should return. Some cases: {{getTableName(int)}}: - (JDBC says: {{table name or "" if not applicable}}) - Drill returns {{null}} (instead of empty string or table name) - (Drill indicates "not applicable" even when from named table, e.g., for "{{SELECT * FROM INFORMATION_SCHEMA.CATALOGS}}".) {{getSchemaName(int)}}: - (JDBC says: {{schema name or "" if not applicable}}) - Drill returns "{{\-\-UNKNOWN--}}" (instead of empty string or table name) - (Drill indicates "not applicable" even when from named table, e.g., for "{{SELECT * FROM INFORMATION_SCHEMA.CATALOGS}}".) {{getCatalogName(int)}}: - (JDBC says: {{the name of the catalog for the table in which the given column appears or "" if not applicable}}) - Drill returns "{{\-\-UNKNOWN--}}" (instead of empty string or table name) - (Drill indicates "not applicable" even when from named table, e.g., for "{{SELECT * FROM INFORMATION_SCHEMA.CATALOGS}}".) {{isSearchable(int)}}: - (JDBC says: {{Indicates whether the designated column can be used in a where clause.}}) - Drill returns {{false}} {{getColumnClassName(int}}: - (JDBC says: {{the fully-qualified name of the class in the Java programming language that would be used by the method ResultSet.getObject to retrieve the value in the specified column. This is the class name used for custom mapping.}} - Drill returns "{{none}}" (instead of the correct class name) > ResultMetaData not as specified by JDBC > --------------------------------------- > > Key: DRILL-3151 > URL: https://issues.apache.org/jira/browse/DRILL-3151 > Project: Apache Drill > Issue Type: Bug > Components: Client - JDBC > Reporter: Daniel Barclay (Drill) > Assignee: Daniel Barclay (Drill) > Fix For: 1.1.0 > > > In Drill's JDBC driver, some ResultSetMetaData methods don't return what JDBC specifies they should return. > Some cases: > {{getTableName(int)}}: > - (JDBC says: {{table name or "" if not applicable}}) > - Drill returns {{null}} (instead of empty string or table name) > - (Drill indicates "not applicable" even when from named table, e.g., for "{{SELECT * FROM INFORMATION_SCHEMA.CATALOGS}}".) > {{getSchemaName(int)}}: > - (JDBC says: {{schema name or "" if not applicable}}) > - Drill returns "{{\-\-UNKNOWN--}}" (instead of empty string or table name) > - (Drill indicates "not applicable" even when from named table, e.g., for "{{SELECT * FROM INFORMATION_SCHEMA.CATALOGS}}".) > {{getCatalogName(int)}}: > - (JDBC says: {{the name of the catalog for the table in which the given column appears or "" if not applicable}}) > - Drill returns "{{\-\-UNKNOWN--}}" (instead of empty string or table name) > - (Drill indicates "not applicable" even when from named table, e.g., for "{{SELECT * FROM INFORMATION_SCHEMA.CATALOGS}}".) > {{isSearchable(int)}}: > - (JDBC says: {{Indicates whether the designated column can be used in a where clause.}}) > - Drill returns {{false}} > {{getColumnClassName(int}}: > - (JDBC says: {{the fully-qualified name of the class in the Java programming language that would be used by the method ResultSet.getObject to retrieve the value in the specified column. This is the class name used for custom mapping.}}) > - Drill returns "{{none}}" (instead of the correct class name) -- This message was sent by Atlassian JIRA (v6.3.4#6332)