Commit 4aa94fb
[SPARK-54435][SDP] spark-pipelines init should avoid overwriting existing directory
### What changes were proposed in this pull request?
If the name provided to `spark-pipelines init` matches an existing directory, raises an error instead of overwriting the existing directory's contents.
### Why are the changes needed?
Help users avoid accidentally overwriting their code.
### Does this PR introduce _any_ user-facing change?
Yes, to an unreleased version.
### How was this patch tested?
Added unit test for the cases where init is invoked with an existing directory.
### Was this patch authored or co-authored using generative AI tooling?
Closes apache#53140 from sryza/initoverwrite.
Authored-by: Sandy Ryza <sandy.ryza@databricks.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>1 parent b95ab64 commit 4aa94fb
2 files changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
75 | 90 | | |
76 | 91 | | |
77 | 92 | | |
| |||
0 commit comments