Hive inserting values to an array complex type column

后端 未结 3 1091
花落未央
花落未央 2020-12-16 19:41

I am unable to append data to tables that contain an array column using insert into statements; the data type is array < varchar(200) >

Using jodbc I am unable t

3条回答
  •  既然无缘
    2020-12-16 20:36

    make a dummy table which has atleast one row.

    INSERT INTO demo.table (codes) VALUES (array('a','b')) from dummy limit 1;
    
    hive> select codes demo.table;
    OK
    ["a","b"]
    Time taken: 0.088 seconds, Fetched: 1 row(s)
    

提交回复
热议问题