You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "shibei (Jira)" <ji...@apache.org> on 2022/05/27 10:00:00 UTC

[jira] [Created] (HUDI-4165) Support Create/Show/Drop Index for Spark SQL

shibei created HUDI-4165:
----------------------------

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


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)