HPL/SQL is included to Apache Hive since version 2.0
This is an old revision of the document!
HOSTCODE built-in variable contains the return code of the last OS command.
SET plhql.onerror = SETERROR; HOST 'echo hello, world'; IF HOSTCODE <> 0 THEN PRINT 'Error'; END IF;
For more information, see Error Handling.
Compatibility: PL/HQL Extension.