Commit 88b8dc2
[SPARK-46937][SQL][FOLLOWUP] Properly check registered function replacement
### What changes were proposed in this pull request?
A followup of #44976 . `ConcurrentHashMap#put` has a different semantic than the scala map, and it returns null if the key is new. We should update the checking code accordingly.
### Why are the changes needed?
avoid wrong warning messages
### Does this PR introduce _any_ user-facing change?
no
### How was this patch tested?
manual
### Was this patch authored or co-authored using generative AI tooling?
no
Closes #46876 from cloud-fan/log.
Authored-by: Wenchen Fan <[email protected]>
Signed-off-by: Kent Yao <[email protected]>1 parent c4f720d commit 88b8dc2
File tree
1 file changed
+1
-1
lines changed- sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
0 commit comments