Commit 2eb06c9
committed
feat: gate JVM UDF framework behind spark.comet.jvmUdf.enabled
Adds a master switch (default false) for the experimental JVM UDF framework
so the Java regex engine cannot be activated without an explicit opt-in. With
engine=java but jvmUdf.enabled=false, the six regex serdes return Unsupported
with a message naming the master switch instead of silently using either path.
Also extends Incompatible with optedInBy: Option[String] so a config (e.g. an
engine selector) can serve as a per-expression incompatibility opt-in. Existing
allowIncompatible flags continue to work; optedInBy is OR'd into the gating
check in QueryPlanSerde. No existing serde uses optedInBy yet — this lays the
foundation for the config simplification discussed in #4310.1 parent f6b4096 commit 2eb06c9
19 files changed
Lines changed: 199 additions & 81 deletions
File tree
- docs/source/user-guide/latest/compatibility
- spark/src
- main
- scala/org/apache/comet
- rules
- serde
- spark-3.5/org/apache/comet/shims
- spark-4.0/org/apache/comet/shims
- spark-4.1/org/apache/comet/shims
- spark-4.2/org/apache/comet/shims
- test
- resources/sql-tests/expressions/string
- scala/org/apache
- comet
- spark/sql/benchmark
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
31 | 42 | | |
32 | 43 | | |
33 | 44 | | |
| |||
47 | 58 | | |
48 | 59 | | |
49 | 60 | | |
50 | | - | |
51 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
52 | 64 | | |
53 | 65 | | |
54 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
384 | 396 | | |
385 | 397 | | |
386 | 398 | | |
| |||
390 | 402 | | |
391 | 403 | | |
392 | 404 | | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
397 | 411 | | |
398 | 412 | | |
399 | 413 | | |
| |||
922 | 936 | | |
923 | 937 | | |
924 | 938 | | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
925 | 948 | | |
926 | 949 | | |
927 | 950 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
712 | | - | |
| 712 | + | |
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
| |||
Lines changed: 43 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
533 | | - | |
| 533 | + | |
534 | 534 | | |
535 | | - | |
| 535 | + | |
| 536 | + | |
536 | 537 | | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
541 | 544 | | |
542 | 545 | | |
543 | 546 | | |
544 | 547 | | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
545 | 551 | | |
546 | 552 | | |
547 | 553 | | |
548 | | - | |
549 | | - | |
| 554 | + | |
| 555 | + | |
550 | 556 | | |
551 | 557 | | |
552 | 558 | | |
| |||
622 | 628 | | |
623 | 629 | | |
624 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
625 | 646 | | |
626 | 647 | | |
627 | 648 | | |
| |||
655 | 676 | | |
656 | 677 | | |
657 | 678 | | |
658 | | - | |
| 679 | + | |
659 | 680 | | |
660 | | - | |
| 681 | + | |
| 682 | + | |
661 | 683 | | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
666 | 690 | | |
667 | 691 | | |
668 | 692 | | |
669 | 693 | | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
670 | 697 | | |
671 | 698 | | |
672 | 699 | | |
673 | | - | |
674 | | - | |
| 700 | + | |
| 701 | + | |
675 | 702 | | |
676 | 703 | | |
677 | 704 | | |
| |||
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
40 | 48 | | |
41 | | - | |
| 49 | + | |
| 50 | + | |
42 | 51 | | |
43 | 52 | | |
44 | 53 | | |
| |||
0 commit comments