Hive
  1. Hive
  2. HIVE-4269

fix handling of binary type in hiveserver2, jdbc driver

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.11.0
    • Component/s: HiveServer2
    • Labels:
      None

      Description

      Need to use 'new String(byte[])' instead of 'byte[].toString()' when converting to String for jdbc, in SQLOperation.convertLazyToJava()
      Need to add support for binary in jdbc driver code.

      THe exception that gets thrown while trying to access binary column is like this -

          [junit] org.apache.hive.service.cli.HiveSQLException: java.lang.ClassCastException: [B cannot be cast to java.lang.String
          [junit]     at org.apache.hive.service.cli.operation.SQLOperation.getNextRowSet(SQLOperation.java:188)
          [junit]     at org.apache.hive.service.cli.operation.OperationManager.getOperationNextRowSet(OperationManager.java:170)
          [junit]     at org.apache.hive.service.cli.session.HiveSessionImpl.fetchResults(HiveSessionImpl.java:324)
          [junit]     at org.apache.hive.service.cli.CLIService.fetchResults(CLIService.java:290)
      
      
      1. HIVE-4269.1.patch
        6 kB
        Thejas M Nair

        Activity

          People

          • Assignee:
            Thejas M Nair
            Reporter:
            Thejas M Nair
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development