Skip to content
New issue

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

Implement show flint index statement #276

Merged
merged 13 commits into from
Mar 15, 2024

Conversation

seankao-az
Copy link
Collaborator

Description

This PR implements the SHOW FLINT INDEX IN catalog[.database] statement, with the following output columns:

  • flint_index_name: the full OpenSearch index name
  • kind: type of the index (skipping / covering / mv)
  • database: database name for the index
  • table: table name for skipping and covering index
  • index_name: user defined name for covering index and materialized view
  • auto_refresh: auto refresh option of the index (true / false)
  • status: status of the index. It's fetched from Flint metadata log.

Example:

spark-sql> SHOW FLINT INDEXES IN mys3;
flint_mys3_default_http_count_view	mv	default	NULL	http_count_view	false	active
flint_mys3_default_http_logs_skipping_index	skipping	default	http_logs	NULL	false	active
flint_mys3_default_http_logs_status_clientip_and_request_index	covering	default	http_logs	status_clientip_and_request	false	active

Issues Resolved

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Sean Kao <[email protected]>
@seankao-az seankao-az force-pushed the show-all-flint-index branch from 27a0681 to a655e8d Compare March 12, 2024 01:00
@dai-chen dai-chen added enhancement New feature or request 0.3 labels Mar 12, 2024
@seankao-az seankao-az requested a review from dai-chen March 13, 2024 22:40
@seankao-az seankao-az requested a review from dai-chen March 14, 2024 17:24
- update sample result in ducumentation
- remove unused import
- cleaner code in AST builder
- use constant for spark conf

Signed-off-by: Sean Kao <[email protected]>
@seankao-az seankao-az force-pushed the show-all-flint-index branch from 6bb0103 to a2bd633 Compare March 14, 2024 17:33
Copy link
Collaborator

@dai-chen dai-chen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes!

@dai-chen dai-chen merged commit 7382c95 into opensearch-project:main Mar 15, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.3 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants