Commit 96e0d4b
[SPARK-54352][SQL] Introduce
### What changes were proposed in this pull request?
In this PR I propose that we introduce `SQLConf.canonicalize` to centralize normalization of strings. This will help us avoid the code duplication and ease the development of the single-pass analyzer.
### Why are the changes needed?
To ease the development of the single-pass analyzer (avoid code duplication).
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Existing tests.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #53063 from mihailoale-db/canonicalizer.
Authored-by: mihailoale-db <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>SQLConf.canonicalize to centralize normalization of strings1 parent 0a42f55 commit 96e0d4b
File tree
2 files changed
+18
-14
lines changed- sql/catalyst/src/main/scala/org/apache/spark/sql
- catalyst/analysis
- internal
2 files changed
+18
-14
lines changedLines changed: 4 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 44 | | |
55 | 45 | | |
56 | 46 | | |
| |||
80 | 70 | | |
81 | 71 | | |
82 | 72 | | |
83 | | - | |
| 73 | + | |
84 | 74 | | |
85 | 75 | | |
86 | 76 | | |
87 | | - | |
| 77 | + | |
88 | 78 | | |
89 | 79 | | |
90 | 80 | | |
| |||
124 | 114 | | |
125 | 115 | | |
126 | 116 | | |
127 | | - | |
| 117 | + | |
128 | 118 | | |
129 | 119 | | |
130 | 120 | | |
131 | | - | |
| 121 | + | |
132 | 122 | | |
133 | 123 | | |
134 | 124 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7220 | 7220 | | |
7221 | 7221 | | |
7222 | 7222 | | |
| 7223 | + | |
| 7224 | + | |
| 7225 | + | |
| 7226 | + | |
| 7227 | + | |
| 7228 | + | |
| 7229 | + | |
| 7230 | + | |
| 7231 | + | |
| 7232 | + | |
| 7233 | + | |
| 7234 | + | |
| 7235 | + | |
| 7236 | + | |
7223 | 7237 | | |
7224 | 7238 | | |
7225 | 7239 | | |
| |||
0 commit comments