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

Rename SparkSubmitOperator/SparkJDBCOperator fields' names to comply with templated fields validation #38051

Merged
merged 1 commit into from
Mar 16, 2024

Conversation

shahar1
Copy link
Contributor

@shahar1 shahar1 commented Mar 11, 2024

related: #36484

This PR renames SparkSubmitOperator's fields' names to comply with templated fields validation.
It also optimizes derived SparkJDBCOperator constructor by delegating parents' attributes to **kwargs to avoid repetition of parameters (templated fields were among them).
Tests were added for both operators to ensure correct templating.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@shahar1 shahar1 marked this pull request as draft March 11, 2024 20:09
@shahar1 shahar1 force-pushed the rename-spark-submit-fields branch from 6fdb8be to 77f2840 Compare March 11, 2024 21:28
@shahar1 shahar1 marked this pull request as ready for review March 11, 2024 21:28
@shahar1 shahar1 force-pushed the rename-spark-submit-fields branch 2 times, most recently from f085c59 to 4d4d17d Compare March 11, 2024 22:20
@shahar1 shahar1 force-pushed the rename-spark-submit-fields branch from 4d4d17d to f69fe0f Compare March 12, 2024 21:54
@shahar1 shahar1 requested a review from Taragolis March 12, 2024 21:59
@shahar1 shahar1 force-pushed the rename-spark-submit-fields branch from f69fe0f to c209fbf Compare March 15, 2024 06:48
@shahar1 shahar1 changed the title Rename SparkSubmitOperator's fields' names to comply with templated fields validation Rename SparkSubmitOperator/SparkJDBCOperator fields' names to comply with templated fields validation Mar 15, 2024
@eladkal eladkal force-pushed the rename-spark-submit-fields branch from c209fbf to fcb14c9 Compare March 15, 2024 12:00
@eladkal
Copy link
Contributor

eladkal commented Mar 15, 2024

There are conflicts :(

@shahar1 shahar1 force-pushed the rename-spark-submit-fields branch from fcb14c9 to b858597 Compare March 15, 2024 15:40
@shahar1
Copy link
Contributor Author

shahar1 commented Mar 15, 2024

There are conflicts :(

Fixed; it's expected as we remove an entry in each PR from .pre-commit-config.yaml, and sometimes GIT can't resolve it :)

@shahar1 shahar1 force-pushed the rename-spark-submit-fields branch 3 times, most recently from 3fc0882 to 02ef213 Compare March 15, 2024 17:35
@shahar1 shahar1 force-pushed the rename-spark-submit-fields branch from 02ef213 to d26bda4 Compare March 16, 2024 06:50
@eladkal eladkal merged commit baa6f08 into apache:main Mar 16, 2024
52 checks passed
@shahar1 shahar1 deleted the rename-spark-submit-fields branch June 12, 2024 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants