huaxingao opened a new pull request #34148:
URL: https://github.com/apache/spark/pull/34148


   
   
   ### What changes were proposed in this pull request?
   This is the 2nd PR for DSv2 index support.
   
   This PR adds the following:
   
   - create index syntax support in parser and analyzer
   - `CreateIndex` logic node
   - `CreateIndexExec` physical node
   
   `CreateIndex` is not implemented yet in this PR. Calling `CreateIndex` will 
throw `SQLFeatureNotSupportedException`, and the parsed index information such 
as `IndexName` `indexType` `columns` and index properties will be included in 
the error message for now for testing purpose.
   
   ### Why are the changes needed?
   To support index in DSv2
   
   
   ### Does this PR introduce _any_ user-facing change?
   Yes, the create table syntax as the following:
   
   ```
   CREATE [index_type] INDEX [index_name] ON [TABLE] table_name 
(column_index_property_list)[OPTIONS indexPropertyList]
   
       column_index_property_list: column_name [OPTIONS(indexPropertyList)]  [ 
,  . . . ]
       indexPropertyList: index_property_name = index_property_value [ ,  . . . 
]
   ```
   
   ### How was this patch tested?
   add a UT


-- 
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