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

feat: Firebolt backwards compatibility #112

Merged
merged 18 commits into from
Dec 6, 2023
Merged

feat: Firebolt backwards compatibility #112

merged 18 commits into from
Dec 6, 2023

Conversation

ptiurin
Copy link
Collaborator

@ptiurin ptiurin commented Dec 4, 2023

Description

Support running DBT for both old and new users. This leverages the new SDK with the said support.

Now supporting client_id and client_secret as the new way of passing credentials. If username is not an email assume it's client id and secret, but in old parameters.

Checklist

  • I have run this code in development and it appears to resolve the stated issue.
  • This PR includes tests, or tests are not required/relevant for this PR.
  • I have run changie new and committed everything in .changes folder
  • I have removed any print or log calls that were added for debugging.
  • I have verified that this PR contains only code changes relevant to this PR.
  • If further integration tests are now passing I've edited tests/functional/adapter/* to account for this.
  • I have pulled/merged from the main branch if there are merge conflicts.
  • After pulling/merging main I have run pytest on the included or updated tests/functional/adapter/.

@ptiurin
Copy link
Collaborator Author

ptiurin commented Dec 4, 2023

Integration tests can be found in the checks tab. The difference between v1 and v2 is not due to the SDK or code itself but the sql backend. I've raised a few issues with them.

@ptiurin ptiurin marked this pull request as ready for review December 4, 2023 17:26
@ptiurin ptiurin requested a review from a team as a code owner December 4, 2023 17:26
Copy link
Collaborator

@stepansergeevitch stepansergeevitch left a comment

Choose a reason for hiding this comment

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

LGTM, couple of comments

dbt/adapters/firebolt/connections.py Outdated Show resolved Hide resolved
dbt/adapters/firebolt/connections.py Outdated Show resolved Hide resolved
Copy link

sonarqubecloud bot commented Dec 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

warning The version of Java (11.0.14) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

@ptiurin ptiurin merged commit 0dc7a5c into main Dec 6, 2023
6 checks passed
@ptiurin ptiurin deleted the test-new-identity branch December 6, 2023 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants