[ 
https://issues.apache.org/jira/browse/HUDI-4165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

shibei updated HUDI-4165:
-------------------------
    Description: 
Support Create/Show/Drop Index for Spark SQL, SQL Syntax:
{code:java}
-- Create index on specific column
CREATE INDEX indexName ON table (col) AS indexType

-- Show indexes from specific table
SHOW INDEXES (FROM | IN) table

-- Drop specific index
DROP INDEX indexName ON table {code}
 

Reference:
 - Hive sql index syntax:
 -- 
[https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-Create/Drop/AlterIndex]

 
 - MySQL index syntax:
 -- [https://dev.mysql.com/doc/refman/8.0/en/create-index.html]
 -- [https://dev.mysql.com/doc/refman/8.0/en/show-index.html]
 -- [https://dev.mysql.com/doc/refman/8.0/en/drop-index.html]

  was:
Support Create/Show/Drop Index for Spark SQL, SQL Syntax:
{code:java}
-- Create index on specific column
CREATE INDEX indexName ON table (col) AS indexType

-- Show indexes from specific table
SHOW INDEXES (FROM | IN) table

-- Drop specific index
DROP INDEX indexName ON table {code}
Reference:
- hive sql index 
syntax:[https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-Create/Drop/AlterIndex]



 

- MySQL index syntax:

[https://dev.mysql.com/doc/refman/8.0/en/create-index.html]

[https://dev.mysql.com/doc/refman/8.0/en/show-index.html]

[https://dev.mysql.com/doc/refman/8.0/en/drop-index.html]


> Support Create/Show/Drop Index for Spark SQL
> --------------------------------------------
>
>                 Key: HUDI-4165
>                 URL: https://issues.apache.org/jira/browse/HUDI-4165
>             Project: Apache Hudi
>          Issue Type: New Feature
>            Reporter: shibei
>            Assignee: shibei
>            Priority: Major
>
> Support Create/Show/Drop Index for Spark SQL, SQL Syntax:
> {code:java}
> -- Create index on specific column
> CREATE INDEX indexName ON table (col) AS indexType
> -- Show indexes from specific table
> SHOW INDEXES (FROM | IN) table
> -- Drop specific index
> DROP INDEX indexName ON table {code}
>  
> Reference:
>  - Hive sql index syntax:
>  -- 
> [https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-Create/Drop/AlterIndex]
>  
>  - MySQL index syntax:
>  -- [https://dev.mysql.com/doc/refman/8.0/en/create-index.html]
>  -- [https://dev.mysql.com/doc/refman/8.0/en/show-index.html]
>  -- [https://dev.mysql.com/doc/refman/8.0/en/drop-index.html]



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to