hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sangeeta Gulia (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-15195) Drop non-existing macro executes successfully while it must give an error.
Date Mon, 14 Nov 2016 10:19:58 GMT
Sangeeta Gulia created HIVE-15195:
-------------------------------------

             Summary: Drop non-existing macro executes successfully while it must give an
error.
                 Key: HIVE-15195
                 URL: https://issues.apache.org/jira/browse/HIVE-15195
             Project: Hive
          Issue Type: Bug
            Reporter: Sangeeta Gulia


I have created a macro :
CREATE TEMPORARY MACRO simple_add (x int, y int) x + y;
then i dropped the macro.
> drop temporary macro simple_add;
OK
Time taken: 0.038 seconds
hive> 
> 
> select simple_add(2,3);
FAILED: SemanticException [Error 10011]: Line 1:7 Invalid function 'simple_add'
then i again tried to drop the same macro and it again executed without any exception:
> drop temporary macro simple_add;
OK
Time taken: 0.016 seconds




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message