Feature request: Query builder: Support derivation in projection #254
Labels
Component: Query Builder
Issues related to query builder core
Studio Core Team
Opened by a member of the Studio core team
Type: Feature Request
Right now the only type of lambda that is supported in the query builder projection column is a property expression. We should allow any expression to be typed.
Context and Motivation
We want to support use cases like the following:
Implementation Plan
We do a very strict check to ensure the only form of column lambda we support in form view is property expression, anything deviate from that would be considered
derivation
(or free form). To accommodate for this, we need to create a new wrapper type forValueSpecification
, we call thisUnknownValue
(this is in line with what we want to do in #315)Steps
derivation
and converting it toUnknownValue
roundtrip
for processing unsupported column expressions inproject() expression
+
- default tox|''
in projection panelroundtrip
for processing unsupported column expressions ingroupBy() expression
Optional
Support custom aggregation - default to-> after discussion, this does not seem to make a lot of sense since we should only allow a fairly restricted sets of functions for aggregationx|x->count()
Support custom filter - default to-> This could make sense, but we would move it back to the main threadx|true
Feature request: Query builder improvements #256
The text was updated successfully, but these errors were encountered: