@malloydata/render 0.0.123-dev240207191052 → 0.0.123-dev240208155844
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -56008,12 +56008,17 @@ QUERY: ${(0, util_1.inspect)(opDesc, { breakLength: 72, depth: Infinity })}`);
|
|
|
56008
56008
|
} else {
|
|
56009
56009
|
if ((props === null || props === void 0 ? void 0 : props.orderBys) && props.orderBys.length > 0) {
|
|
56010
56010
|
const isAnalytic = (0, malloy_types_1.expressionIsAnalytic)(overload.returnType.expressionType);
|
|
56011
|
+
if (!isAnalytic) {
|
|
56012
|
+
if (!this.inExperiment("aggregate_order_by", true)) {
|
|
56013
|
+
props.orderBys[0].log("Enable experiment `aggregate_order_by` to use `order_by` with an aggregate function");
|
|
56014
|
+
}
|
|
56015
|
+
}
|
|
56011
56016
|
if (dialectOverload.supportsOrderBy || isAnalytic) {
|
|
56012
56017
|
const allowExpression = dialectOverload.supportsOrderBy !== "only_default";
|
|
56013
56018
|
const allObs = props.orderBys.flatMap((orderBy) => isAnalytic ? orderBy.getAnalyticOrderBy(fs) : orderBy.getAggregateOrderBy(fs, allowExpression));
|
|
56014
56019
|
frag.orderBy = allObs;
|
|
56015
56020
|
} else {
|
|
56016
|
-
props.orderBys[0].log(`Function
|
|
56021
|
+
props.orderBys[0].log(`Function \`${this.name}\` does not support \`order_by\``);
|
|
56017
56022
|
}
|
|
56018
56023
|
}
|
|
56019
56024
|
if ((props === null || props === void 0 ? void 0 : props.limit) !== void 0) {
|
|
@@ -66493,7 +66498,6 @@ QUERY: ${(0, util_1.inspect)(opDesc, { breakLength: 72, depth: Infinity })}`);
|
|
|
66493
66498
|
return this.astAt(new ast.FunctionOrderBy(f4, dir), pcx);
|
|
66494
66499
|
}
|
|
66495
66500
|
visitAggregateOrderByStatement(pcx) {
|
|
66496
|
-
this.inExperiment("function_order_by", pcx);
|
|
66497
66501
|
return this.visitAggregateOrdering(pcx.aggregateOrdering());
|
|
66498
66502
|
}
|
|
66499
66503
|
visitAggregateOrdering(pcx) {
|
|
@@ -66894,7 +66898,6 @@ QUERY: ${(0, util_1.inspect)(opDesc, { breakLength: 72, depth: Infinity })}`);
|
|
|
66894
66898
|
return new ast.ExprProps(this.getFieldExpr(pcx.fieldExpr()), statements);
|
|
66895
66899
|
}
|
|
66896
66900
|
visitPartitionByStatement(pcx) {
|
|
66897
|
-
this.inExperiment("partition_by", pcx);
|
|
66898
66901
|
return this.astAt(new ast.PartitionBy(pcx.id().map((idCx) => this.astAt(new ast.PartitionByFieldReference([
|
|
66899
66902
|
this.astAt(new ast.FieldName((0, parse_utils_1.idToStr)(idCx)), idCx)
|
|
66900
66903
|
]), idCx))), pcx);
|