drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Khurram Faraaz (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-3923) getTableName(int column) function of ResultSetMetaData interface does not return table name
Date Mon, 12 Oct 2015 17:44:05 GMT
Khurram Faraaz created DRILL-3923:
-------------------------------------

             Summary: getTableName(int column) function of ResultSetMetaData interface does
not return table name
                 Key: DRILL-3923
                 URL: https://issues.apache.org/jira/browse/DRILL-3923
             Project: Apache Drill
          Issue Type: Bug
          Components: Client - JDBC
    Affects Versions: 1.2.0
            Reporter: Khurram Faraaz


getTableName(int column) function of ResultSetMetaData interface does not return table name,
instead it returns an empty string.

I am on Drill 1.2, git.commit.id=eafe0a24

{code}
               Statement stmt = conn.createStatement();
                String query = "select col9 from FEWRWSPQQ_101";
                ResultSet rs = stmt.executeQuery(query);
                ResultSetMetaData rsmd = rs.getMetaData();
                System.out.println("ResultSetMetadata.getTableName(1) :"+rsmd.getTableName(1));
{code}

Output :

{code}
17:35:11.922 [Client-1] DEBUG o.a.drill.exec.rpc.user.UserClient - Sending response with Sender
729391539
ResultSetMetadata.getTableName(1) :
17:35:11.965 [main] DEBUG o.a.d.j.i.DrillResultSetImpl$ResultsListener - [#1] Query listener
closing.
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message