Named rewrites are used to keep track of the user intent for operations and macros that are defined in terms of other basic operations. For example, :avg is not available as a basic aggregate type, it is a rewrite to query,:sum,query,:count,:div. However, for the user it is better if we can show query,:avg when dumping the expression as a string.
Value parameters
context
Evaluation context for the initial creation time. This context is used to re-evaluate the rewrite using the original context if the overall expression is rewritten (Expr.rewrite()) later.
displayExpr
Expression that is displayed to the user when creating the expression string.
The underlying data expressions that supply input for the evaluation. These are used to fetch data from the data stores. There may be some expressions types that generate data and will have an empty set. Examples are constants, random, or time.
The underlying data expressions that supply input for the evaluation. These are used to fetch data from the data stores. There may be some expressions types that generate data and will have an empty set. Examples are constants, random, or time.
Returns the final grouping for the expression. For non-grouped expressions this will be an empty list. If a multi-level group by is used, then this will return the grouping of the final result and ignore any intermediate groupings.
Returns the final grouping for the expression. For non-grouped expressions this will be an empty list. If a multi-level group by is used, then this will return the grouping of the final result and ignore any intermediate groupings.