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

Hive beeline not throw Error when update a varchar column value is exceed the length length

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.1.0
    • None
    • Hive
    • None

    Description

      1. CREATE TABLE table013(orderkey int, orderstatus varchar(7), totalprice double, orderdate date) stored as orc tblproperties('transactional'='true');
      2. INSERT INTO table013 VALUES(10, 'SUCCESS', 125.15, DATE'2019-05-17');
      3. update table013 set orderkey=40,orderstatus='FAILEDDDDDD' where orderkey=10;

      Current behavior: Operation will be success. No error
      But select * from table013; does not update the column orderstatus.

      Expected: Should throw Mismatch column Error Msg as orderstatus column expect 7 length.

      Attachments

        Activity

          People

            Unassigned Unassigned
            abhishek.akg ABHISHEK KUMAR GUPTA
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: