Commit 032f006
committed
[SPARK-5193][SQL] Reconcile Java and Scala UDFRegistration.
1. Removed UDFRegistration as a mixin in SQLContext and made it a field ("udf").
2. For Java UDFs, renamed dataType to returnType, and made that the 2nd argument since the UDF itself can be long.
3. Added all Java UDF registration methods to Scala's UDFRegistration.
4. Documentation1 parent 4b325c7 commit 032f006
File tree
6 files changed
+383
-44
lines changed- sql
- core/src
- main/scala/org/apache/spark/sql
- test/scala/org/apache/spark/sql
- hive/src/test/scala/org/apache/spark/sql/hive/execution
6 files changed
+383
-44
lines changedLines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
338 | 337 | | |
339 | 338 | | |
340 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
341 | 367 | | |
342 | 368 | | |
343 | 369 | | |
| |||
0 commit comments