N Campbell created HIVE-15545:
---------------------------------

             Summary: JDBC driver aborts when DatabaseMetadata.getFunctions is 
called
                 Key: HIVE-15545
                 URL: https://issues.apache.org/jira/browse/HIVE-15545
             Project: Hive
          Issue Type: Bug
          Components: JDBC
    Affects Versions: 2.1.1
            Reporter: N Campbell


getDatabaseProductVersion:1.2.1000.2.5.3.0-37
getDriverVersion:1.2.1000.2.5.0.0-1245

ResultSet rs = dbMeta.getFunctions(null, null, null);


Exception in thread "main" java.sql.SQLException: Required field 'functionName' 
is unset! 
Struct:TGetFunctionsReq(sessionHandle:TSessionHandle(sessionId:THandleIdentifier(guid:99
 48 E7 57 6A 77 40 00 8D 49 99 34 81 51 C7 04, secret:F8 64 B2 9C D8 A2 41 7A 
99 E6 F1 34 E9 38 13 1D)), functionName:null)
        at 
org.apache.hive.jdbc.HiveDatabaseMetaData.getFunctions(HiveDatabaseMetaData.java:330)
        at zBug.getFunctions(zBug.java:679)
        at test.main(test.java:87)
Caused by: org.apache.thrift.protocol.TProtocolException: Required field 
'functionName' is unset! 
Struct:TGetFunctionsReq(sessionHandle:TSessionHandle(sessionId:THandleIdentifier(guid:99
 48 E7 57 6A 77 40 00 8D 49 99 34 81 51 C7 04, secret:F8 64 B2 9C D8 A2 41 7A 
99 E6 F1 34 E9 38 13 1D)), functionName:null)
        at 
org.apache.hive.service.cli.thrift.TGetFunctionsReq.validate(TGetFunctionsReq.java:542)
        at 
org.apache.hive.service.cli.thrift.TCLIService$GetFunctions_args.validate(TCLIService.java:10145)
        at 
org.apache.hive.service.cli.thrift.TCLIService$GetFunctions_args$GetFunctions_argsStandardScheme.write(TCLIService.java:10202)
        at 
org.apache.hive.service.cli.thrift.TCLIService$GetFunctions_args$GetFunctions_argsStandardScheme.write(TCLIService.java:10171)
        at 
org.apache.hive.service.cli.thrift.TCLIService$GetFunctions_args.write(TCLIService.java:10122)
        at org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:71)
        at org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:62)
        at 
org.apache.hive.service.cli.thrift.TCLIService$Client.send_GetFunctions(TCLIService.java:384)
        at 
org.apache.hive.service.cli.thrift.TCLIService$Client.GetFunctions(TCLIService.java:376)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
        at java.lang.reflect.Method.invoke(Method.java:508)
        at 
org.apache.hive.jdbc.HiveConnection$SynchronizedHandler.invoke(HiveConnection.java:1363)
        at com.sun.proxy.$Proxy0.GetFunctions(Unknown Source)
        at 
org.apache.hive.jdbc.HiveDatabaseMetaData.getFunctions(HiveDatabaseMetaData.java:328)
        ... 2 more




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

Reply via email to