This repository is a fork of the Databricks Python SDK maintained for StackQL provider development. We periodically sync with upstream to incorporate SDK updates while maintaining our own provider-specific code.
If you're setting up this repository for the first time:
# Clone the repository
git clone git@github.com:stackql-registry/stackql-provider-databricks.git
cd stackql-provider-databricks
# Add upstream remote
git remote add upstream https://github.com/databricks/databricks-sdk-py.git
# Fetch upstream branches
git fetch upstream
# Switch to the working branch
git checkout stackql-providerTo sync with the latest Databricks SDK updates:
# Ensure you're on the stackql-provider branch
git checkout stackql-provider
# Fetch the latest changes from upstream
git fetch upstream
# Merge upstream main into your branch
git merge upstream/main
# If there are conflicts, resolve them, then:
# git add <resolved-files>
# git commit
# Push the updated branch to origin
git push origin stackql-providerIf you encounter conflicts during the merge:
- Git will list the conflicting files
- Open each file and look for conflict markers (
<<<<<<<,=======,>>>>>>>) - Resolve conflicts by choosing the appropriate code or combining both versions
- Stage the resolved files:
git add <file> - Complete the merge:
git commit - Push changes:
git push origin stackql-provider
To see how far behind upstream you are:
git fetch upstream
git log stackql-provider..upstream/main --onelinemain: Mirrors the upstream repository (untouched)stackql-provider: Our working branch with StackQL-specific modifications- Never create pull requests to upstream - this is a permanent fork
To confirm your remotes are configured correctly:
git remote -vShould show:
origin git@github.com:stackql-registry/stackql-provider-databricks.git (fetch)
origin git@github.com:stackql-registry/stackql-provider-databricks.git (push)
upstream https://github.com/databricks/databricks-sdk-py.git (fetch)
upstream https://github.com/databricks/databricks-sdk-py.git (push)