[jira] [Created] (CARBONDATA-409) Drop non-existing macro executes successfully while it must give an error.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (CARBONDATA-409) Drop non-existing macro executes successfully while it must give an error.

Akash R Nilugal (Jira)
Sangeeta Gulia created CARBONDATA-409:
-----------------------------------------

             Summary: Drop non-existing macro executes successfully while it must give an error.
                 Key: CARBONDATA-409
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-409
             Project: CarbonData
          Issue Type: Bug
          Components: data-query
            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)