Skip to content

Conversation

@ueshin
Copy link
Contributor

@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
Contributor 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
Contributor 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
Contributor 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