|
572 | 572 | "error": "invalid-arity"
|
573 | 573 | },
|
574 | 574 | {
|
575 |
| - "description": "function projection on single arg function", |
| 575 | + "comment": "function projection on single arg function", |
576 | 576 | "expression": "numbers[].to_string(@)",
|
577 | 577 | "result": ["-1", "3", "4", "5"]
|
578 | 578 | },
|
579 | 579 | {
|
580 |
| - "description": "function projection on single arg function", |
| 580 | + "comment": "function projection on single arg function", |
581 | 581 | "expression": "array[].to_number(@)",
|
582 | 582 | "result": [-1, 3, 4, 5, 100]
|
583 | 583 | }
|
|
595 | 595 | },
|
596 | 596 | "cases": [
|
597 | 597 | {
|
598 |
| - "description": "function projection on variadic function", |
| 598 | + "comment": "function projection on variadic function", |
599 | 599 | "expression": "foo[].not_null(f, e, d, c, b, a)",
|
600 | 600 | "result": ["b", "c", "d", "e", "f"]
|
601 | 601 | }
|
|
613 | 613 | },
|
614 | 614 | "cases": [
|
615 | 615 | {
|
616 |
| - "description": "sort by field expression", |
| 616 | + "comment": "sort by field expression", |
617 | 617 | "expression": "sort_by(people, &age)",
|
618 | 618 | "result": [
|
619 | 619 | {"age": 10, "age_str": "10", "bool": true, "name": 3},
|
|
634 | 634 | ]
|
635 | 635 | },
|
636 | 636 | {
|
637 |
| - "description": "sort by function expression", |
| 637 | + "comment": "sort by function expression", |
638 | 638 | "expression": "sort_by(people, &to_number(age_str))",
|
639 | 639 | "result": [
|
640 | 640 | {"age": 10, "age_str": "10", "bool": true, "name": 3},
|
|
645 | 645 | ]
|
646 | 646 | },
|
647 | 647 | {
|
648 |
| - "description": "function projection on sort_by function", |
| 648 | + "comment": "function projection on sort_by function", |
649 | 649 | "expression": "sort_by(people, &age)[].name",
|
650 | 650 | "result": [3, "a", "c", "b", "d"]
|
651 | 651 | },
|
|
733 | 733 | },
|
734 | 734 | "cases": [
|
735 | 735 | {
|
736 |
| - "description": "stable sort order", |
| 736 | + "comment": "stable sort order", |
737 | 737 | "expression": "sort_by(people, &age)",
|
738 | 738 | "result": [
|
739 | 739 | {"age": 10, "order": "1"},
|
|
0 commit comments