zeroflag commented on a change in pull request #1733:
URL: https://github.com/apache/hive/pull/1733#discussion_r566807838



##########
File path: hplsql/src/test/results/local/drop_package.out.txt
##########
@@ -0,0 +1,16 @@
+Ln:1 CREATE PACKAGE
+Ln:7 CREATE PACKAGE BODY
+Ln:2 DECLARE count INT = 0
+Ln:13 EXEC PACKAGE PROCEDURE COUNTER.INC
+Ln:13 SET PARAM i = 10
+Ln:8 SET count = 10
+Ln:15 PRINT
+EXEC PACKAGE FUNCTION COUNTER.CURRENT
+Ln:7 RETURN
+10
+Ln:17 DROP
+Ln:17 COUNTER DROPPED
+Ln:19 PRINT
+null

Review comment:
       Yes, I agree, and the same is true for calling an undefined function 
(=null) accessing to an undefined global variable (=null) or adding an 
undefined variable to a number (=null).
   
   There is a jira for these kind of issues (HIVE-24315) and as I remember I 
already fixed all of these in the (yet unpublished) patch.




----------------------------------------------------------------
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.

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