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

insert into table values() when UTF-8 character is not correct

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 0.13.1, 0.14.0, 1.0.0
    • None
    • CLI, Clients, JDBC
    • None
    • centos 6 LANG=zh_CN.UTF-8
      hadoop 2.6
      hive 1.1.0

    Description

      insert into table test_acid partition(pt='pt_2')
      values( 2, '中文_2' , 'city_2' )
      ;

      hive> select *
      > from test_acid
      > ;
      OK
      2 -�_2 city_2 pt_2
      Time taken: 0.237 seconds, Fetched: 1 row(s)
      hive>

      CREATE TABLE test_acid(id INT,
      name STRING,
      city STRING)
      PARTITIONED BY (pt STRING)
      clustered by (id) into 1 buckets
      stored as ORCFILE
      TBLPROPERTIES('transactional'='true')
      ;

      Attachments

        1. HIVE-9907.1.patch
          0.7 kB
          Niklaus Xiao

        Activity

          People

            niklaus.xiao Niklaus Xiao
            lifanhong Fanhong Li
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: