ramitg254 commented on code in PR #5715: URL: https://github.com/apache/hive/pull/5715#discussion_r2042708276
########## parser/src/java/org/apache/hadoop/hive/ql/parse/AlterClauseParser.g: ########## @@ -209,6 +210,13 @@ alterStatementSuffixAddCol -> ^(TOK_ALTERTABLE_REPLACECOLS columnNameTypeList restrictOrCascade?) ; +alterStatementSuffixDropCol +@init { gParent.pushMsg("drop column statement", state); } +@after { gParent.popMsg(state); } + : KW_DROP KW_COLUMN ifExists? columnName restrictOrCascade? + -> ^(TOK_ALTERTABLE_DROPCOL ifExists? columnName restrictOrCascade?) Review Comment: there is no test for restrict , i added it because it was also present in case of parsing grammer of replace columns although for no use -- 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. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org