jcamachor commented on a change in pull request #794: HIVE-21884
URL: https://github.com/apache/hive/pull/794#discussion_r332154141
##########
File path: ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g
##########
@@ -2066,6 +2074,71 @@ dropMaterializedViewStatement
: KW_DROP KW_MATERIALIZED KW_VIEW ifExists? viewName ->
^(TOK_DROP_MATERIALIZED_VIEW viewName ifExists?)
;
+createScheduledQueryStatement
+@init { pushMsg("create scheduled query statement", state); }
+@after { popMsg(state); }
+ : KW_CREATE KW_SCHEDULED KW_QUERY name=identifier
+ scheduleSpec
+ executedAsSpec?
Review comment:
I am not sure we are ready to support `executed as` in the syntax. One
problem that I see is that we do not check whether a certain user has
permissions to execute the query as another user. Probably some additional
checks and restrictions will be needed. We should just store the scheduled
query to be executed as the current user that created it, which we already do
below. We can work on the extensions in a follow-up.
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]