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

aggregate ( smalllint ) fails when ORC file used ava.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Short

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.14.0, 1.1.0
    • 1.2.0
    • SQL
    • None

    Description

      select min( tsint.csint ) from tsint
      select max( tsint.csint ) from tsint
      ava.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Short

      select min( t_tsint.csint ) from t_tsint

      create table if not exists T_TSINT ( RNUM int , CSINT smallint )
      ROW FORMAT DELIMITED FIELDS TERMINATED BY '|' LINES TERMINATED BY '\n'
      STORED AS textfile ;

      create table if not exists TSINT ( RNUM int , CSINT smallint )
      TERMINATED BY '\n'
      STORED AS orc ;

      input data loaded into text file and then inserted into ORC table from text based table

      0|\N
      1|-1
      2|0
      3|1
      4|10

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: