Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-15545

JDBC driver aborts when DatabaseMetadata.getFunctions is called

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1.1
    • None
    • JDBC
    • None

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            the6campbells N Campbell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: