Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
0.13.1
-
None
Description
When no source table is provided for an INSERT statement Hive fails with NPE.
0: jdbc:hive2://localhost:11050/default> create table test_tbl(i int); No rows affected (0.333 seconds) 0: jdbc:hive2://localhost:11050/default> insert into table test_tbl select 1; Error: Error while compiling statement: FAILED: NullPointerException null (state=42000,code=40000) -- Get a NPE even when using incorrect syntax (no TABLE keyword) 0: jdbc:hive2://localhost:11050/default> insert into test_tbl select 1; Error: Error while compiling statement: FAILED: NullPointerException null (state=42000,code=40000) -- Works when a source table is provided 0: jdbc:hive2://localhost:11050/default> insert into table test_tbl select 1 from foo; No rows affected (5.751 seconds)