mdayakar commented on code in PR #6405:
URL: https://github.com/apache/hive/pull/6405#discussion_r3036895599
##########
itests/hive-unit/src/test/java/org/apache/hive/beeline/TestHplSqlViaBeeLine.java:
##########
@@ -1401,6 +1401,24 @@ public void testPrintMessageAfterExecuteSetHiveConfig()
throws Throwable {
testScriptFile(scriptText, args(), "Should print this message!...",
OutStream.ERR);
}
+ @Test
+ public void testQuit() throws Throwable {
+ String scriptText =
+ "SET hplsql.onerror='seterror';\n" +
+ "INSERT INTO abc VALUES('Tbl1 Not Exists');\n" +
+ "PRINT 'ERRORCODE: ' || ERRORCODE;\n" +
+ "IF ERRORCODE <> 0 THEN\n" +
+ " PRINT 'Error detected. Exiting...';\n" +
+ " .QUIT ERRORCODE;\n" +
+ "END IF;\n" +
+ "INSERT INTO def VALUES('Tbl2 Not Exists');" +
Review Comment:
Added `\n` at the end of the satement.
--
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]