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

Inserting negative values causes a parse exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 0.14.0
    • None
    • SQL
    • None

    Description

      Inserting constants with negative values causes a ParseException. For example:

      create table foo(int a) clustered by (a) into 2 buckets stored as orc;
      insert into table foo value (-257);
      

      results in

      FAILED: ParseException line 4:8 cannot recognize input near '-' '257' ',' in statement
      

      Attachments

        Issue Links

          Activity

            People

              ekoifman Eugene Koifman
              gates Alan Gates
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: