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

Support Oracle CLOB type in beeline

    XMLWordPrintableJSON

Details

    Description

      We can use beeline as a JDBC client to access RDBMS such as Oracle. Sometimes Oracle JDBC driver will return a CLOB object instead of a String object if the string is too long. Beeline used to work well with CLOB type but it's broken by HIVE-14786:

      https://github.com/apache/hive/blob/2a760dd607e206d7f1061c01075767ecfff40d0c/beeline/src/java/org/apache/hive/beeline/Rows.java#L169

      In the above line, when Oracle JDBC driver returns a CLOB object, it returns a string like "oracle.sql.CLOB@2f7c7260". In this case, we should use ResultSet.getString() rather than ResultSet.getObject().toString().

      Attachments

        Issue Links

          Activity

            People

              robbiezhang Robbie Zhang
              robbiezhang Robbie Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m