feat(connector): Add read-only Opensearch connector #26900
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a new read only connector for Opensearch
Motivation and Context
We had a need to run federated queries that also retrieved values from indices in Opensearch instances. This OpenSearch connector enables Presto to query OpenSearch indices using SQL syntax with support for vector similarity search via k-NN plugin and nested field access using dot notation.
Basic OpenSearch Index Querying
Query OpenSearch indices using standard SQL syntax:
Vector Search Table Function
Execute k-NN vector similarity searches directly in SQL using the table function syntax:
Nested Field Access with Dot Notation
Query nested JSON structures using dot notation without complex parsing:
Impact
Test Plan
The unit tests include test classes extending AbstractTestQueries. So the full set of regression tests intended for connectors are run against this connector as well. Additional tests are included for the vector functions and individual classes.
Contributor checklist
Release Notes
Please follow release notes guidelines and fill in the release notes below.