Fix parsing of some aggregation functions with no args (#20432)
In an expression `COUNT/2`, `COUNT` there should be treated as a function (i.e. `COUNT()`) instead of a field. Another function is the same category is `CUMULATIVECOUNT`. Both don't require any arguments, hence the parentheses are optional.
Showing
- frontend/src/metabase/lib/expressions/diagnostics.js 6 additions, 1 deletionfrontend/src/metabase/lib/expressions/diagnostics.js
- frontend/src/metabase/lib/expressions/recursive-parser.js 19 additions, 0 deletionsfrontend/src/metabase/lib/expressions/recursive-parser.js
- frontend/src/metabase/lib/expressions/resolver.js 3 additions, 0 deletionsfrontend/src/metabase/lib/expressions/resolver.js
- frontend/test/metabase/lib/expressions/recursive-parser.unit.spec.js 5 additions, 0 deletions...st/metabase/lib/expressions/recursive-parser.unit.spec.js
Please register or sign in to comment