We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API improvement
CREATE TABLE monitoring_data ( host STRING, region STRING PRIMARY KEY, cpu_usage DOUBLE, ts TIMESTAMP TIME INDEX, INVERTED INDEX(host, region) );
CREATE TABLE sensor_data ( domain STRING PRIMARY KEY, device_id STRING SKIPPING INDEX, temperature DOUBLE, `timestamp` TIMESTAMP TIME INDEX );
CREATE TABLE logs ( message STRING FULLTEXT, `level` STRING PRIMARY KEY, `timestamp` TIMESTAMP TIME INDEX );
Full-text and skipping indexes can only be created using column options, while inverted indexes require INVERTED INDEX(col1, col2...).
INVERTED INDEX(col1, col2...)
We should standardize index creation:
INDEX [ INVERTED | FULLTEXT | SKIPPING](col1 options, col2 options, col3 options)
No response
The text was updated successfully, but these errors were encountered:
I propose to support index at two positions.
<COLUMN_NAME> <COLUMN_TYPE> [OTHER_CONSTRAINS] [INDEX_TYPE INDEX [WITH (key = "value")]]
E.g.:
`level` STRING PRIMARY KEY SKIPPING INDEX WITH (option = 'a'),
<INDEX_TYPE> INDEX (<COLUMN_LIST) [WITH (key = "value)]
CREATE TABLE logs ( message STRING, `level` STRING PRIMARY KEY, `timestamp` TIMESTAMP TIME INDEX, + FULLTEXT INDEX (`message`) WITH (option = 'a') );
Notable changes alongside the grammar:
INDEX
FULLTEXT INDEX
FULLTEXT
INVERTED INDEX
Sorry, something went wrong.
No branches or pull requests
What type of enhancement is this?
API improvement
What does the enhancement do?
Full-text and skipping indexes can only be created using column options, while inverted indexes require
INVERTED INDEX(col1, col2...)
.We should standardize index creation:
INDEX [ INVERTED | FULLTEXT | SKIPPING](col1 options, col2 options, col3 options)
.Implementation challenges
No response
The text was updated successfully, but these errors were encountered: