[SPARK-53591][SDP] Simplify Pipeline Spec Pattern Glob Matching #52348
+162
−46
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
In SDP, the recommended scaffolding is to put pipeline definition files in the
transformations
and any sub folder.Currently if users have both sql and py pipeline definition files, they would need to do something like below to specify all of them in the pipeline spec:
This is cumbersome and requires more work from the user.
transformations
should only contain pipeline source files ending in.py
or.sql
so ideally, users shouldn't even need to specify the file extensions.PR introduces changes to support the below pattern for source file matching and throw exception to discourage user from using the above pattern because they shouldn't put other file types in this directory.
Why are the changes needed?
Simplify the user experience of needing to manually supply the glob with file extensions.
Does this PR introduce any user-facing change?
Yes, but SDP not released.
How was this patch tested?
New and existing tests and running CLI manually
Was this patch authored or co-authored using generative AI tooling?
NO