huleilei commented on code in PR #38007:
URL: https://github.com/apache/spark/pull/38007#discussion_r980919285


##########
sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBaseParser.g4:
##########
@@ -216,6 +216,7 @@ statement
         LEFT_PAREN columns=multipartIdentifierPropertyList RIGHT_PAREN
         (OPTIONS options=propertyList)?                                
#createIndex
     | DROP INDEX (IF EXISTS)? identifier ON TABLE? multipartIdentifier 
#dropIndex
+    | SHOW INDEX ON TABLE? multipartIdentifier                         
#showIndex

Review Comment:
   OK. I think the `FROM` and `ON` should be supported:
   `SHOW {INDEX | INDEXES}
       {FROM | ON} tbl_name`.  



-- 
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: [email protected]

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