Repository navigation
Commit f23556e
committed
fix: discard native UDF registration results explicitly for the strict-warnings build
`spark.udf.register` returns the registered `UserDefinedFunction` and
`ConcurrentHashMap.put` returns the previous value. Both were discarded
implicitly at the end of a `Unit` method, which `-Ywarn-value-discard` under
`-Pstrict-warnings` rejects as `discarded non-Unit value`. The fatal error
also cut scalac short, which is where the job's four errors in untouched
shuffle files came from.1 parent 74d7560 commit f23556e
2 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
0 commit comments