Commit 6216399
Support parameterized functions in APPLY column transformers
Add support for parsing APPLY(quantiles(0.5)) and similar parameterized
function calls within column transformers. Previously, the parser only
handled simple function names like APPLY(sum), but not functions with
parameters.
Changes:
- Add ApplyParams field to ColumnTransformer struct in AST
- Update parseColumnsApply and parseAsteriskApply to handle nested
parentheses for parameterized functions
- Fixes 01470_columns_transformers stmt41, stmt42
- Also fixes 01710_projection_with_column_transformers
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 734ba84 commit 6216399
File tree
4 files changed
+54
-22
lines changed- ast
- parser
- testdata
- 01470_columns_transformers
- 01710_projection_with_column_transformers
4 files changed
+54
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1428 | 1428 | | |
1429 | 1429 | | |
1430 | 1430 | | |
| 1431 | + | |
1431 | 1432 | | |
1432 | 1433 | | |
1433 | 1434 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2957 | 2957 | | |
2958 | 2958 | | |
2959 | 2959 | | |
2960 | | - | |
2961 | | - | |
2962 | | - | |
| 2960 | + | |
| 2961 | + | |
| 2962 | + | |
2963 | 2963 | | |
2964 | 2964 | | |
2965 | 2965 | | |
2966 | 2966 | | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
| 2970 | + | |
| 2971 | + | |
| 2972 | + | |
| 2973 | + | |
| 2974 | + | |
| 2975 | + | |
| 2976 | + | |
| 2977 | + | |
| 2978 | + | |
| 2979 | + | |
| 2980 | + | |
| 2981 | + | |
| 2982 | + | |
| 2983 | + | |
| 2984 | + | |
| 2985 | + | |
| 2986 | + | |
2967 | 2987 | | |
2968 | 2988 | | |
2969 | | - | |
2970 | | - | |
2971 | | - | |
| 2989 | + | |
| 2990 | + | |
| 2991 | + | |
| 2992 | + | |
2972 | 2993 | | |
2973 | | - | |
2974 | 2994 | | |
2975 | 2995 | | |
2976 | 2996 | | |
| |||
3002 | 3022 | | |
3003 | 3023 | | |
3004 | 3024 | | |
| 3025 | + | |
| 3026 | + | |
| 3027 | + | |
| 3028 | + | |
| 3029 | + | |
| 3030 | + | |
| 3031 | + | |
| 3032 | + | |
| 3033 | + | |
| 3034 | + | |
| 3035 | + | |
| 3036 | + | |
| 3037 | + | |
| 3038 | + | |
| 3039 | + | |
| 3040 | + | |
| 3041 | + | |
| 3042 | + | |
| 3043 | + | |
| 3044 | + | |
3005 | 3045 | | |
3006 | 3046 | | |
3007 | | - | |
3008 | | - | |
3009 | | - | |
| 3047 | + | |
| 3048 | + | |
| 3049 | + | |
| 3050 | + | |
3010 | 3051 | | |
3011 | | - | |
3012 | 3052 | | |
3013 | 3053 | | |
3014 | 3054 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
0 commit comments