Closed penghuo closed 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
.
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
opensearch.port
: Default is9200
.opensearch.scheme
: Default ishttp
. Valid values are[http, https]
.opensearch.auth
: Default isnoauth
. Valid values are[noauth, sigv4, basic]
.opensearch.auth.username
: Basic auth username.opensearch.auth.password
: Basic auth password.opensearch.region
: Default isus-west-2
. Used only whenauth
issigv4
.Implemented Methods
loadTable
: Loads a read only table from the OpenSearch index.UnsupportedOperationException
:listTables
createTable
alterTable
dropTable
renameTable
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.