Commit 4cf9d14
[SPARK-49806][SQL][CONNECT] Remove redundant
### What changes were proposed in this pull request?
The pr aims to remove redundant `blank space` after `show` in `Scala` and `Connect` clients.
### Why are the changes needed?
Make the output of `show` in `scala` and `connect` both end with `1 blank space`, making it look more `consistent` in style.
#### A.Scala (`spark-shell`)
- Before:
<img width="1400" alt="image" src="https://github.com/user-attachments/assets/cccd947d-176e-49d1-a6e2-9553c267837a">
**Note: Other command end with `1 blank space`, while `show` end with `2 blank spaces`.**
- After:
<img width="1397" alt="image" src="https://github.com/user-attachments/assets/83253433-5339-458f-9f14-5ae7c442e7a3">
#### B.Connect (`spark-connect-scala-client`)
- Before:
<img width="911" alt="image" src="https://github.com/user-attachments/assets/fc625539-d14c-499f-95cc-7e545a8a1bbe">
<img width="908" alt="image" src="https://github.com/user-attachments/assets/7fb93845-bbef-4001-9a0c-97a771852c4a">
**Note: Other command end with `1 blank space`, while `show` end with `3 blank spaces`.**
- After:
<img width="914" alt="image" src="https://github.com/user-attachments/assets/c31aa97e-03a1-467e-abb2-5d1c07dcc156">
<img width="911" alt="image" src="https://github.com/user-attachments/assets/7144a4e1-7552-4700-9b0e-658774236ab4">
### Does this PR introduce _any_ user-facing change?
Yes, command are separated by `1 blank space` between them, and 'show' is no longer abrupt.
### How was this patch tested?
Manually check.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes apache#48277 from panbingkun/SPARK-49806.
Authored-by: panbingkun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>blank space after show in Scala and Connect clients1 parent 13e5504 commit 4cf9d14
File tree
6 files changed
+11
-20
lines changed- connector/connect/client/jvm/src/main/scala/org/apache/spark/sql
- python/pyspark
- ml
- sql/tests
- sql/core/src
- main/scala/org/apache/spark/sql
- test/scala/org/apache/spark/sql
- execution/streaming/sources
6 files changed
+11
-20
lines changedLines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
278 | | - | |
279 | | - | |
| 277 | + | |
280 | 278 | | |
281 | 279 | | |
282 | 280 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
217 | 216 | | |
218 | 217 | | |
219 | 218 | | |
| |||
225 | 224 | | |
226 | 225 | | |
227 | 226 | | |
228 | | - | |
229 | 227 | | |
230 | 228 | | |
231 | 229 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
674 | | - | |
675 | | - | |
| 674 | + | |
676 | 675 | | |
677 | 676 | | |
678 | 677 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
| 415 | + | |
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
419 | | - | |
| 419 | + | |
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| |||
Lines changed: 7 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
| 115 | + | |
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
120 | 119 | | |
121 | | - | |
| 120 | + | |
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
| |||
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
130 | | - | |
131 | | - | |
| 129 | + | |
132 | 130 | | |
133 | 131 | | |
134 | 132 | | |
| |||
145 | 143 | | |
146 | 144 | | |
147 | 145 | | |
148 | | - | |
| 146 | + | |
149 | 147 | | |
150 | 148 | | |
151 | 149 | | |
| |||
286 | 284 | | |
287 | 285 | | |
288 | 286 | | |
289 | | - | |
290 | | - | |
| 287 | + | |
291 | 288 | | |
292 | 289 | | |
293 | 290 | | |
294 | 291 | | |
295 | 292 | | |
296 | 293 | | |
297 | 294 | | |
298 | | - | |
| 295 | + | |
299 | 296 | | |
300 | 297 | | |
301 | 298 | | |
| |||
337 | 334 | | |
338 | 335 | | |
339 | 336 | | |
340 | | - | |
| 337 | + | |
341 | 338 | | |
342 | 339 | | |
343 | 340 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
| |||
0 commit comments