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

ADAP-1132: Migrate dbt-spark into dbt-adapters #404

Merged
merged 687 commits into from
Jan 13, 2025

Conversation

mikealfare
Copy link
Contributor

Migrate dbt-spark into this repo using the following shell script and call:

repo=$1
source_branch=$2
target_branch=$3

# create a remote for the legacy adapter repo and fetch the latest commits
git remote remove old || true
git remote add old https://github.com/dbt-labs/$repo.git
git fetch old

# merge the updated branch from the legacy repo into the dbt-adapters repo
git checkout $target_branch
git merge old/$source_branch --allow-unrelated-histories

# remove the remote that was created by this process
git remote remove old || true
source ./scripts/migrate-adapter.sh dbt-spark monorepo/stage monorepo/migrate-dbt-spark

Update workflows to include dbt-spark.

Make updates related with code quality checks due to slightly different config.

Merge this PR as a regular merge instead of a squash merge in order to retain git blame history.

VShkaberda and others added 30 commits October 11, 2022 14:56
* Fix password is not passing for thrift + LDAP.

* Add password to tests.

* Add CHANGELOG entry.

* Fixing up changelog entry

Co-authored-by: leahwicz <[email protected]>
Co-authored-by: Leah Antkiewicz <[email protected]>
* Supports new error messages.

* changie

* tuple

* fix.

* suggestion.
* updating tox python version, changing contriburing file example for integration tests

* remove change to contributing file for backport ease

* add changelog

* trying to incorprorate mulit python version

* trying to fix unit test

* remove unneded call to basepython

* back to 3.8
* add mypy ignore to column, connections and init

* passenv spacing changes post tox release of 4.0

* adding allowlist_externals to trigger bash commands

* add default_factory lambda

* add extra allowlist external

* add changie

* experiment with default_policy

Co-authored-by: Matthew McKnight <[email protected]>
* incremental predicate support

* remove logging statement

* test merge predicates

* missing color column

* add update row

* changie

* pin core branch

* update test to remove incremental strategy

* add functional test

* add file format config to merge test

* add plus to config name

* update SQL to spark syntax

* add pytest decorator

* update skip profile pytest decorator

* handle predicates config, add test

* unpin feature request
* add release workflow

* tweak the release

* update needs
* add mypy ignore to column, connections and init

* skip databricks integration tests
* add mypy ignore to column, connections and init

* add databricks integ tests back

* remove exclusion

* fix pydantic version issue
* Use CircleCI Context for AWS access key environment variables

* Use the `aws-credentials` global context configured within CircleCI

* Remove changelog entry [skip ci]

* Remove extra space
* add escape_single_quotes macro

* added changelog entry

* Trim trailing whitespace

* Trim trailing whitespace

Co-authored-by: Doug Beatty <[email protected]>
* rename exceptions

* point back to main

* Delete Under the Hood-20230110-105904.yaml

* Update Under the Hood-20230110-101919.yaml
* add mypy ignore to column, connections and init

* wrap if expression in brackets

* change comparison type for boolean if check

* align artifact downloads
* Bumping version to 1.5.0a1 and generate CHANGELOG

* update changelog for 1.5.0a1

Co-authored-by: Github Build Bot <[email protected]>
Co-authored-by: Emily Rockman <[email protected]>
* Convert incremental on_schema_change tests

* Switch to dbt-core main
* add mypy ignore to column, connections and init

* change from agate to AttrDict
* allow thrift 0.16.0

* add changie
* Update release workflow

* Fix format

* Set default `test_run` value to `true`

* Update Slack secret

* Resolve review comments
- Update AWS secrets
- Rework condition for Slack notification
* change type to string

* reduce required length to 1
* Begin conversion and get ready for CI testing.

* Uncheck models

* Change core index.

* Pair test down for minimal test

* Adjust code with some guessing.

* Forgot a version tag

* Make test conversion work. Finally

* Fix up the code.

* Attempt to fix test conversion with profile skips.

* Add missing column test and cleanup code.

* Remove shas from the requirements now that base conversion is live.

* Revert whitespace change.

---------

Co-authored-by: Mila Page <[email protected]>
* update regex for version bump

* update to prekind

* more renaming

* finish up adding nightly release check for future proofing
@mikealfare
Copy link
Contributor Author

Integration tests run against this branch: https://github.com/dbt-labs/dbt-adapters/actions/runs/12753297904. These don't run in the PR checks because it's using the version on main. The attached run was run using the workflows on the PR branch and the code on the PR branch.

Copy link
Contributor

@VersusFacit VersusFacit left a comment

Choose a reason for hiding this comment

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

soft approve with comments. I assume we're fine

@mikealfare mikealfare merged commit 5983011 into main Jan 13, 2025
79 checks passed
@mikealfare mikealfare deleted the monorepo/migrate-dbt-spark branch January 13, 2025 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes The PR author has signed the CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.