kasakrisz commented on code in PR #6422:
URL: https://github.com/apache/hive/pull/6422#discussion_r3079691834


##########
itests/hive-unit/src/test/java/org/apache/hive/beeline/TestHplSqlViaBeeLine.java:
##########
@@ -1419,6 +1419,19 @@ public void testQuit() throws Throwable {
         OutStream.ERR);
   }
 
+  @Test
+  public void testERRORCODEForExecuteStatements() throws Throwable {
+    String scriptText =
+        "SET hplsql.onerror='seterror';\n" +
+            "CREATE TABLE result (id bigint, name string);\n" +
+            "EXECUTE IMMEDIATE 'load data local inpath 
''../../data/files/hplsql.txt'' OVERWRITE INTO table result';\n" +

Review Comment:
   Is it necessary to actually load the data?
   
   How about testing with statements like
   ```
   select 1;
   ```
   and 
   ```
   select 1/0;
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to