MaxGekk commented on pull request #31499:
URL: https://github.com/apache/spark/pull/31499#issuecomment-779408914
@dongjoon-hyun I have looked at the SQL standard, it uses both notions:
```sql
{ UTF8 | UTF16 | UTF32}
GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY
```
and
```sql
[ INSTANCE | STATIC | CONSTRUCTOR ] METHOD
```
It seems `{alternative1 | alternative2 }` means one of the alternatives must
be specified, `[alternative1 | alternative2]` - both are optional.
I do believe we should use the syntax `MSCK REPAIR TABLE .. [ { ADD | DROP |
SYNC } PARTITIONS ]` in docs/comments.
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]