opensearch-project / opensearch-spark

Spark Accelerator framework ; It enables secondary indices to remote data stores.
Apache License 2.0
14 stars 23 forks source link

Add OpenSearchCatalog to enable direct access OpenSearch index in Spark SQL #399

Closed penghuo closed 3 months ago

penghuo commented 3 months ago

Description

This PR introduces the OpenSearchCatalog class, enabling Apache Spark to integrate with OpenSearch as a data catalog and direct access OpenSearch Index in Spark SQL. Key features and changes include:

Configuration Parameters

Implemented Methods

Follow up

Doc

https://github.com/penghuo/penghuo-opensearch-spark/blob/issue395/docs/opensearch-table.md

Issues Resolved

https://github.com/opensearch-project/opensearch-spark/issues/395

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.

opensearch-trigger-bot[bot] commented 3 months ago

The backport to 0.4 failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/opensearch-spark/backport-0.4 0.4
# Navigate to the new working tree
pushd ../.worktrees/opensearch-spark/backport-0.4
# Create a new branch
git switch --create backport/backport-399-to-0.4
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 2d46cff814f111ac932e9d05ab59fe366e9c0d42
# Push it to GitHub
git push --set-upstream origin backport/backport-399-to-0.4
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/opensearch-spark/backport-0.4

Then, create a pull request where the base branch is 0.4 and the compare/head branch is backport/backport-399-to-0.4.