I just installed and configured Apache Hive version 1.1.0. Then I created a table by querying this query:
create table person (name1 string, surname1 string);
And then I want to add one line:
insert into person (name1, surname1) values ("Alan", "Green");
And this causes an error:
Error: error compiling the statement: FAILED: line ParseException 1:20 could not recognize the input next to '(' 'name1' ',' in statement (Status = 42000, code = 40000).
But when I execute the query without a list of columns, it works fine:
insert into person values ("Alan", "Green");
Question: how to specify a list of columns in hiveQL to insert in?
source
share