Commit e16bb4a
authored
Output function signature license requirements to Kibana definition files, and also test that this matches the actual licensing behaviour of the functions.
ES|QL functions that enforce license checks do so with the `LicenseAware` interface. This does not expose what that functions license level is, but only whether the current active license will be sufficient for that function and its current signature (data types passed in as fields). Rather than add to this interface, we've made the license level information test-only information. This means if a function implements LicenseAware, it also needs to add a method to its test class to specify the license level for the signature being called. All functions will be tested for compliance, so failing to add this will result in test failure. Also if the test license level does not match the enforced license, that will also cause a failure.
1 parent 69d5b9a commit e16bb4a
File tree
15 files changed
+227
-29
lines changed- docs/reference/query-languages/esql/kibana/definition/functions
- x-pack/plugin
- esql-core/src/main/java/org/elasticsearch/xpack/esql/core/type
- esql/src/test/java/org/elasticsearch/xpack/esql/expression
- function
- aggregate
- grouping
- scalar/string
- predicate/operator
- comparison
15 files changed
+227
-29
lines changedLines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
571 | 575 | | |
572 | 576 | | |
573 | 577 | | |
| |||
Lines changed: 103 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| 33 | + | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
| |||
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
54 | | - | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| |||
701 | 704 | | |
702 | 705 | | |
703 | 706 | | |
704 | | - | |
| 707 | + | |
| 708 | + | |
705 | 709 | | |
706 | 710 | | |
707 | 711 | | |
| |||
724 | 728 | | |
725 | 729 | | |
726 | 730 | | |
727 | | - | |
| 731 | + | |
728 | 732 | | |
729 | 733 | | |
730 | 734 | | |
| |||
767 | 771 | | |
768 | 772 | | |
769 | 773 | | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
770 | 869 | | |
771 | 870 | | |
772 | 871 | | |
| |||
836 | 935 | | |
837 | 936 | | |
838 | 937 | | |
839 | | - | |
| 938 | + | |
840 | 939 | | |
841 | 940 | | |
842 | 941 | | |
| |||
Lines changed: 54 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
110 | | - | |
| 112 | + | |
111 | 113 | | |
112 | 114 | | |
113 | 115 | | |
| |||
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
129 | | - | |
| 131 | + | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
| |||
272 | 274 | | |
273 | 275 | | |
274 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
275 | 310 | | |
276 | 311 | | |
277 | 312 | | |
278 | 313 | | |
279 | 314 | | |
280 | 315 | | |
| 316 | + | |
281 | 317 | | |
282 | 318 | | |
283 | 319 | | |
| |||
296 | 332 | | |
297 | 333 | | |
298 | 334 | | |
| 335 | + | |
299 | 336 | | |
300 | 337 | | |
301 | 338 | | |
| |||
460 | 497 | | |
461 | 498 | | |
462 | 499 | | |
463 | | - | |
| 500 | + | |
464 | 501 | | |
465 | 502 | | |
466 | 503 | | |
| |||
488 | 525 | | |
489 | 526 | | |
490 | 527 | | |
491 | | - | |
| 528 | + | |
492 | 529 | | |
493 | 530 | | |
494 | 531 | | |
| |||
497 | 534 | | |
498 | 535 | | |
499 | 536 | | |
500 | | - | |
| 537 | + | |
501 | 538 | | |
502 | 539 | | |
503 | 540 | | |
| |||
711 | 748 | | |
712 | 749 | | |
713 | 750 | | |
714 | | - | |
| 751 | + | |
715 | 752 | | |
716 | 753 | | |
717 | 754 | | |
| |||
722 | 759 | | |
723 | 760 | | |
724 | 761 | | |
725 | | - | |
| 762 | + | |
726 | 763 | | |
727 | 764 | | |
728 | 765 | | |
| |||
795 | 832 | | |
796 | 833 | | |
797 | 834 | | |
798 | | - | |
| 835 | + | |
799 | 836 | | |
800 | 837 | | |
801 | 838 | | |
| |||
999 | 1036 | | |
1000 | 1037 | | |
1001 | 1038 | | |
1002 | | - | |
| 1039 | + | |
1003 | 1040 | | |
1004 | 1041 | | |
1005 | 1042 | | |
| |||
1019 | 1056 | | |
1020 | 1057 | | |
1021 | 1058 | | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
1022 | 1063 | | |
1023 | 1064 | | |
1024 | 1065 | | |
| |||
1073 | 1114 | | |
1074 | 1115 | | |
1075 | 1116 | | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
1076 | 1121 | | |
1077 | 1122 | | |
1078 | 1123 | | |
| |||
0 commit comments