You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(glue-alpha): refactor spark jobs code-related props handling (#33567)
### Issue # (if applicable)
Related to #33356
### Reason for this change
address the feedback section of **extraJars, extraFiles, extraPythonFiles, extraJarsFirst** + refactor to reduce duplicative code across the different spark job classes
### Description of changes
- update the different spark jobs props to
- make `extraPythonFiles`, `extraFiles`, `extraJars`, and `extraJarsFirst` available in pyspark jobs
- make `extraFiles`, `extraJars`, and `extraJarsFirst` available in scala spark jobs
- introduce a base `SparkJob` class and `SparkJobProps` to reduce duplicate logic across different spark job classes
- introduce `setupSparkCodeArguments` `protected` method along with an interface `SparkExtraCodeProps` to handle setting up `Code`-related arguments
- fix spark ui setup to be consistent with docs for `sparkUI` prop
- merge content of `spark-ui-utils.ts` into `spark-job.ts` and retire it
- cleanup comma expression for role setup
- fix typos and do renames to follow conventions
### Describe any new or updated permissions being added
N/A
### Description of how you validated changes
updated unit tests
### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
0 commit comments