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

HPL/SQL: hplsql.conn.convert.hiveconn seems to default to false, contrary to docs

Log workAgile BoardRank to TopRank to BottomAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.2.0
    • Component/s: hpl/sql
    • Labels:
      None

      Description

      This bug is part of a series of issues and surprising behavior I encountered writing a reporting script that would aggregate values and give rows different classifications based on an the aggregate. Addressing some or all of these issues would make HPL/SQL more accessible to newcomers.

      Example from the docs is as follows:
      CREATE TABLE dept (
      deptno NUMBER(2,0),
      dname NUMBER(14),
      loc VARCHAR2(13),
      CONSTRAINT pk_dept PRIMARY KEY (deptno)
      );

      With this config:
      <configuration>
      <property>
      <name>hplsql.conn.default</name>
      <value>hiveconn</value>
      </property>

      <property>
      <name>hplsql.conn.hiveconn</name>
      <value>org.apache.hive.jdbc.HiveDriver;jdbc:hive2://</value>
      </property>
      </configuration>

      I get this error:
      Caused by: java.lang.RuntimeException: org.apache.hadoop.hive.ql.parse.ParseException:line 2:9 cannot recognize input near 'NUMBER' '(' '2' in column type
      With this config:
      <configuration>
      <property>
      <name>hplsql.conn.default</name>
      <value>hiveconn</value>
      </property>

      <property>
      <name>hplsql.conn.hiveconn</name>
      <value>org.apache.hive.jdbc.HiveDriver;jdbc:hive2://</value>
      </property>

      <property>
      <name>hplsql.conn.convert.hiveconn</name>
      <value>true</value>
      </property>
      </configuration>

      the example works.

      Version = 3.0.0-SNAPSHOT r71f52d8ad512904b3f2c4f04fe39a33f2834f1f2

        Attachments

        1. HIVE-17025.1.patch
          3 kB
          Dmitry Tolpeko

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              dmtolpeko Dmitry Tolpeko Assign to me
              Reporter:
              cartershanklin Carter Shanklin

              Dates

              • Created:
                Updated:

                Issue deployment