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

Follow enhancement/refactor python submission in dbt-spark #178

Merged
merged 5 commits into from
Sep 24, 2022

Conversation

ueshin
Copy link
Collaborator

@ueshin ueshin commented Sep 16, 2022

Resolves #182

Description

Follows enhancement/refactor python submission in dbt-labs/dbt-spark#452 and dbt-labs/dbt-core#5822.

api_client.close()
@property
def python_submission_helpers(self) -> Dict[str, Type[PythonJobHelper]]:
return {"commands": CommandApiPythonJobHelper}

Choose a reason for hiding this comment

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

Hey @ueshin sorry for updating things so frequent, but after talking to @lostmygithubaccount we decided to update the submission method to reflect the cluster type that we run python model on instead of the API we use.
Here's the change on the dbt-spark side.

I think for here all we need to do is change commands to all_purpose_cluster

Suggested change
return {"commands": CommandApiPythonJobHelper}
return {"all_purpose_cluster": CommandApiPythonJobHelper}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oh, and maybe check_credentials was changed.

Thanks for letting me know. I'll handle it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Made minimum changes. I'll submit a follow-up PR.

@ueshin
Copy link
Collaborator Author

ueshin commented Sep 24, 2022

Thanks! merging.

@ueshin ueshin merged commit d6d881b into databricks:main Sep 24, 2022
@ueshin ueshin deleted the refactor_python_submission branch September 24, 2022 00:18
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.

Remove submit_python_job from Jinja context
3 participants