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

Unable to reference table column named default

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Parser

    Description

      CREATE TABLE t1 (a int, `default` int) stored as orc TBLPROPERTIES ('transactional'='true');
      
      insert into t1 values (1, 2), (10, 11);
      
      update t1 set a = `default`;
      
      select * from t1;
      

      result is

      NULL	NULL
      NULL	NULL
      

      but it should be

      11	11
      2	2
      

      Attachments

        Issue Links

          Activity

            People

              kkasa Krisztian Kasa
              kkasa Krisztian Kasa
              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 - 50m
                  50m