[ASTERIXDB-2078][SQL] DISTINCT modifier for aggregate functions
- user model changes: yes
- storage format changes: no
- interface changes: no
Details:
- Adds support for DISTINCT modifier in aggregate functions:
AGG(DISTINCT expr), ARRAY_AGG(DISTINCT expr), COLL_AGG(DISTINCT expr)
where AGG = COUNT | SUM | AVG | MIN | MAX
Change-Id: I52772349cbcbfc68a3a1ff261d610871ca38748d
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1987
Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Contrib: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Till Westmann <tillw@apache.org>
diff --git a/asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/PushAggFuncIntoStandaloneAggregateRule.java b/asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/PushAggFuncIntoStandaloneAggregateRule.java
index d8efbe4..abb87757 100644
--- a/asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/PushAggFuncIntoStandaloneAggregateRule.java
+++ b/asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/PushAggFuncIntoStandaloneAggregateRule.java
@@ -44,6 +44,7 @@
import org.apache.hyracks.algebricks.core.algebra.operators.logical.AbstractLogicalOperator;
import org.apache.hyracks.algebricks.core.algebra.operators.logical.AggregateOperator;
import org.apache.hyracks.algebricks.core.algebra.operators.logical.AssignOperator;
+import org.apache.hyracks.algebricks.core.algebra.operators.logical.GroupByOperator;
import org.apache.hyracks.algebricks.core.algebra.operators.logical.visitors.VariableUtilities;
import org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRule;
@@ -78,8 +79,7 @@
AbstractBinaryJoinOperator join = (AbstractBinaryJoinOperator) op2;
// Tries to push aggregates through the join.
if (containsAggregate(assignOp.getExpressions()) && pushableThroughJoin(join)) {
- pushAggregateFunctionThroughJoin(join, assignOp, context);
- return true;
+ return pushAggregateFunctionThroughJoin(join, assignOp, context);
}
}
return false;
@@ -152,27 +152,29 @@
* @param context
* @throws AlgebricksException
*/
- private void pushAggregateFunctionThroughJoin(AbstractBinaryJoinOperator join, AssignOperator assignOp,
+ private boolean pushAggregateFunctionThroughJoin(AbstractBinaryJoinOperator join, AssignOperator assignOp,
IOptimizationContext context) throws AlgebricksException {
+ boolean applied = false;
for (Mutable<ILogicalOperator> branchRef : join.getInputs()) {
AbstractLogicalOperator branch = (AbstractLogicalOperator) branchRef.getValue();
if (branch.getOperatorTag() == LogicalOperatorTag.AGGREGATE) {
AggregateOperator aggOp = (AggregateOperator) branch;
- pushAggregateFunction(aggOp, assignOp, context);
+ applied |= pushAggregateFunction(aggOp, assignOp, context);
} else if (branch.getOperatorTag() == LogicalOperatorTag.INNERJOIN
|| branch.getOperatorTag() == LogicalOperatorTag.LEFTOUTERJOIN) {
AbstractBinaryJoinOperator childJoin = (AbstractBinaryJoinOperator) branch;
- pushAggregateFunctionThroughJoin(childJoin, assignOp, context);
+ applied |= pushAggregateFunctionThroughJoin(childJoin, assignOp, context);
}
}
+ return applied;
}
private boolean pushAggregateFunction(AggregateOperator aggOp, AssignOperator assignOp, IOptimizationContext context)
throws AlgebricksException {
Mutable<ILogicalOperator> opRef3 = aggOp.getInputs().get(0);
AbstractLogicalOperator op3 = (AbstractLogicalOperator) opRef3.getValue();
- // If there's a group by below the agg, then we want to have the agg pushed into the group by.
- if (op3.getOperatorTag() == LogicalOperatorTag.GROUP) {
+ // If there's a group by below the agg, then we want to have the agg pushed into the group by
+ if (op3.getOperatorTag() == LogicalOperatorTag.GROUP && !((GroupByOperator) op3).getNestedPlans().isEmpty()) {
return false;
}
if (aggOp.getVariables().size() != 1) {
diff --git a/asterixdb/asterix-algebra/src/main/java/org/apache/asterix/translator/SqlppExpressionToPlanTranslator.java b/asterixdb/asterix-algebra/src/main/java/org/apache/asterix/translator/SqlppExpressionToPlanTranslator.java
index 285a35e..d37c7af 100644
--- a/asterixdb/asterix-algebra/src/main/java/org/apache/asterix/translator/SqlppExpressionToPlanTranslator.java
+++ b/asterixdb/asterix-algebra/src/main/java/org/apache/asterix/translator/SqlppExpressionToPlanTranslator.java
@@ -614,7 +614,7 @@
returnVar = context.getVar(varExpr.getVar().getId());
} else {
returnVar = context.newVar();
- returnOperator = new AssignOperator(returnVar, new MutableObject<ILogicalExpression>(eo.first));
+ returnOperator = new AssignOperator(returnVar, new MutableObject<>(eo.first));
returnOperator.getInputs().add(eo.second);
}
if (selectClause.distinct()) {
diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/count-tweets.ast b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/count-tweets.ast
index 166b68e..133b650 100644
--- a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/count-tweets.ast
+++ b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/count-tweets.ast
@@ -21,7 +21,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall twitter.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/denorm-cust-order.ast b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/denorm-cust-order.ast
index a517304..cf3721d 100644
--- a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/denorm-cust-order.ast
+++ b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/denorm-cust-order.ast
@@ -52,7 +52,7 @@
(
LiteralExpr [STRING] [cnt-orders]
:
- FunctionCall custorder.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/distinct_aggregate.ast b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/distinct_aggregate.ast
index 134e968..7dfc9a1 100644
--- a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/distinct_aggregate.ast
+++ b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/distinct_aggregate.ast
@@ -37,7 +37,7 @@
(
LiteralExpr [STRING] [count_suppkey]
:
- FunctionCall tpch.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/fj-phase1.ast b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/fj-phase1.ast
index 1bb18a6..4d5fe2b 100644
--- a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/fj-phase1.ast
+++ b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/fj-phase1.ast
@@ -80,7 +80,7 @@
Let Variable [ Name=$count ]
:=
- FunctionCall rares03.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -99,7 +99,7 @@
)
AS Variable [ Name=$token ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/fj-phase2-with-hints.ast b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/fj-phase2-with-hints.ast
index 6ff1695..595e2cb 100644
--- a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/fj-phase2-with-hints.ast
+++ b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/fj-phase2-with-hints.ast
@@ -78,7 +78,7 @@
)
Orderby
- FunctionCall fuzzyjoin_078.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -97,7 +97,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/inlined_q18_large_volume_customer.ast b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/inlined_q18_large_volume_customer.ast
index cab13e2..2f16552 100644
--- a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/inlined_q18_large_volume_customer.ast
+++ b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/inlined_q18_large_volume_customer.ast
@@ -79,7 +79,7 @@
(
LiteralExpr [STRING] [sum_quantity]
:
- FunctionCall inlined_q18_large_volume_customer.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -118,7 +118,7 @@
(
LiteralExpr [STRING] [t_sum_quantity]
:
- FunctionCall inlined_q18_large_volume_customer.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/nest_aggregate.ast b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/nest_aggregate.ast
index 56a5172..bb1b519 100644
--- a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/nest_aggregate.ast
+++ b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/nest_aggregate.ast
@@ -168,7 +168,7 @@
Let Variable [ Name=$sum ]
:=
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/orders-aggreg.ast b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/orders-aggreg.ast
index 2c44738..f2c8872 100644
--- a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/orders-aggreg.ast
+++ b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/orders-aggreg.ast
@@ -22,7 +22,7 @@
(
LiteralExpr [STRING] [ordpercust]
:
- FunctionCall orders-aggreg.count@1[
+ FunctionCall asterix.count@1[
FunctionCall Metadata.resolve@-1[
LiteralExpr [STRING] [o]
Variable [ Name=$cid ]
@@ -33,7 +33,7 @@
(
LiteralExpr [STRING] [totalcust]
:
- FunctionCall orders-aggreg.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -52,7 +52,7 @@
(
LiteralExpr [STRING] [avgcust]
:
- FunctionCall orders-aggreg.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/q01_pricing_summary_report_nt.ast b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/q01_pricing_summary_report_nt.ast
index aa7ccbd..5e220fd 100644
--- a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/q01_pricing_summary_report_nt.ast
+++ b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/q01_pricing_summary_report_nt.ast
@@ -37,7 +37,7 @@
(
LiteralExpr [STRING] [sum_qty]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -56,7 +56,7 @@
(
LiteralExpr [STRING] [sum_base_price]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -75,7 +75,7 @@
(
LiteralExpr [STRING] [sum_disc_price]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
@@ -105,7 +105,7 @@
(
LiteralExpr [STRING] [sum_charge]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
@@ -144,7 +144,7 @@
(
LiteralExpr [STRING] [ave_qty]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -163,7 +163,7 @@
(
LiteralExpr [STRING] [ave_price]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -182,7 +182,7 @@
(
LiteralExpr [STRING] [ave_disc]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -201,7 +201,7 @@
(
LiteralExpr [STRING] [count_order]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
FunctionCall Metadata.resolve@-1[
LiteralExpr [STRING] [l]
Variable [ Name=$l_linestatus ]
diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/q03_shipping_priority.ast b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/q03_shipping_priority.ast
index 7d54130..35a0f59 100644
--- a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/q03_shipping_priority.ast
+++ b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/q03_shipping_priority.ast
@@ -173,7 +173,7 @@
Let Variable [ Name=$revenue ]
:=
- FunctionCall q3_shipping_priority.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/q05_local_supplier_volume.ast b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/q05_local_supplier_volume.ast
index a220cf6..6795260 100644
--- a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/q05_local_supplier_volume.ast
+++ b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/q05_local_supplier_volume.ast
@@ -394,7 +394,7 @@
Let Variable [ Name=$revenue ]
:=
- FunctionCall q5_local_supplier.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/q2.ast b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/q2.ast
index adb9a05..cfeb5fc 100644
--- a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/q2.ast
+++ b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/q2.ast
@@ -91,7 +91,7 @@
Let Variable [ Name=$sig_sponsorship_count ]
:=
- FunctionCall events.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -121,7 +121,7 @@
(
LiteralExpr [STRING] [escount]
:
- FunctionCall events.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue562.ast b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue562.ast
index b588daa..d8f328a 100644
--- a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue562.ast
+++ b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue562.ast
@@ -136,7 +136,7 @@
Query:
Let Variable [ Name=$avg ]
:=
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -226,7 +226,7 @@
(
LiteralExpr [STRING] [numcust]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
FunctionCall Metadata.resolve@-1[
LiteralExpr [STRING] [ct]
Variable [ Name=$cntrycode ]
@@ -237,7 +237,7 @@
(
LiteralExpr [STRING] [totacctbal]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -261,7 +261,7 @@
]
Where
OperatorExpr [
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
Variable [ Name=$o ]
diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue601.ast b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue601.ast
index 5cffeb4..3f3558d 100644
--- a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue601.ast
+++ b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue601.ast
@@ -31,7 +31,7 @@
(
LiteralExpr [STRING] [count_order]
:
- FunctionCall tpch.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue697.ast b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue697.ast
index c733869..b106711 100644
--- a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue697.ast
+++ b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue697.ast
@@ -17,7 +17,7 @@
(
LiteralExpr [STRING] [avg]
:
- FunctionCall test.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue785.ast b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue785.ast
index 8dc0e87..c383a04 100644
--- a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue785.ast
+++ b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue785.ast
@@ -186,7 +186,7 @@
Let Variable [ Name=$sum ]
:=
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue810-2.ast b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue810-2.ast
index c75e253..90336e2 100644
--- a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue810-2.ast
+++ b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue810-2.ast
@@ -36,28 +36,28 @@
(
LiteralExpr [STRING] [count_cheaps]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
Variable [ Name=$cheaps ]
]
)
(
LiteralExpr [STRING] [avg_expensive_discounts]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
Variable [ Name=$expensives ]
]
)
(
LiteralExpr [STRING] [sum_disc_prices]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
Variable [ Name=$disc_prices ]
]
)
(
LiteralExpr [STRING] [total_charges]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
Variable [ Name=$charges ]
]
)
diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue810.ast b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue810.ast
index 612bbfa..65d64bc 100644
--- a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue810.ast
+++ b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue810.ast
@@ -36,14 +36,14 @@
(
LiteralExpr [STRING] [count_cheaps]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
Variable [ Name=$cheap ]
]
)
(
LiteralExpr [STRING] [count_expensives]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
Variable [ Name=$expensive ]
]
)
diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue827-2.ast b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue827-2.ast
index 61c78ef..50efae7 100644
--- a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue827-2.ast
+++ b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/query-issue827-2.ast
@@ -25,7 +25,7 @@
(
LiteralExpr [STRING] [sum_qty_partial]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -53,7 +53,7 @@
(
LiteralExpr [STRING] [sum_base_price]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -72,7 +72,7 @@
(
LiteralExpr [STRING] [sum_disc_price]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
@@ -102,7 +102,7 @@
(
LiteralExpr [STRING] [sum_charge]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
@@ -141,7 +141,7 @@
(
LiteralExpr [STRING] [ave_qty]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -169,7 +169,7 @@
(
LiteralExpr [STRING] [ave_price]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -188,7 +188,7 @@
(
LiteralExpr [STRING] [ave_disc]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -207,7 +207,7 @@
(
LiteralExpr [STRING] [count_order]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
Variable [ Name=$l ]
diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/split-materialization-above-join.ast b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/split-materialization-above-join.ast
index 76447cd..c5c32c6 100644
--- a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/split-materialization-above-join.ast
+++ b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/split-materialization-above-join.ast
@@ -179,7 +179,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -198,7 +198,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -264,7 +264,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -283,7 +283,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/split-materialization.ast b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/split-materialization.ast
index 6927f09..1824e70 100644
--- a/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/split-materialization.ast
+++ b/asterixdb/asterix-app/src/test/resources/optimizerts/results_parser_sqlpp/split-materialization.ast
@@ -33,7 +33,7 @@
]
Where
OperatorExpr [
- FunctionCall TinySocial.count@1[
+ FunctionCall asterix.count@1[
FieldAccessor [
Variable [ Name=$d ]
Field=friend-ids
@@ -56,7 +56,7 @@
]
Where
OperatorExpr [
- FunctionCall TinySocial.count@1[
+ FunctionCall asterix.count@1[
FieldAccessor [
Variable [ Name=$d ]
Field=friend-ids
diff --git a/asterixdb/asterix-app/src/test/resources/parserts/results_parser_sqlpp/2.ast b/asterixdb/asterix-app/src/test/resources/parserts/results_parser_sqlpp/2.ast
index 9e50f02..0ee0fbd 100644
--- a/asterixdb/asterix-app/src/test/resources/parserts/results_parser_sqlpp/2.ast
+++ b/asterixdb/asterix-app/src/test/resources/parserts/results_parser_sqlpp/2.ast
@@ -58,7 +58,7 @@
Let Variable [ Name=$sig_sponsorship_count ]
:=
- FunctionCall null.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -88,7 +88,7 @@
(
LiteralExpr [STRING] [escount]
:
- FunctionCall null.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
diff --git a/asterixdb/asterix-app/src/test/resources/parserts/results_parser_sqlpp/groupby_clause_count.ast b/asterixdb/asterix-app/src/test/resources/parserts/results_parser_sqlpp/groupby_clause_count.ast
index 1f46935..5e45f4e 100644
--- a/asterixdb/asterix-app/src/test/resources/parserts/results_parser_sqlpp/groupby_clause_count.ast
+++ b/asterixdb/asterix-app/src/test/resources/parserts/results_parser_sqlpp/groupby_clause_count.ast
@@ -1,6 +1,6 @@
Query:
SELECT ELEMENT [
-FunctionCall null.sql-count@1[
+FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/parserts/results_parser_sqlpp/nestedFLWOGR3.ast b/asterixdb/asterix-app/src/test/resources/parserts/results_parser_sqlpp/nestedFLWOGR3.ast
index 9c4682d..f9be2c5 100644
--- a/asterixdb/asterix-app/src/test/resources/parserts/results_parser_sqlpp/nestedFLWOGR3.ast
+++ b/asterixdb/asterix-app/src/test/resources/parserts/results_parser_sqlpp/nestedFLWOGR3.ast
@@ -58,7 +58,7 @@
Let Variable [ Name=$sig_sponsorship_count ]
:=
- FunctionCall null.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -88,7 +88,7 @@
(
LiteralExpr [STRING] [escount]
:
- FunctionCall null.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate-sql/avg_distinct/avg_distinct.1.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate-sql/avg_distinct/avg_distinct.1.query.sqlpp
new file mode 100644
index 0000000..cae2b8f
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate-sql/avg_distinct/avg_distinct.1.query.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+ {
+ 't1': to_bigint(array_avg(distinct [10,20,30,10,20,30,10])),
+ 't2': to_bigint(array_avg(distinct [null,missing,null,missing])),
+ 't3': to_bigint(array_avg(distinct [40,null,missing,50,40,null,missing,50,40])),
+ 't4': to_bigint(array_avg(distinct []))
+ }
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate-sql/count_distinct/count_distinct.1.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate-sql/count_distinct/count_distinct.1.query.sqlpp
new file mode 100644
index 0000000..80dc741
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate-sql/count_distinct/count_distinct.1.query.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+ {
+ 't1': array_count(distinct [10,20,30,10,20,30,10]),
+ 't2': array_count(distinct [null,missing,null,missing]),
+ 't3': array_count(distinct [40,null,missing,50,40,null,missing,50,40]),
+ 't4': array_count(distinct [])
+ }
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate-sql/max_distinct/max_distinct.1.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate-sql/max_distinct/max_distinct.1.query.sqlpp
new file mode 100644
index 0000000..0f381f7
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate-sql/max_distinct/max_distinct.1.query.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+ {
+ 't1': array_max(distinct [10,20,30,10,20,30,10]),
+ 't2': array_max(distinct [null,missing,null,missing]),
+ 't3': array_max(distinct [40,null,missing,50,40,null,missing,50,40]),
+ 't4': array_max(distinct [])
+ }
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate-sql/min_distinct/min_distinct.1.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate-sql/min_distinct/min_distinct.1.query.sqlpp
new file mode 100644
index 0000000..8a25c31
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate-sql/min_distinct/min_distinct.1.query.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+ {
+ 't1': array_min(distinct [10,20,30,10,20,30,10]),
+ 't2': array_min(distinct [null,missing,null,missing]),
+ 't3': array_min(distinct [40,null,missing,50,40,null,missing,50,40]),
+ 't4': array_min(distinct [])
+ }
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate-sql/sum_distinct/sum_distinct.1.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate-sql/sum_distinct/sum_distinct.1.query.sqlpp
new file mode 100644
index 0000000..53aacdf
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate-sql/sum_distinct/sum_distinct.1.query.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+ {
+ 't1': array_sum(distinct [10,20,30,10,20,30,10]),
+ 't2': array_sum(distinct [null,missing,null,missing]),
+ 't3': array_sum(distinct [40,null,missing,50,40,null,missing,50,40]),
+ 't4': array_sum(distinct [])
+ }
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/avg_distinct/avg_distinct.1.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/avg_distinct/avg_distinct.1.query.sqlpp
new file mode 100644
index 0000000..c9a79fb
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/avg_distinct/avg_distinct.1.query.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+ {
+ 't1': to_bigint(coll_avg(distinct [10,20,30,10,20,30,10])),
+ 't2': to_bigint(coll_avg(distinct [null,missing,null,missing])),
+ 't3': to_bigint(coll_avg(distinct [40,null,missing,50,40,null,missing,50,40])),
+ 't4': to_bigint(coll_avg(distinct []))
+ }
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/count_distinct/count_distinct.1.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/count_distinct/count_distinct.1.query.sqlpp
new file mode 100644
index 0000000..a7d9b90
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/count_distinct/count_distinct.1.query.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+ {
+ 't1': coll_count(distinct [10,20,30,10,20,30,10]),
+ 't2': coll_count(distinct [null,missing,null,missing]),
+ 't3': coll_count(distinct [40,null,missing,50,40,null,missing,50,40]),
+ 't4': coll_count(distinct [])
+ }
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/max_distinct/max_distinct.1.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/max_distinct/max_distinct.1.query.sqlpp
new file mode 100644
index 0000000..70f273f
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/max_distinct/max_distinct.1.query.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+ {
+ 't1': coll_max(distinct [10,20,30,10,20,30,10]),
+ 't2': coll_max(distinct [null,missing,null,missing]),
+ 't3': coll_max(distinct [40,null,missing,50,40,null,missing,50,40]),
+ 't4': coll_max(distinct [])
+ }
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/min_distinct/min_distinct.1.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/min_distinct/min_distinct.1.query.sqlpp
new file mode 100644
index 0000000..77684a0
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/min_distinct/min_distinct.1.query.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+ {
+ 't1': coll_min(distinct [10,20,30,10,20,30,10]),
+ 't2': coll_min(distinct [null,missing,null,missing]),
+ 't3': coll_min(distinct [40,null,missing,50,40,null,missing,50,40]),
+ 't4': coll_min(distinct [])
+ }
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/sum_distinct/sum_distinct.1.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/sum_distinct/sum_distinct.1.query.sqlpp
new file mode 100644
index 0000000..6991a74
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/sum_distinct/sum_distinct.1.query.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+ {
+ 't1': coll_sum(distinct [10,20,30,10,20,30,10]),
+ 't2': coll_sum(distinct [null,missing,null,missing]),
+ 't3': coll_sum(distinct [40,null,missing,50,40,null,missing,50,40]),
+ 't4': coll_sum(distinct [])
+ }
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.1.ddl.sqlpp
new file mode 100644
index 0000000..0330592
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.1.ddl.sqlpp
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+DROP DATAVERSE gby IF EXISTS;
+CREATE DATAVERSE gby;
+
+USE gby;
+
+CREATE TYPE EmpType AS {
+ name : string
+};
+
+CREATE DATASET Employee(EmpType) PRIMARY KEY name;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.2.update.sqlpp
new file mode 100644
index 0000000..3fe9478
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.2.update.sqlpp
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+USE gby;
+
+INSERT INTO Employee (
+[
+ { 'name': 'a', 'deptno': 1, 'salary': 2000 },
+ { 'name': 'b', 'deptno': 1, 'salary': 3000 },
+ { 'name': 'c', 'deptno': 1, 'salary': 2000 },
+ { 'name': 'd', 'deptno': 1, 'salary': 3000 },
+ { 'name': 'e', 'deptno': 1, 'salary': 2000 },
+
+ { 'name': 'f', 'deptno': 2, 'salary': 4000 },
+ { 'name': 'g', 'deptno': 2, 'salary': 5000 },
+ { 'name': 'h', 'deptno': 2, 'salary': 4000 },
+ { 'name': 'i', 'deptno': 2, 'salary': 5000 },
+ { 'name': 'j', 'deptno': 2, 'salary': 4000 },
+
+ { 'name': 'k', 'deptno': 3, 'salary': null },
+ { 'name': 'l', 'deptno': 3, 'salary': 6000 },
+ { 'name': 'm', 'deptno': 3 },
+ { 'name': 'n', 'deptno': 3, 'salary': null },
+ { 'name': 'o', 'deptno': 3, 'salary': 6000 },
+ { 'name': 'p', 'deptno': 3 },
+
+ { 'name': 'q', 'deptno': 4 }
+]
+);
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.3.query.sqlpp
new file mode 100644
index 0000000..4c64f14
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.3.query.sqlpp
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+USE gby;
+
+FROM gby.Employee e
+GROUP BY e.deptno AS deptno
+SELECT VALUE [ deptno, COUNT(DISTINCT e.salary) ]
+ORDER BY deptno;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.4.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.4.query.sqlpp
new file mode 100644
index 0000000..524a88b
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.4.query.sqlpp
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+USE gby;
+
+FROM gby.Employee e
+GROUP BY e.deptno AS deptno
+SELECT VALUE [ deptno, SUM(DISTINCT e.salary) ]
+ORDER BY deptno;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.5.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.5.query.sqlpp
new file mode 100644
index 0000000..d0a2aaf
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.5.query.sqlpp
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+USE gby;
+
+FROM gby.Employee e
+GROUP BY e.deptno AS deptno
+SELECT VALUE [ deptno, TO_BIGINT(AVG(DISTINCT e.salary)) ]
+ORDER BY deptno;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.6.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.6.query.sqlpp
new file mode 100644
index 0000000..867ca3a
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.6.query.sqlpp
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+USE gby;
+
+FROM gby.Employee e
+GROUP BY e.deptno AS deptno
+SELECT VALUE [ deptno, MAX(DISTINCT e.salary) ]
+ORDER BY deptno;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.7.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.7.query.sqlpp
new file mode 100644
index 0000000..6ab01d7
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.7.query.sqlpp
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+USE gby;
+
+FROM gby.Employee e
+GROUP BY e.deptno AS deptno
+SELECT VALUE [ deptno, MIN(DISTINCT e.salary) ]
+ORDER BY deptno;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.8.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.8.query.sqlpp
new file mode 100644
index 0000000..69d95bc
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/group-by/sugar-06-distinct/sugar-06-distinct.8.query.sqlpp
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+USE gby;
+
+FROM gby.Employee e
+GROUP BY e.deptno AS deptno GROUP AS g
+SELECT VALUE [ deptno, ARRAY_SUM((SELECT DISTINCT VALUE g.e.salary FROM g )) ]
+ORDER BY deptno;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate-sql/avg_distinct/avg_distinct.1.adm b/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate-sql/avg_distinct/avg_distinct.1.adm
new file mode 100644
index 0000000..a7b36e6
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate-sql/avg_distinct/avg_distinct.1.adm
@@ -0,0 +1 @@
+{ "t1": 20, "t2": null, "t3": 45, "t4": null }
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate-sql/count_distinct/count_distinct.1.adm b/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate-sql/count_distinct/count_distinct.1.adm
new file mode 100644
index 0000000..445924e
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate-sql/count_distinct/count_distinct.1.adm
@@ -0,0 +1 @@
+{ "t1": 3, "t2": 0, "t3": 2, "t4": 0 }
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate-sql/max_distinct/max_distinct.1.adm b/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate-sql/max_distinct/max_distinct.1.adm
new file mode 100644
index 0000000..c974ed2
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate-sql/max_distinct/max_distinct.1.adm
@@ -0,0 +1 @@
+{ "t1": 30, "t2": null, "t3": 50, "t4": null }
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate-sql/min_distinct/min_distinct.1.adm b/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate-sql/min_distinct/min_distinct.1.adm
new file mode 100644
index 0000000..aa09030
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate-sql/min_distinct/min_distinct.1.adm
@@ -0,0 +1 @@
+{ "t1": 10, "t2": null, "t3": 40, "t4": null }
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate-sql/sum_distinct/sum_distinct.1.adm b/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate-sql/sum_distinct/sum_distinct.1.adm
new file mode 100644
index 0000000..afbe3eb
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate-sql/sum_distinct/sum_distinct.1.adm
@@ -0,0 +1 @@
+{ "t1": 60, "t2": null, "t3": 90, "t4": null }
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate/avg_distinct/avg_distinct.1.adm b/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate/avg_distinct/avg_distinct.1.adm
new file mode 100644
index 0000000..64d2407
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate/avg_distinct/avg_distinct.1.adm
@@ -0,0 +1 @@
+{ "t1": 20, "t2": null, "t3": null, "t4": null }
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate/count_distinct/count_distinct.1.adm b/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate/count_distinct/count_distinct.1.adm
new file mode 100644
index 0000000..d30ac1d
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate/count_distinct/count_distinct.1.adm
@@ -0,0 +1 @@
+{ "t1": 3, "t2": 2, "t3": 4, "t4": 0 }
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate/max_distinct/max_distinct.1.adm b/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate/max_distinct/max_distinct.1.adm
new file mode 100644
index 0000000..a4ffdd2
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate/max_distinct/max_distinct.1.adm
@@ -0,0 +1 @@
+{ "t1": 30, "t2": null, "t3": null, "t4": null }
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate/min_distinct/min_distinct.1.adm b/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate/min_distinct/min_distinct.1.adm
new file mode 100644
index 0000000..00ae7b2
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate/min_distinct/min_distinct.1.adm
@@ -0,0 +1 @@
+{ "t1": 10, "t2": null, "t3": null, "t4": null }
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate/sum_distinct/sum_distinct.1.adm b/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate/sum_distinct/sum_distinct.1.adm
new file mode 100644
index 0000000..8366796
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results/aggregate/sum_distinct/sum_distinct.1.adm
@@ -0,0 +1 @@
+{ "t1": 60, "t2": null, "t3": null, "t4": null }
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results/group-by/sugar-06-distinct/sugar-06-distinct.3.adm b/asterixdb/asterix-app/src/test/resources/runtimets/results/group-by/sugar-06-distinct/sugar-06-distinct.3.adm
new file mode 100644
index 0000000..bb7e8f4
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results/group-by/sugar-06-distinct/sugar-06-distinct.3.adm
@@ -0,0 +1,4 @@
+[ 1, 2 ]
+[ 2, 2 ]
+[ 3, 1 ]
+[ 4, 0 ]
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results/group-by/sugar-06-distinct/sugar-06-distinct.4.adm b/asterixdb/asterix-app/src/test/resources/runtimets/results/group-by/sugar-06-distinct/sugar-06-distinct.4.adm
new file mode 100644
index 0000000..b42c458
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results/group-by/sugar-06-distinct/sugar-06-distinct.4.adm
@@ -0,0 +1,4 @@
+[ 1, 5000 ]
+[ 2, 9000 ]
+[ 3, 6000 ]
+[ 4, null ]
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results/group-by/sugar-06-distinct/sugar-06-distinct.5.adm b/asterixdb/asterix-app/src/test/resources/runtimets/results/group-by/sugar-06-distinct/sugar-06-distinct.5.adm
new file mode 100644
index 0000000..0385e23
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results/group-by/sugar-06-distinct/sugar-06-distinct.5.adm
@@ -0,0 +1,4 @@
+[ 1, 2500 ]
+[ 2, 4500 ]
+[ 3, 6000 ]
+[ 4, null ]
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results/group-by/sugar-06-distinct/sugar-06-distinct.6.adm b/asterixdb/asterix-app/src/test/resources/runtimets/results/group-by/sugar-06-distinct/sugar-06-distinct.6.adm
new file mode 100644
index 0000000..0e1e38c
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results/group-by/sugar-06-distinct/sugar-06-distinct.6.adm
@@ -0,0 +1,4 @@
+[ 1, 3000 ]
+[ 2, 5000 ]
+[ 3, 6000 ]
+[ 4, null ]
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results/group-by/sugar-06-distinct/sugar-06-distinct.7.adm b/asterixdb/asterix-app/src/test/resources/runtimets/results/group-by/sugar-06-distinct/sugar-06-distinct.7.adm
new file mode 100644
index 0000000..1549912
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results/group-by/sugar-06-distinct/sugar-06-distinct.7.adm
@@ -0,0 +1,4 @@
+[ 1, 2000 ]
+[ 2, 4000 ]
+[ 3, 6000 ]
+[ 4, null ]
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results/group-by/sugar-06-distinct/sugar-06-distinct.8.adm b/asterixdb/asterix-app/src/test/resources/runtimets/results/group-by/sugar-06-distinct/sugar-06-distinct.8.adm
new file mode 100644
index 0000000..b42c458
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results/group-by/sugar-06-distinct/sugar-06-distinct.8.adm
@@ -0,0 +1,4 @@
+[ 1, 5000 ]
+[ 2, 9000 ]
+[ 3, 6000 ]
+[ 4, null ]
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/agg_null/agg_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/agg_null/agg_null.3.ast
index e8ff6f9..cde56f7 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/agg_null/agg_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/agg_null/agg_null.3.ast
@@ -3,7 +3,7 @@
(
LiteralExpr [STRING] [sql-count1]
:
- FunctionCall null.sql-count@1[
+ FunctionCall asterix.sql-count@1[
OrderedListConstructor [
LiteralExpr [NULL]
]
@@ -12,7 +12,7 @@
(
LiteralExpr [STRING] [average1]
:
- FunctionCall null.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
OrderedListConstructor [
LiteralExpr [NULL]
]
@@ -21,7 +21,7 @@
(
LiteralExpr [STRING] [sql-sum1]
:
- FunctionCall null.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
OrderedListConstructor [
LiteralExpr [NULL]
]
@@ -30,7 +30,7 @@
(
LiteralExpr [STRING] [sql-min1]
:
- FunctionCall null.sql-min@1[
+ FunctionCall asterix.sql-min@1[
OrderedListConstructor [
LiteralExpr [NULL]
]
@@ -39,7 +39,7 @@
(
LiteralExpr [STRING] [sql-max1]
:
- FunctionCall null.sql-max@1[
+ FunctionCall asterix.sql-max@1[
OrderedListConstructor [
LiteralExpr [NULL]
]
@@ -48,7 +48,7 @@
(
LiteralExpr [STRING] [sql-count2]
:
- FunctionCall null.sql-count@1[
+ FunctionCall asterix.sql-count@1[
UnorderedListConstructor [
LiteralExpr [NULL]
LiteralExpr [NULL]
@@ -58,7 +58,7 @@
(
LiteralExpr [STRING] [average2]
:
- FunctionCall null.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
UnorderedListConstructor [
LiteralExpr [NULL]
LiteralExpr [NULL]
@@ -68,7 +68,7 @@
(
LiteralExpr [STRING] [sql-sum2]
:
- FunctionCall null.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
UnorderedListConstructor [
LiteralExpr [NULL]
LiteralExpr [NULL]
@@ -78,7 +78,7 @@
(
LiteralExpr [STRING] [sql-min2]
:
- FunctionCall null.sql-min@1[
+ FunctionCall asterix.sql-min@1[
UnorderedListConstructor [
LiteralExpr [NULL]
LiteralExpr [NULL]
@@ -88,7 +88,7 @@
(
LiteralExpr [STRING] [sql-max2]
:
- FunctionCall null.sql-max@1[
+ FunctionCall asterix.sql-max@1[
UnorderedListConstructor [
LiteralExpr [NULL]
LiteralExpr [NULL]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/agg_null_rec/agg_null_rec.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/agg_null_rec/agg_null_rec.3.ast
index 89d8623..0d84c5d 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/agg_null_rec/agg_null_rec.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/agg_null_rec/agg_null_rec.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [sql-count]
:
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -23,7 +23,7 @@
(
LiteralExpr [STRING] [average]
:
- FunctionCall test.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -42,7 +42,7 @@
(
LiteralExpr [STRING] [sql-sum]
:
- FunctionCall test.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -61,7 +61,7 @@
(
LiteralExpr [STRING] [sql-min]
:
- FunctionCall test.sql-min@1[
+ FunctionCall asterix.sql-min@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -80,7 +80,7 @@
(
LiteralExpr [STRING] [sql-max]
:
- FunctionCall test.sql-max@1[
+ FunctionCall asterix.sql-max@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/agg_null_rec_1/agg_null_rec_1.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/agg_null_rec_1/agg_null_rec_1.3.ast
index 61d7014..dbd02c5 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/agg_null_rec_1/agg_null_rec_1.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/agg_null_rec_1/agg_null_rec_1.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [sql-count]
:
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
Variable [ Name=$t ]
@@ -20,7 +20,7 @@
(
LiteralExpr [STRING] [average]
:
- FunctionCall test.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -46,7 +46,7 @@
(
LiteralExpr [STRING] [sql-sum]
:
- FunctionCall test.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -72,7 +72,7 @@
(
LiteralExpr [STRING] [sql-min]
:
- FunctionCall test.sql-min@1[
+ FunctionCall asterix.sql-min@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -98,7 +98,7 @@
(
LiteralExpr [STRING] [sql-max]
:
- FunctionCall test.sql-max@1[
+ FunctionCall asterix.sql-max@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/agg_number/agg_number.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/agg_number/agg_number.3.ast
index 126ceba..14ac395 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/agg_number/agg_number.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/agg_number/agg_number.3.ast
@@ -3,7 +3,7 @@
(
LiteralExpr [STRING] [sql-count1]
:
- FunctionCall null.sql-count@1[
+ FunctionCall asterix.sql-count@1[
OrderedListConstructor [
FunctionCall null.float@1[
LiteralExpr [STRING] [2.0]
@@ -19,7 +19,7 @@
(
LiteralExpr [STRING] [average1]
:
- FunctionCall null.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
OrderedListConstructor [
FunctionCall null.float@1[
LiteralExpr [STRING] [2.0]
@@ -35,7 +35,7 @@
(
LiteralExpr [STRING] [sql-sum1]
:
- FunctionCall null.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
OrderedListConstructor [
FunctionCall null.float@1[
LiteralExpr [STRING] [2.0]
@@ -51,7 +51,7 @@
(
LiteralExpr [STRING] [sql-min1]
:
- FunctionCall null.sql-min@1[
+ FunctionCall asterix.sql-min@1[
OrderedListConstructor [
FunctionCall null.float@1[
LiteralExpr [STRING] [2.0]
@@ -67,7 +67,7 @@
(
LiteralExpr [STRING] [sql-max1]
:
- FunctionCall null.sql-max@1[
+ FunctionCall asterix.sql-max@1[
OrderedListConstructor [
FunctionCall null.float@1[
LiteralExpr [STRING] [2.0]
@@ -83,7 +83,7 @@
(
LiteralExpr [STRING] [sql-count2]
:
- FunctionCall null.sql-count@1[
+ FunctionCall asterix.sql-count@1[
UnorderedListConstructor [
FunctionCall null.float@1[
LiteralExpr [STRING] [2.0]
@@ -99,7 +99,7 @@
(
LiteralExpr [STRING] [average2]
:
- FunctionCall null.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
UnorderedListConstructor [
FunctionCall null.float@1[
LiteralExpr [STRING] [2.0]
@@ -115,7 +115,7 @@
(
LiteralExpr [STRING] [sql-sum2]
:
- FunctionCall null.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
UnorderedListConstructor [
FunctionCall null.float@1[
LiteralExpr [STRING] [2.0]
@@ -131,7 +131,7 @@
(
LiteralExpr [STRING] [sql-min2]
:
- FunctionCall null.sql-min@1[
+ FunctionCall asterix.sql-min@1[
UnorderedListConstructor [
FunctionCall null.float@1[
LiteralExpr [STRING] [2.0]
@@ -147,7 +147,7 @@
(
LiteralExpr [STRING] [sql-max2]
:
- FunctionCall null.sql-max@1[
+ FunctionCall asterix.sql-max@1[
UnorderedListConstructor [
FunctionCall null.float@1[
LiteralExpr [STRING] [2.0]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/agg_number_rec/agg_number_rec.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/agg_number_rec/agg_number_rec.3.ast
index 89d8623..0d84c5d 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/agg_number_rec/agg_number_rec.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/agg_number_rec/agg_number_rec.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [sql-count]
:
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -23,7 +23,7 @@
(
LiteralExpr [STRING] [average]
:
- FunctionCall test.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -42,7 +42,7 @@
(
LiteralExpr [STRING] [sql-sum]
:
- FunctionCall test.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -61,7 +61,7 @@
(
LiteralExpr [STRING] [sql-min]
:
- FunctionCall test.sql-min@1[
+ FunctionCall asterix.sql-min@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -80,7 +80,7 @@
(
LiteralExpr [STRING] [sql-max]
:
- FunctionCall test.sql-max@1[
+ FunctionCall asterix.sql-max@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_double/avg_double.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_double/avg_double.3.ast
index f369b18..ddb57dc 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_double/avg_double.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_double/avg_double.3.ast
@@ -1,6 +1,6 @@
Query:
SELECT ELEMENT [
-FunctionCall null.sql-avg@1[
+FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_double_null/avg_double_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_double_null/avg_double_null.3.ast
index 83cf6ef..344de1f 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_double_null/avg_double_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_double_null/avg_double_null.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [average]
:
- FunctionCall test.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_empty_01/avg_empty_01.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_empty_01/avg_empty_01.3.ast
index c8a2795..f70d26a 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_empty_01/avg_empty_01.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_empty_01/avg_empty_01.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-avg@1[
+FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_empty_02/avg_empty_02.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_empty_02/avg_empty_02.3.ast
index 2f96b47..f17fad0 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_empty_02/avg_empty_02.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_empty_02/avg_empty_02.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-avg@1[
+FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_float/avg_float.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_float/avg_float.3.ast
index a9f805f..15229e0 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_float/avg_float.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_float/avg_float.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-avg@1[
+FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_float_null/avg_float_nu.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_float_null/avg_float_nu.3.ast
index bf526f8..c82659b 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_float_null/avg_float_nu.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_float_null/avg_float_nu.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [average]
:
- FunctionCall test.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int16/avg_int16.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int16/avg_int16.3.ast
index 9d6f304..ca94dfe 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int16/avg_int16.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int16/avg_int16.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-avg@1[
+FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int16_null/avg_int16_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int16_null/avg_int16_null.3.ast
index 7fe4c90..896af7a 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int16_null/avg_int16_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int16_null/avg_int16_null.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [average]
:
- FunctionCall test.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int32/avg_int32.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int32/avg_int32.3.ast
index 6f0431d..7958cad 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int32/avg_int32.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int32/avg_int32.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-avg@1[
+FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int32_null/avg_int32_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int32_null/avg_int32_null.3.ast
index 114973d..2293707 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int32_null/avg_int32_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int32_null/avg_int32_null.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [average]
:
- FunctionCall test.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int64/avg_int64.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int64/avg_int64.3.ast
index dc8d43c..582834c 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int64/avg_int64.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int64/avg_int64.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-avg@1[
+FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int64_null/avg_int64_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int64_null/avg_int64_null.3.ast
index 4edcfa4..4107b9a 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int64_null/avg_int64_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int64_null/avg_int64_null.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [average]
:
- FunctionCall test.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int8/avg_int8.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int8/avg_int8.3.ast
index 122ead6..784cd52 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int8/avg_int8.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int8/avg_int8.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-avg@1[
+FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int8_null/avg_int8_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int8_null/avg_int8_null.3.ast
index 6a7beba..210917c 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int8_null/avg_int8_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_int8_null/avg_int8_null.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [average]
:
- FunctionCall test.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_mixed/avg_mixed.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_mixed/avg_mixed.3.ast
index 27e8113..034df11 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_mixed/avg_mixed.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/avg_mixed/avg_mixed.3.ast
@@ -1,6 +1,6 @@
Query:
SELECT ELEMENT [
-FunctionCall null.sql-avg@1[
+FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/count_01/count_01.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/count_01/count_01.3.ast
index 603ea9b..0d7a2e4 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/count_01/count_01.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/count_01/count_01.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-count@1[
+FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/count_empty_01/count_empty_01.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/count_empty_01/count_empty_01.3.ast
index 6482820..69e1c5d 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/count_empty_01/count_empty_01.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/count_empty_01/count_empty_01.3.ast
@@ -1,6 +1,6 @@
Query:
SELECT ELEMENT [
-FunctionCall null.sql-count@1[
+FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/count_empty_02/count_empty_02.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/count_empty_02/count_empty_02.3.ast
index e4fb920..2ccd958 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/count_empty_02/count_empty_02.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/count_empty_02/count_empty_02.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-count@1[
+FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/count_null/count_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/count_null/count_null.3.ast
index 3990ca7..619729a 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/count_null/count_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/count_null/count_null.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [sql-count]
:
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue395/issue395.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue395/issue395.3.ast
index 4d546cf..56c8c0a 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue395/issue395.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue395/issue395.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-count@1[
+FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue412_0/issue412_0.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue412_0/issue412_0.3.ast
index 31974e0..684e457 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue412_0/issue412_0.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue412_0/issue412_0.3.ast
@@ -1,5 +1,5 @@
Query:
-FunctionCall null.sql-count@1[
+FunctionCall asterix.sql-count@1[
OrderedListConstructor [
LiteralExpr [STRING] [ASTERIX]
LiteralExpr [STRING] [Hyracks]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue412_1/issue412_1.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue412_1/issue412_1.3.ast
index 4c5af72..14e5c79 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue412_1/issue412_1.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue412_1/issue412_1.3.ast
@@ -3,7 +3,7 @@
(
LiteralExpr [STRING] [sql-count]
:
- FunctionCall null.sql-count@1[
+ FunctionCall asterix.sql-count@1[
OrderedListConstructor [
LiteralExpr [LONG] [1]
LiteralExpr [LONG] [60]
@@ -14,7 +14,7 @@
(
LiteralExpr [STRING] [average]
:
- FunctionCall null.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
OrderedListConstructor [
LiteralExpr [LONG] [1]
LiteralExpr [LONG] [60]
@@ -25,7 +25,7 @@
(
LiteralExpr [STRING] [sql-sum]
:
- FunctionCall null.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
OrderedListConstructor [
LiteralExpr [LONG] [1]
LiteralExpr [LONG] [60]
@@ -36,7 +36,7 @@
(
LiteralExpr [STRING] [sql-min]
:
- FunctionCall null.sql-min@1[
+ FunctionCall asterix.sql-min@1[
OrderedListConstructor [
LiteralExpr [LONG] [1]
LiteralExpr [LONG] [60]
@@ -47,7 +47,7 @@
(
LiteralExpr [STRING] [sql-max]
:
- FunctionCall null.sql-max@1[
+ FunctionCall asterix.sql-max@1[
OrderedListConstructor [
LiteralExpr [LONG] [1]
LiteralExpr [LONG] [60]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue425_min_hetero_list/issue425_min_hetero_list.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue425_min_hetero_list/issue425_min_hetero_list.3.ast
index fbe0b62..03f82af 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue425_min_hetero_list/issue425_min_hetero_list.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue425_min_hetero_list/issue425_min_hetero_list.3.ast
@@ -1,5 +1,5 @@
Query:
-FunctionCall null.sql-min@1[
+FunctionCall asterix.sql-min@1[
OrderedListConstructor [
LiteralExpr [LONG] [23]
LiteralExpr [LONG] [748374857483]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue425_min_hetero_list_1/issue425_min_hetero_list_1.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue425_min_hetero_list_1/issue425_min_hetero_list_1.3.ast
index 465ed26..efe47da 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue425_min_hetero_list_1/issue425_min_hetero_list_1.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue425_min_hetero_list_1/issue425_min_hetero_list_1.3.ast
@@ -1,5 +1,5 @@
Query:
-FunctionCall null.sql-min@1[
+FunctionCall asterix.sql-min@1[
OrderedListConstructor [
LiteralExpr [LONG] [748374857483]
LiteralExpr [LONG] [23]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue425_sum_hetero_list/issue425_sum_hetero_list.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue425_sum_hetero_list/issue425_sum_hetero_list.3.ast
index a1b6a6e..968bfd7 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue425_sum_hetero_list/issue425_sum_hetero_list.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue425_sum_hetero_list/issue425_sum_hetero_list.3.ast
@@ -1,5 +1,5 @@
Query:
-FunctionCall null.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
OrderedListConstructor [
LiteralExpr [LONG] [23]
LiteralExpr [LONG] [748374857483]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue425_sum_hetero_list_1/issue425_sum_hetero_list_1.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue425_sum_hetero_list_1/issue425_sum_hetero_list_1.3.ast
index 200d11c..0bf6869 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue425_sum_hetero_list_1/issue425_sum_hetero_list_1.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue425_sum_hetero_list_1/issue425_sum_hetero_list_1.3.ast
@@ -1,5 +1,5 @@
Query:
-FunctionCall null.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
OrderedListConstructor [
LiteralExpr [LONG] [748374857483]
LiteralExpr [LONG] [23]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue531_string_min_max/issue531_string_min_max.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue531_string_min_max/issue531_string_min_max.3.ast
index 29240da..5ed4c7b 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue531_string_min_max/issue531_string_min_max.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/issue531_string_min_max/issue531_string_min_max.3.ast
@@ -5,7 +5,7 @@
(
LiteralExpr [STRING] [sql-min]
:
- FunctionCall test.sql-min@1[
+ FunctionCall asterix.sql-min@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -24,7 +24,7 @@
(
LiteralExpr [STRING] [sql-max]
:
- FunctionCall test.sql-max@1[
+ FunctionCall asterix.sql-max@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/max_empty_01/max_empty_01.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/max_empty_01/max_empty_01.3.ast
index d3c89c9..7870b00 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/max_empty_01/max_empty_01.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/max_empty_01/max_empty_01.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-max@1[
+FunctionCall asterix.sql-max@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/max_empty_02/max_empty_02.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/max_empty_02/max_empty_02.3.ast
index d7bf8ab..524082e 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/max_empty_02/max_empty_02.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/max_empty_02/max_empty_02.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-max@1[
+FunctionCall asterix.sql-max@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/min_empty_01/min_empty_01.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/min_empty_01/min_empty_01.3.ast
index 825bbf4..9f473db 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/min_empty_01/min_empty_01.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/min_empty_01/min_empty_01.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-min@1[
+FunctionCall asterix.sql-min@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/min_empty_02/min_empty_02.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/min_empty_02/min_empty_02.3.ast
index 799e5e1..03bb24f 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/min_empty_02/min_empty_02.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/min_empty_02/min_empty_02.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-min@1[
+FunctionCall asterix.sql-min@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/min_mixed/min_mixed.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/min_mixed/min_mixed.3.ast
index 0bbf1c4..27e0619 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/min_mixed/min_mixed.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/min_mixed/min_mixed.3.ast
@@ -1,6 +1,6 @@
Query:
SELECT ELEMENT [
-FunctionCall null.sql-min@1[
+FunctionCall asterix.sql-min@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/query-issue400/query-issue400.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/query-issue400/query-issue400.3.ast
index bc444a9..b3706d7 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/query-issue400/query-issue400.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/query-issue400/query-issue400.3.ast
@@ -1,5 +1,5 @@
Query:
-FunctionCall null.sql-count@1[
+FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
Variable [ Name=$i ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_avg/scalar_avg.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_avg/scalar_avg.3.ast
index c8b53ac..46f9fd5 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_avg/scalar_avg.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_avg/scalar_avg.3.ast
@@ -2,7 +2,7 @@
Query:
Let Variable [ Name=$i8 ]
:=
- FunctionCall test.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
OrderedListConstructor [
FunctionCall test.int8@1[
LiteralExpr [STRING] [1]
@@ -17,7 +17,7 @@
]
Let Variable [ Name=$i16 ]
:=
- FunctionCall test.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
OrderedListConstructor [
FunctionCall test.int16@1[
LiteralExpr [STRING] [1]
@@ -32,7 +32,7 @@
]
Let Variable [ Name=$i32 ]
:=
- FunctionCall test.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
OrderedListConstructor [
FunctionCall test.int32@1[
LiteralExpr [STRING] [1]
@@ -47,7 +47,7 @@
]
Let Variable [ Name=$i64 ]
:=
- FunctionCall test.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
OrderedListConstructor [
FunctionCall test.int64@1[
LiteralExpr [STRING] [1]
@@ -62,7 +62,7 @@
]
Let Variable [ Name=$f ]
:=
- FunctionCall test.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
OrderedListConstructor [
FunctionCall test.float@1[
LiteralExpr [STRING] [1]
@@ -77,7 +77,7 @@
]
Let Variable [ Name=$d ]
:=
- FunctionCall test.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
OrderedListConstructor [
FunctionCall test.double@1[
LiteralExpr [STRING] [1]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_avg_empty/scalar_avg_empty.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_avg_empty/scalar_avg_empty.3.ast
index 7da8ba1..fcb6b8f 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_avg_empty/scalar_avg_empty.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_avg_empty/scalar_avg_empty.3.ast
@@ -1,6 +1,6 @@
Query:
SELECT ELEMENT [
-FunctionCall null.sql-avg@1[
+FunctionCall asterix.sql-avg@1[
OrderedListConstructor [
]
]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_avg_null/scalar_avg_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_avg_null/scalar_avg_null.3.ast
index 5f25851..a06070c 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_avg_null/scalar_avg_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_avg_null/scalar_avg_null.3.ast
@@ -2,7 +2,7 @@
Query:
Let Variable [ Name=$i8 ]
:=
- FunctionCall test.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
OrderedListConstructor [
FunctionCall test.int8@1[
LiteralExpr [STRING] [1]
@@ -18,7 +18,7 @@
]
Let Variable [ Name=$i16 ]
:=
- FunctionCall test.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
OrderedListConstructor [
FunctionCall test.int16@1[
LiteralExpr [STRING] [1]
@@ -34,7 +34,7 @@
]
Let Variable [ Name=$i32 ]
:=
- FunctionCall test.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
OrderedListConstructor [
FunctionCall test.int32@1[
LiteralExpr [STRING] [1]
@@ -50,7 +50,7 @@
]
Let Variable [ Name=$i64 ]
:=
- FunctionCall test.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
OrderedListConstructor [
FunctionCall test.int64@1[
LiteralExpr [STRING] [1]
@@ -66,7 +66,7 @@
]
Let Variable [ Name=$f ]
:=
- FunctionCall test.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
OrderedListConstructor [
FunctionCall test.float@1[
LiteralExpr [STRING] [1]
@@ -82,7 +82,7 @@
]
Let Variable [ Name=$d ]
:=
- FunctionCall test.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
OrderedListConstructor [
FunctionCall test.double@1[
LiteralExpr [STRING] [1]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_count/scalar_count.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_count/scalar_count.3.ast
index fa5ab75..f1abf16 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_count/scalar_count.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_count/scalar_count.3.ast
@@ -2,7 +2,7 @@
Query:
Let Variable [ Name=$i8 ]
:=
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
OrderedListConstructor [
FunctionCall test.int8@1[
LiteralExpr [STRING] [1]
@@ -17,7 +17,7 @@
]
Let Variable [ Name=$i16 ]
:=
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
OrderedListConstructor [
FunctionCall test.int16@1[
LiteralExpr [STRING] [1]
@@ -32,7 +32,7 @@
]
Let Variable [ Name=$i32 ]
:=
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
OrderedListConstructor [
FunctionCall test.int32@1[
LiteralExpr [STRING] [1]
@@ -47,7 +47,7 @@
]
Let Variable [ Name=$i64 ]
:=
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
OrderedListConstructor [
FunctionCall test.int64@1[
LiteralExpr [STRING] [1]
@@ -62,7 +62,7 @@
]
Let Variable [ Name=$f ]
:=
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
OrderedListConstructor [
FunctionCall test.float@1[
LiteralExpr [STRING] [1]
@@ -77,7 +77,7 @@
]
Let Variable [ Name=$d ]
:=
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
OrderedListConstructor [
FunctionCall test.double@1[
LiteralExpr [STRING] [1]
@@ -92,7 +92,7 @@
]
Let Variable [ Name=$s ]
:=
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
OrderedListConstructor [
LiteralExpr [STRING] [a]
LiteralExpr [STRING] [b]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_count_empty/scalar_count_empty.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_count_empty/scalar_count_empty.3.ast
index 863c3a2..efbbc0d 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_count_empty/scalar_count_empty.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_count_empty/scalar_count_empty.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-count@1[
+FunctionCall asterix.sql-count@1[
OrderedListConstructor [
]
]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_count_null/scalar_count_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_count_null/scalar_count_null.3.ast
index 3e49edf..12d3e6f 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_count_null/scalar_count_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_count_null/scalar_count_null.3.ast
@@ -2,7 +2,7 @@
Query:
Let Variable [ Name=$i8 ]
:=
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
OrderedListConstructor [
FunctionCall test.int8@1[
LiteralExpr [STRING] [1]
@@ -18,7 +18,7 @@
]
Let Variable [ Name=$i16 ]
:=
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
OrderedListConstructor [
FunctionCall test.int16@1[
LiteralExpr [STRING] [1]
@@ -34,7 +34,7 @@
]
Let Variable [ Name=$i32 ]
:=
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
OrderedListConstructor [
FunctionCall test.int32@1[
LiteralExpr [STRING] [1]
@@ -50,7 +50,7 @@
]
Let Variable [ Name=$i64 ]
:=
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
OrderedListConstructor [
FunctionCall test.int64@1[
LiteralExpr [STRING] [1]
@@ -66,7 +66,7 @@
]
Let Variable [ Name=$f ]
:=
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
OrderedListConstructor [
FunctionCall test.float@1[
LiteralExpr [STRING] [1]
@@ -82,7 +82,7 @@
]
Let Variable [ Name=$d ]
:=
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
OrderedListConstructor [
FunctionCall test.double@1[
LiteralExpr [STRING] [1]
@@ -98,7 +98,7 @@
]
Let Variable [ Name=$s ]
:=
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
OrderedListConstructor [
LiteralExpr [STRING] [a]
LiteralExpr [STRING] [b]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_max/scalar_max.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_max/scalar_max.3.ast
index 8e4e110..c75afa6 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_max/scalar_max.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_max/scalar_max.3.ast
@@ -2,7 +2,7 @@
Query:
Let Variable [ Name=$i8 ]
:=
- FunctionCall test.sql-max@1[
+ FunctionCall asterix.sql-max@1[
OrderedListConstructor [
FunctionCall test.int8@1[
LiteralExpr [STRING] [1]
@@ -17,7 +17,7 @@
]
Let Variable [ Name=$i16 ]
:=
- FunctionCall test.sql-max@1[
+ FunctionCall asterix.sql-max@1[
OrderedListConstructor [
FunctionCall test.int16@1[
LiteralExpr [STRING] [1]
@@ -32,7 +32,7 @@
]
Let Variable [ Name=$i32 ]
:=
- FunctionCall test.sql-max@1[
+ FunctionCall asterix.sql-max@1[
OrderedListConstructor [
FunctionCall test.int32@1[
LiteralExpr [STRING] [1]
@@ -47,7 +47,7 @@
]
Let Variable [ Name=$i64 ]
:=
- FunctionCall test.sql-max@1[
+ FunctionCall asterix.sql-max@1[
OrderedListConstructor [
FunctionCall test.int64@1[
LiteralExpr [STRING] [1]
@@ -62,7 +62,7 @@
]
Let Variable [ Name=$f ]
:=
- FunctionCall test.sql-max@1[
+ FunctionCall asterix.sql-max@1[
OrderedListConstructor [
FunctionCall test.float@1[
LiteralExpr [STRING] [1]
@@ -77,7 +77,7 @@
]
Let Variable [ Name=$d ]
:=
- FunctionCall test.sql-max@1[
+ FunctionCall asterix.sql-max@1[
OrderedListConstructor [
FunctionCall test.double@1[
LiteralExpr [STRING] [1]
@@ -92,7 +92,7 @@
]
Let Variable [ Name=$s ]
:=
- FunctionCall test.sql-max@1[
+ FunctionCall asterix.sql-max@1[
OrderedListConstructor [
LiteralExpr [STRING] [foo]
LiteralExpr [STRING] [bar]
@@ -101,7 +101,7 @@
]
Let Variable [ Name=$dt ]
:=
- FunctionCall test.sql-max@1[
+ FunctionCall asterix.sql-max@1[
OrderedListConstructor [
FunctionCall test.datetime@1[
LiteralExpr [STRING] [2012-03-01T00:00:00Z]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_max_empty/scalar_max_empty.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_max_empty/scalar_max_empty.3.ast
index 549ce92..e5ce701 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_max_empty/scalar_max_empty.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_max_empty/scalar_max_empty.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-max@1[
+FunctionCall asterix.sql-max@1[
OrderedListConstructor [
]
]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_max_null/scalar_max_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_max_null/scalar_max_null.3.ast
index 2b025b8..eb42b80 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_max_null/scalar_max_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_max_null/scalar_max_null.3.ast
@@ -2,7 +2,7 @@
Query:
Let Variable [ Name=$i8 ]
:=
- FunctionCall test.sql-max@1[
+ FunctionCall asterix.sql-max@1[
OrderedListConstructor [
FunctionCall test.int8@1[
LiteralExpr [STRING] [1]
@@ -18,7 +18,7 @@
]
Let Variable [ Name=$i16 ]
:=
- FunctionCall test.sql-max@1[
+ FunctionCall asterix.sql-max@1[
OrderedListConstructor [
FunctionCall test.int16@1[
LiteralExpr [STRING] [1]
@@ -34,7 +34,7 @@
]
Let Variable [ Name=$i32 ]
:=
- FunctionCall test.sql-max@1[
+ FunctionCall asterix.sql-max@1[
OrderedListConstructor [
FunctionCall test.int32@1[
LiteralExpr [STRING] [1]
@@ -50,7 +50,7 @@
]
Let Variable [ Name=$i64 ]
:=
- FunctionCall test.sql-max@1[
+ FunctionCall asterix.sql-max@1[
OrderedListConstructor [
FunctionCall test.int64@1[
LiteralExpr [STRING] [1]
@@ -66,7 +66,7 @@
]
Let Variable [ Name=$f ]
:=
- FunctionCall test.sql-max@1[
+ FunctionCall asterix.sql-max@1[
OrderedListConstructor [
FunctionCall test.float@1[
LiteralExpr [STRING] [1]
@@ -82,7 +82,7 @@
]
Let Variable [ Name=$d ]
:=
- FunctionCall test.sql-max@1[
+ FunctionCall asterix.sql-max@1[
OrderedListConstructor [
FunctionCall test.double@1[
LiteralExpr [STRING] [1]
@@ -98,7 +98,7 @@
]
Let Variable [ Name=$s ]
:=
- FunctionCall test.sql-max@1[
+ FunctionCall asterix.sql-max@1[
OrderedListConstructor [
LiteralExpr [STRING] [foo]
LiteralExpr [STRING] [bar]
@@ -108,7 +108,7 @@
]
Let Variable [ Name=$dt ]
:=
- FunctionCall test.sql-max@1[
+ FunctionCall asterix.sql-max@1[
OrderedListConstructor [
FunctionCall test.datetime@1[
LiteralExpr [STRING] [2012-03-01T00:00:00Z]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_min/scalar_min.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_min/scalar_min.3.ast
index 51aba85..2827888 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_min/scalar_min.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_min/scalar_min.3.ast
@@ -2,7 +2,7 @@
Query:
Let Variable [ Name=$i8 ]
:=
- FunctionCall test.sql-min@1[
+ FunctionCall asterix.sql-min@1[
OrderedListConstructor [
FunctionCall test.int8@1[
LiteralExpr [STRING] [1]
@@ -17,7 +17,7 @@
]
Let Variable [ Name=$i16 ]
:=
- FunctionCall test.sql-min@1[
+ FunctionCall asterix.sql-min@1[
OrderedListConstructor [
FunctionCall test.int16@1[
LiteralExpr [STRING] [1]
@@ -32,7 +32,7 @@
]
Let Variable [ Name=$i32 ]
:=
- FunctionCall test.sql-min@1[
+ FunctionCall asterix.sql-min@1[
OrderedListConstructor [
FunctionCall test.int32@1[
LiteralExpr [STRING] [1]
@@ -47,7 +47,7 @@
]
Let Variable [ Name=$i64 ]
:=
- FunctionCall test.sql-min@1[
+ FunctionCall asterix.sql-min@1[
OrderedListConstructor [
FunctionCall test.int64@1[
LiteralExpr [STRING] [1]
@@ -62,7 +62,7 @@
]
Let Variable [ Name=$f ]
:=
- FunctionCall test.sql-min@1[
+ FunctionCall asterix.sql-min@1[
OrderedListConstructor [
FunctionCall test.float@1[
LiteralExpr [STRING] [1]
@@ -77,7 +77,7 @@
]
Let Variable [ Name=$d ]
:=
- FunctionCall test.sql-min@1[
+ FunctionCall asterix.sql-min@1[
OrderedListConstructor [
FunctionCall test.double@1[
LiteralExpr [STRING] [1]
@@ -92,7 +92,7 @@
]
Let Variable [ Name=$s ]
:=
- FunctionCall test.sql-min@1[
+ FunctionCall asterix.sql-min@1[
OrderedListConstructor [
LiteralExpr [STRING] [foo]
LiteralExpr [STRING] [bar]
@@ -101,7 +101,7 @@
]
Let Variable [ Name=$dt ]
:=
- FunctionCall test.sql-min@1[
+ FunctionCall asterix.sql-min@1[
OrderedListConstructor [
FunctionCall test.datetime@1[
LiteralExpr [STRING] [2012-03-01T00:00:00Z]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_min_empty/scalar_min_empty.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_min_empty/scalar_min_empty.3.ast
index 541c673..22048df 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_min_empty/scalar_min_empty.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_min_empty/scalar_min_empty.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-min@1[
+FunctionCall asterix.sql-min@1[
OrderedListConstructor [
]
]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_min_null/scalar_min_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_min_null/scalar_min_null.3.ast
index add7c0f..6237a07 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_min_null/scalar_min_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_min_null/scalar_min_null.3.ast
@@ -2,7 +2,7 @@
Query:
Let Variable [ Name=$i8 ]
:=
- FunctionCall test.sql-min@1[
+ FunctionCall asterix.sql-min@1[
OrderedListConstructor [
FunctionCall test.int8@1[
LiteralExpr [STRING] [1]
@@ -18,7 +18,7 @@
]
Let Variable [ Name=$i16 ]
:=
- FunctionCall test.sql-min@1[
+ FunctionCall asterix.sql-min@1[
OrderedListConstructor [
FunctionCall test.int16@1[
LiteralExpr [STRING] [1]
@@ -34,7 +34,7 @@
]
Let Variable [ Name=$i32 ]
:=
- FunctionCall test.sql-min@1[
+ FunctionCall asterix.sql-min@1[
OrderedListConstructor [
FunctionCall test.int32@1[
LiteralExpr [STRING] [1]
@@ -50,7 +50,7 @@
]
Let Variable [ Name=$i64 ]
:=
- FunctionCall test.sql-min@1[
+ FunctionCall asterix.sql-min@1[
OrderedListConstructor [
FunctionCall test.int64@1[
LiteralExpr [STRING] [1]
@@ -66,7 +66,7 @@
]
Let Variable [ Name=$f ]
:=
- FunctionCall test.sql-min@1[
+ FunctionCall asterix.sql-min@1[
OrderedListConstructor [
FunctionCall test.float@1[
LiteralExpr [STRING] [1]
@@ -82,7 +82,7 @@
]
Let Variable [ Name=$d ]
:=
- FunctionCall test.sql-min@1[
+ FunctionCall asterix.sql-min@1[
OrderedListConstructor [
FunctionCall test.double@1[
LiteralExpr [STRING] [1]
@@ -98,7 +98,7 @@
]
Let Variable [ Name=$s ]
:=
- FunctionCall test.sql-min@1[
+ FunctionCall asterix.sql-min@1[
OrderedListConstructor [
LiteralExpr [STRING] [foo]
LiteralExpr [STRING] [bar]
@@ -108,7 +108,7 @@
]
Let Variable [ Name=$dt ]
:=
- FunctionCall test.sql-min@1[
+ FunctionCall asterix.sql-min@1[
OrderedListConstructor [
FunctionCall test.datetime@1[
LiteralExpr [STRING] [2012-03-01T00:00:00Z]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_sum/scalar_sum.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_sum/scalar_sum.3.ast
index 94e3c4d..812e172 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_sum/scalar_sum.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_sum/scalar_sum.3.ast
@@ -2,7 +2,7 @@
Query:
Let Variable [ Name=$i8 ]
:=
- FunctionCall test.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
OrderedListConstructor [
FunctionCall test.int8@1[
LiteralExpr [STRING] [1]
@@ -17,7 +17,7 @@
]
Let Variable [ Name=$i16 ]
:=
- FunctionCall test.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
OrderedListConstructor [
FunctionCall test.int16@1[
LiteralExpr [STRING] [1]
@@ -32,7 +32,7 @@
]
Let Variable [ Name=$i32 ]
:=
- FunctionCall test.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
OrderedListConstructor [
FunctionCall test.int32@1[
LiteralExpr [STRING] [1]
@@ -47,7 +47,7 @@
]
Let Variable [ Name=$i64 ]
:=
- FunctionCall test.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
OrderedListConstructor [
FunctionCall test.int64@1[
LiteralExpr [STRING] [1]
@@ -62,7 +62,7 @@
]
Let Variable [ Name=$f ]
:=
- FunctionCall test.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
OrderedListConstructor [
FunctionCall test.float@1[
LiteralExpr [STRING] [1]
@@ -77,7 +77,7 @@
]
Let Variable [ Name=$d ]
:=
- FunctionCall test.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
OrderedListConstructor [
FunctionCall test.double@1[
LiteralExpr [STRING] [1]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_sum_empty/scalar_sum_empty.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_sum_empty/scalar_sum_empty.3.ast
index 36b9790..397cd71 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_sum_empty/scalar_sum_empty.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_sum_empty/scalar_sum_empty.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
OrderedListConstructor [
]
]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_sum_null/scalar_sum_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_sum_null/scalar_sum_null.3.ast
index 969685f..94722a4 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_sum_null/scalar_sum_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/scalar_sum_null/scalar_sum_null.3.ast
@@ -2,7 +2,7 @@
Query:
Let Variable [ Name=$i8 ]
:=
- FunctionCall test.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
OrderedListConstructor [
FunctionCall test.int8@1[
LiteralExpr [STRING] [1]
@@ -18,7 +18,7 @@
]
Let Variable [ Name=$i16 ]
:=
- FunctionCall test.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
OrderedListConstructor [
FunctionCall test.int16@1[
LiteralExpr [STRING] [1]
@@ -34,7 +34,7 @@
]
Let Variable [ Name=$i32 ]
:=
- FunctionCall test.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
OrderedListConstructor [
FunctionCall test.int32@1[
LiteralExpr [STRING] [1]
@@ -50,7 +50,7 @@
]
Let Variable [ Name=$i64 ]
:=
- FunctionCall test.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
OrderedListConstructor [
FunctionCall test.int64@1[
LiteralExpr [STRING] [1]
@@ -66,7 +66,7 @@
]
Let Variable [ Name=$f ]
:=
- FunctionCall test.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
OrderedListConstructor [
FunctionCall test.float@1[
LiteralExpr [STRING] [1]
@@ -82,7 +82,7 @@
]
Let Variable [ Name=$d ]
:=
- FunctionCall test.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
OrderedListConstructor [
FunctionCall test.double@1[
LiteralExpr [STRING] [1]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_double/sum_double.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_double/sum_double.3.ast
index c0731ec..7591a62 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_double/sum_double.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_double/sum_double.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_double_null/sum_double_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_double_null/sum_double_null.3.ast
index 0cb3ae4..f5e525e 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_double_null/sum_double_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_double_null/sum_double_null.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_empty_01/sum_empty_01.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_empty_01/sum_empty_01.3.ast
index ee24758..e5ea392 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_empty_01/sum_empty_01.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_empty_01/sum_empty_01.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_empty_02/sum_empty_02.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_empty_02/sum_empty_02.3.ast
index 72f2f5a..6371498 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_empty_02/sum_empty_02.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_empty_02/sum_empty_02.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_float/sum_float.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_float/sum_float.3.ast
index 6004dcc..c21fa1c 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_float/sum_float.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_float/sum_float.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_float_null/sum_float_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_float_null/sum_float_null.3.ast
index 1d5e7f4..62ea3b4 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_float_null/sum_float_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_float_null/sum_float_null.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int16/sum_int16.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int16/sum_int16.3.ast
index c499b25..62fc04f 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int16/sum_int16.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int16/sum_int16.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int16_null/sum_int16_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int16_null/sum_int16_null.3.ast
index 027fe91..4c7bf75 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int16_null/sum_int16_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int16_null/sum_int16_null.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int32/sum_int32.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int32/sum_int32.3.ast
index 828aa87..402f257 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int32/sum_int32.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int32/sum_int32.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int32_null/sum_int32_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int32_null/sum_int32_null.3.ast
index 338a7ff..b77dbf42 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int32_null/sum_int32_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int32_null/sum_int32_null.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int64/sum_int64.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int64/sum_int64.3.ast
index 4510cc7..1e4a755 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int64/sum_int64.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int64/sum_int64.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int64_null/sum_int64_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int64_null/sum_int64_null.3.ast
index c5036ae..4bbfacc 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int64_null/sum_int64_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int64_null/sum_int64_null.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int8/sum_int8.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int8/sum_int8.3.ast
index 8e99a7e..350605d 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int8/sum_int8.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int8/sum_int8.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int8_null/sum_int8_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int8_null/sum_int8_null.3.ast
index 121675e..77c987d 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int8_null/sum_int8_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_int8_null/sum_int8_null.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_mixed/sum_mixed.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_mixed/sum_mixed.3.ast
index 73ed370..eb44b3a 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_mixed/sum_mixed.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_mixed/sum_mixed.3.ast
@@ -1,6 +1,6 @@
Query:
SELECT ELEMENT [
-FunctionCall null.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_null-with-pred/sum_null-with-pred.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_null-with-pred/sum_null-with-pred.3.ast
index 44972f8..f185de3 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_null-with-pred/sum_null-with-pred.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_null-with-pred/sum_null-with-pred.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_numeric_null/sum_numeric_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_numeric_null/sum_numeric_null.3.ast
index c3fe254..3c424ab 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_numeric_null/sum_numeric_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate-sql/sum_numeric_null/sum_numeric_null.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/agg_null/agg_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/agg_null/agg_null.3.ast
index bae05c7..d5ab72c 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/agg_null/agg_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/agg_null/agg_null.3.ast
@@ -3,7 +3,7 @@
(
LiteralExpr [STRING] [count1]
:
- FunctionCall null.count@1[
+ FunctionCall asterix.count@1[
OrderedListConstructor [
LiteralExpr [NULL]
]
@@ -12,7 +12,7 @@
(
LiteralExpr [STRING] [average1]
:
- FunctionCall null.avg@1[
+ FunctionCall asterix.avg@1[
OrderedListConstructor [
LiteralExpr [NULL]
]
@@ -21,7 +21,7 @@
(
LiteralExpr [STRING] [sum1]
:
- FunctionCall null.sum@1[
+ FunctionCall asterix.sum@1[
OrderedListConstructor [
LiteralExpr [NULL]
]
@@ -30,7 +30,7 @@
(
LiteralExpr [STRING] [min1]
:
- FunctionCall null.min@1[
+ FunctionCall asterix.min@1[
OrderedListConstructor [
LiteralExpr [NULL]
]
@@ -39,7 +39,7 @@
(
LiteralExpr [STRING] [max1]
:
- FunctionCall null.max@1[
+ FunctionCall asterix.max@1[
OrderedListConstructor [
LiteralExpr [NULL]
]
@@ -48,7 +48,7 @@
(
LiteralExpr [STRING] [count2]
:
- FunctionCall null.count@1[
+ FunctionCall asterix.count@1[
UnorderedListConstructor [
LiteralExpr [NULL]
LiteralExpr [NULL]
@@ -58,7 +58,7 @@
(
LiteralExpr [STRING] [average2]
:
- FunctionCall null.avg@1[
+ FunctionCall asterix.avg@1[
UnorderedListConstructor [
LiteralExpr [NULL]
LiteralExpr [NULL]
@@ -68,7 +68,7 @@
(
LiteralExpr [STRING] [sum2]
:
- FunctionCall null.sum@1[
+ FunctionCall asterix.sum@1[
UnorderedListConstructor [
LiteralExpr [NULL]
LiteralExpr [NULL]
@@ -78,7 +78,7 @@
(
LiteralExpr [STRING] [min2]
:
- FunctionCall null.min@1[
+ FunctionCall asterix.min@1[
UnorderedListConstructor [
LiteralExpr [NULL]
LiteralExpr [NULL]
@@ -88,7 +88,7 @@
(
LiteralExpr [STRING] [max2]
:
- FunctionCall null.max@1[
+ FunctionCall asterix.max@1[
UnorderedListConstructor [
LiteralExpr [NULL]
LiteralExpr [NULL]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/agg_null_rec/agg_null_rec.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/agg_null_rec/agg_null_rec.3.ast
index 035396d..77482fa 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/agg_null_rec/agg_null_rec.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/agg_null_rec/agg_null_rec.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -23,7 +23,7 @@
(
LiteralExpr [STRING] [average]
:
- FunctionCall test.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -42,7 +42,7 @@
(
LiteralExpr [STRING] [sum]
:
- FunctionCall test.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -61,7 +61,7 @@
(
LiteralExpr [STRING] [min]
:
- FunctionCall test.min@1[
+ FunctionCall asterix.min@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -80,7 +80,7 @@
(
LiteralExpr [STRING] [max]
:
- FunctionCall test.max@1[
+ FunctionCall asterix.max@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/agg_null_rec_1/agg_null_rec_1.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/agg_null_rec_1/agg_null_rec_1.3.ast
index 426089f..efbacd2 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/agg_null_rec_1/agg_null_rec_1.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/agg_null_rec_1/agg_null_rec_1.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
Variable [ Name=$t ]
@@ -20,7 +20,7 @@
(
LiteralExpr [STRING] [average]
:
- FunctionCall test.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -46,7 +46,7 @@
(
LiteralExpr [STRING] [sum]
:
- FunctionCall test.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -72,7 +72,7 @@
(
LiteralExpr [STRING] [min]
:
- FunctionCall test.min@1[
+ FunctionCall asterix.min@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -98,7 +98,7 @@
(
LiteralExpr [STRING] [max]
:
- FunctionCall test.max@1[
+ FunctionCall asterix.max@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/agg_number/agg_number.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/agg_number/agg_number.3.ast
index 9400e91..7a0b73c 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/agg_number/agg_number.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/agg_number/agg_number.3.ast
@@ -3,7 +3,7 @@
(
LiteralExpr [STRING] [count1]
:
- FunctionCall null.count@1[
+ FunctionCall asterix.count@1[
OrderedListConstructor [
FunctionCall null.float@1[
LiteralExpr [STRING] [2.0]
@@ -19,7 +19,7 @@
(
LiteralExpr [STRING] [average1]
:
- FunctionCall null.avg@1[
+ FunctionCall asterix.avg@1[
OrderedListConstructor [
FunctionCall null.float@1[
LiteralExpr [STRING] [2.0]
@@ -35,7 +35,7 @@
(
LiteralExpr [STRING] [sum1]
:
- FunctionCall null.sum@1[
+ FunctionCall asterix.sum@1[
OrderedListConstructor [
FunctionCall null.float@1[
LiteralExpr [STRING] [2.0]
@@ -51,7 +51,7 @@
(
LiteralExpr [STRING] [min1]
:
- FunctionCall null.min@1[
+ FunctionCall asterix.min@1[
OrderedListConstructor [
FunctionCall null.float@1[
LiteralExpr [STRING] [2.0]
@@ -67,7 +67,7 @@
(
LiteralExpr [STRING] [max1]
:
- FunctionCall null.max@1[
+ FunctionCall asterix.max@1[
OrderedListConstructor [
FunctionCall null.float@1[
LiteralExpr [STRING] [2.0]
@@ -83,7 +83,7 @@
(
LiteralExpr [STRING] [count2]
:
- FunctionCall null.count@1[
+ FunctionCall asterix.count@1[
UnorderedListConstructor [
FunctionCall null.float@1[
LiteralExpr [STRING] [2.0]
@@ -99,7 +99,7 @@
(
LiteralExpr [STRING] [average2]
:
- FunctionCall null.avg@1[
+ FunctionCall asterix.avg@1[
UnorderedListConstructor [
FunctionCall null.float@1[
LiteralExpr [STRING] [2.0]
@@ -115,7 +115,7 @@
(
LiteralExpr [STRING] [sum2]
:
- FunctionCall null.sum@1[
+ FunctionCall asterix.sum@1[
UnorderedListConstructor [
FunctionCall null.float@1[
LiteralExpr [STRING] [2.0]
@@ -131,7 +131,7 @@
(
LiteralExpr [STRING] [min2]
:
- FunctionCall null.min@1[
+ FunctionCall asterix.min@1[
UnorderedListConstructor [
FunctionCall null.float@1[
LiteralExpr [STRING] [2.0]
@@ -147,7 +147,7 @@
(
LiteralExpr [STRING] [max2]
:
- FunctionCall null.max@1[
+ FunctionCall asterix.max@1[
UnorderedListConstructor [
FunctionCall null.float@1[
LiteralExpr [STRING] [2.0]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/agg_number_rec/agg_number_rec.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/agg_number_rec/agg_number_rec.3.ast
index 035396d..77482fa 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/agg_number_rec/agg_number_rec.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/agg_number_rec/agg_number_rec.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -23,7 +23,7 @@
(
LiteralExpr [STRING] [average]
:
- FunctionCall test.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -42,7 +42,7 @@
(
LiteralExpr [STRING] [sum]
:
- FunctionCall test.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -61,7 +61,7 @@
(
LiteralExpr [STRING] [min]
:
- FunctionCall test.min@1[
+ FunctionCall asterix.min@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -80,7 +80,7 @@
(
LiteralExpr [STRING] [max]
:
- FunctionCall test.max@1[
+ FunctionCall asterix.max@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_double/avg_double.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_double/avg_double.3.ast
index 240b5a0..028db6b 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_double/avg_double.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_double/avg_double.3.ast
@@ -1,6 +1,6 @@
Query:
SELECT ELEMENT [
-FunctionCall null.avg@1[
+FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_double_null/avg_double_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_double_null/avg_double_null.3.ast
index 4d4bbbf..9efb867 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_double_null/avg_double_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_double_null/avg_double_null.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [average]
:
- FunctionCall test.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_empty_01/avg_empty_01.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_empty_01/avg_empty_01.3.ast
index ec85e19..4355ee7 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_empty_01/avg_empty_01.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_empty_01/avg_empty_01.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.avg@1[
+FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_empty_02/avg_empty_02.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_empty_02/avg_empty_02.3.ast
index a8ce8c9..6940efa 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_empty_02/avg_empty_02.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_empty_02/avg_empty_02.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.avg@1[
+FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_float/avg_float.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_float/avg_float.3.ast
index 7bcc0b5..3d12de5 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_float/avg_float.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_float/avg_float.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.avg@1[
+FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_float_null/avg_float_nu.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_float_null/avg_float_nu.3.ast
index 0f382fe..6654f36 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_float_null/avg_float_nu.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_float_null/avg_float_nu.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [average]
:
- FunctionCall test.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int16/avg_int16.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int16/avg_int16.3.ast
index 6019b99..7854b3c1 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int16/avg_int16.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int16/avg_int16.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.avg@1[
+FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int16_null/avg_int16_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int16_null/avg_int16_null.3.ast
index 7f2fbc7..3852800 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int16_null/avg_int16_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int16_null/avg_int16_null.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [average]
:
- FunctionCall test.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int32/avg_int32.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int32/avg_int32.3.ast
index ae9ef12..4ad8587 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int32/avg_int32.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int32/avg_int32.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.avg@1[
+FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int32_null/avg_int32_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int32_null/avg_int32_null.3.ast
index 7a0525b..35574bd 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int32_null/avg_int32_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int32_null/avg_int32_null.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [average]
:
- FunctionCall test.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int64/avg_int64.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int64/avg_int64.3.ast
index b8b6535..f47c1ad 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int64/avg_int64.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int64/avg_int64.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.avg@1[
+FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int64_null/avg_int64_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int64_null/avg_int64_null.3.ast
index 265a61f..5e11c78 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int64_null/avg_int64_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int64_null/avg_int64_null.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [average]
:
- FunctionCall test.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int8/avg_int8.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int8/avg_int8.3.ast
index 664587d..71e2d1d 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int8/avg_int8.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int8/avg_int8.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.avg@1[
+FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int8_null/avg_int8_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int8_null/avg_int8_null.3.ast
index 1f3e356..dc177ee 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int8_null/avg_int8_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_int8_null/avg_int8_null.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [average]
:
- FunctionCall test.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_mixed/avg_mixed.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_mixed/avg_mixed.3.ast
index 89bf677..750ac9b 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_mixed/avg_mixed.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/avg_mixed/avg_mixed.3.ast
@@ -1,6 +1,6 @@
Query:
SELECT ELEMENT [
-FunctionCall null.avg@1[
+FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/count_01/count_01.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/count_01/count_01.3.ast
index 4a6fa5f..036d289 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/count_01/count_01.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/count_01/count_01.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.count@1[
+FunctionCall asterix.count@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/count_empty_01/count_empty_01.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/count_empty_01/count_empty_01.3.ast
index 5912641..99a5c90 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/count_empty_01/count_empty_01.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/count_empty_01/count_empty_01.3.ast
@@ -1,6 +1,6 @@
Query:
SELECT ELEMENT [
-FunctionCall null.count@1[
+FunctionCall asterix.count@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/count_empty_02/count_empty_02.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/count_empty_02/count_empty_02.3.ast
index fca2bf6..ccf8f0d 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/count_empty_02/count_empty_02.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/count_empty_02/count_empty_02.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.count@1[
+FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/count_null/count_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/count_null/count_null.3.ast
index d86a192..93a2b72 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/count_null/count_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/count_null/count_null.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue395/issue395.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue395/issue395.3.ast
index 4d200e4..98a5343 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue395/issue395.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue395/issue395.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.count@1[
+FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue412_0/issue412_0.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue412_0/issue412_0.3.ast
index ade42d1..aa0edf7 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue412_0/issue412_0.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue412_0/issue412_0.3.ast
@@ -1,5 +1,5 @@
Query:
-FunctionCall null.count@1[
+FunctionCall asterix.count@1[
OrderedListConstructor [
LiteralExpr [STRING] [ASTERIX]
LiteralExpr [STRING] [Hyracks]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue412_1/issue412_1.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue412_1/issue412_1.3.ast
index e89f061..d345896 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue412_1/issue412_1.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue412_1/issue412_1.3.ast
@@ -3,7 +3,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall null.count@1[
+ FunctionCall asterix.count@1[
OrderedListConstructor [
LiteralExpr [LONG] [1]
LiteralExpr [LONG] [60]
@@ -14,7 +14,7 @@
(
LiteralExpr [STRING] [average]
:
- FunctionCall null.avg@1[
+ FunctionCall asterix.avg@1[
OrderedListConstructor [
LiteralExpr [LONG] [1]
LiteralExpr [LONG] [60]
@@ -25,7 +25,7 @@
(
LiteralExpr [STRING] [sum]
:
- FunctionCall null.sum@1[
+ FunctionCall asterix.sum@1[
OrderedListConstructor [
LiteralExpr [LONG] [1]
LiteralExpr [LONG] [60]
@@ -36,7 +36,7 @@
(
LiteralExpr [STRING] [min]
:
- FunctionCall null.min@1[
+ FunctionCall asterix.min@1[
OrderedListConstructor [
LiteralExpr [LONG] [1]
LiteralExpr [LONG] [60]
@@ -47,7 +47,7 @@
(
LiteralExpr [STRING] [max]
:
- FunctionCall null.max@1[
+ FunctionCall asterix.max@1[
OrderedListConstructor [
LiteralExpr [LONG] [1]
LiteralExpr [LONG] [60]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue425_min_hetero_list/issue425_min_hetero_list.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue425_min_hetero_list/issue425_min_hetero_list.3.ast
index f3c68f1..69ddc7a 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue425_min_hetero_list/issue425_min_hetero_list.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue425_min_hetero_list/issue425_min_hetero_list.3.ast
@@ -1,5 +1,5 @@
Query:
-FunctionCall null.min@1[
+FunctionCall asterix.min@1[
OrderedListConstructor [
LiteralExpr [LONG] [23]
LiteralExpr [LONG] [748374857483]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue425_min_hetero_list_1/issue425_min_hetero_list_1.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue425_min_hetero_list_1/issue425_min_hetero_list_1.3.ast
index 247d659..210dff8 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue425_min_hetero_list_1/issue425_min_hetero_list_1.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue425_min_hetero_list_1/issue425_min_hetero_list_1.3.ast
@@ -1,5 +1,5 @@
Query:
-FunctionCall null.min@1[
+FunctionCall asterix.min@1[
OrderedListConstructor [
LiteralExpr [LONG] [748374857483]
LiteralExpr [LONG] [23]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue425_sum_hetero_list/issue425_sum_hetero_list.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue425_sum_hetero_list/issue425_sum_hetero_list.3.ast
index 187b626..847bca4 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue425_sum_hetero_list/issue425_sum_hetero_list.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue425_sum_hetero_list/issue425_sum_hetero_list.3.ast
@@ -1,5 +1,5 @@
Query:
-FunctionCall null.sum@1[
+FunctionCall asterix.sum@1[
OrderedListConstructor [
LiteralExpr [LONG] [23]
LiteralExpr [LONG] [748374857483]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue425_sum_hetero_list_1/issue425_sum_hetero_list_1.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue425_sum_hetero_list_1/issue425_sum_hetero_list_1.3.ast
index 95a4b40..172e730 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue425_sum_hetero_list_1/issue425_sum_hetero_list_1.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue425_sum_hetero_list_1/issue425_sum_hetero_list_1.3.ast
@@ -1,5 +1,5 @@
Query:
-FunctionCall null.sum@1[
+FunctionCall asterix.sum@1[
OrderedListConstructor [
LiteralExpr [LONG] [748374857483]
LiteralExpr [LONG] [23]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue531_string_min_max/issue531_string_min_max.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue531_string_min_max/issue531_string_min_max.3.ast
index f45eb74..39e4ae9 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue531_string_min_max/issue531_string_min_max.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/issue531_string_min_max/issue531_string_min_max.3.ast
@@ -5,7 +5,7 @@
(
LiteralExpr [STRING] [min]
:
- FunctionCall test.min@1[
+ FunctionCall asterix.min@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -24,7 +24,7 @@
(
LiteralExpr [STRING] [max]
:
- FunctionCall test.max@1[
+ FunctionCall asterix.max@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/max_empty_01/max_empty_01.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/max_empty_01/max_empty_01.3.ast
index 75f0c4f..5787511 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/max_empty_01/max_empty_01.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/max_empty_01/max_empty_01.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.max@1[
+FunctionCall asterix.max@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/max_empty_02/max_empty_02.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/max_empty_02/max_empty_02.3.ast
index 08d23dd..7a363e7 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/max_empty_02/max_empty_02.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/max_empty_02/max_empty_02.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.max@1[
+FunctionCall asterix.max@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/min_empty_01/min_empty_01.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/min_empty_01/min_empty_01.3.ast
index e5ad077..9313377 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/min_empty_01/min_empty_01.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/min_empty_01/min_empty_01.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.min@1[
+FunctionCall asterix.min@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/min_empty_02/min_empty_02.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/min_empty_02/min_empty_02.3.ast
index d799d4c..472d7f6 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/min_empty_02/min_empty_02.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/min_empty_02/min_empty_02.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.min@1[
+FunctionCall asterix.min@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/min_mixed/min_mixed.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/min_mixed/min_mixed.3.ast
index eecf3eb..802040d 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/min_mixed/min_mixed.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/min_mixed/min_mixed.3.ast
@@ -1,6 +1,6 @@
Query:
SELECT ELEMENT [
-FunctionCall null.min@1[
+FunctionCall asterix.min@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/query-issue400/query-issue400.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/query-issue400/query-issue400.3.ast
index 2f3778c..2220ed2 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/query-issue400/query-issue400.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/query-issue400/query-issue400.3.ast
@@ -1,5 +1,5 @@
Query:
-FunctionCall null.count@1[
+FunctionCall asterix.count@1[
(
SELECT ELEMENT [
Variable [ Name=$i ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_avg/scalar_avg.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_avg/scalar_avg.3.ast
index 701fe21..1049f33 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_avg/scalar_avg.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_avg/scalar_avg.3.ast
@@ -2,7 +2,7 @@
Query:
Let Variable [ Name=$i8 ]
:=
- FunctionCall test.avg@1[
+ FunctionCall asterix.avg@1[
OrderedListConstructor [
FunctionCall test.int8@1[
LiteralExpr [STRING] [1]
@@ -17,7 +17,7 @@
]
Let Variable [ Name=$i16 ]
:=
- FunctionCall test.avg@1[
+ FunctionCall asterix.avg@1[
OrderedListConstructor [
FunctionCall test.int16@1[
LiteralExpr [STRING] [1]
@@ -32,7 +32,7 @@
]
Let Variable [ Name=$i32 ]
:=
- FunctionCall test.avg@1[
+ FunctionCall asterix.avg@1[
OrderedListConstructor [
FunctionCall test.int32@1[
LiteralExpr [STRING] [1]
@@ -47,7 +47,7 @@
]
Let Variable [ Name=$i64 ]
:=
- FunctionCall test.avg@1[
+ FunctionCall asterix.avg@1[
OrderedListConstructor [
FunctionCall test.int64@1[
LiteralExpr [STRING] [1]
@@ -62,7 +62,7 @@
]
Let Variable [ Name=$f ]
:=
- FunctionCall test.avg@1[
+ FunctionCall asterix.avg@1[
OrderedListConstructor [
FunctionCall test.float@1[
LiteralExpr [STRING] [1]
@@ -77,7 +77,7 @@
]
Let Variable [ Name=$d ]
:=
- FunctionCall test.avg@1[
+ FunctionCall asterix.avg@1[
OrderedListConstructor [
FunctionCall test.double@1[
LiteralExpr [STRING] [1]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_avg_empty/scalar_avg_empty.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_avg_empty/scalar_avg_empty.3.ast
index 19122cd..55b341c 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_avg_empty/scalar_avg_empty.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_avg_empty/scalar_avg_empty.3.ast
@@ -1,6 +1,6 @@
Query:
SELECT ELEMENT [
-FunctionCall null.avg@1[
+FunctionCall asterix.avg@1[
OrderedListConstructor [
]
]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_avg_null/scalar_avg_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_avg_null/scalar_avg_null.3.ast
index 3a0e4fb..7e062bb 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_avg_null/scalar_avg_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_avg_null/scalar_avg_null.3.ast
@@ -2,7 +2,7 @@
Query:
Let Variable [ Name=$i8 ]
:=
- FunctionCall test.avg@1[
+ FunctionCall asterix.avg@1[
OrderedListConstructor [
FunctionCall test.int8@1[
LiteralExpr [STRING] [1]
@@ -18,7 +18,7 @@
]
Let Variable [ Name=$i16 ]
:=
- FunctionCall test.avg@1[
+ FunctionCall asterix.avg@1[
OrderedListConstructor [
FunctionCall test.int16@1[
LiteralExpr [STRING] [1]
@@ -34,7 +34,7 @@
]
Let Variable [ Name=$i32 ]
:=
- FunctionCall test.avg@1[
+ FunctionCall asterix.avg@1[
OrderedListConstructor [
FunctionCall test.int32@1[
LiteralExpr [STRING] [1]
@@ -50,7 +50,7 @@
]
Let Variable [ Name=$i64 ]
:=
- FunctionCall test.avg@1[
+ FunctionCall asterix.avg@1[
OrderedListConstructor [
FunctionCall test.int64@1[
LiteralExpr [STRING] [1]
@@ -66,7 +66,7 @@
]
Let Variable [ Name=$f ]
:=
- FunctionCall test.avg@1[
+ FunctionCall asterix.avg@1[
OrderedListConstructor [
FunctionCall test.float@1[
LiteralExpr [STRING] [1]
@@ -82,7 +82,7 @@
]
Let Variable [ Name=$d ]
:=
- FunctionCall test.avg@1[
+ FunctionCall asterix.avg@1[
OrderedListConstructor [
FunctionCall test.double@1[
LiteralExpr [STRING] [1]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_count/scalar_count.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_count/scalar_count.3.ast
index 88efa93..bbd01a0 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_count/scalar_count.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_count/scalar_count.3.ast
@@ -2,7 +2,7 @@
Query:
Let Variable [ Name=$i8 ]
:=
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
OrderedListConstructor [
FunctionCall test.int8@1[
LiteralExpr [STRING] [1]
@@ -17,7 +17,7 @@
]
Let Variable [ Name=$i16 ]
:=
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
OrderedListConstructor [
FunctionCall test.int16@1[
LiteralExpr [STRING] [1]
@@ -32,7 +32,7 @@
]
Let Variable [ Name=$i32 ]
:=
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
OrderedListConstructor [
FunctionCall test.int32@1[
LiteralExpr [STRING] [1]
@@ -47,7 +47,7 @@
]
Let Variable [ Name=$i64 ]
:=
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
OrderedListConstructor [
FunctionCall test.int64@1[
LiteralExpr [STRING] [1]
@@ -62,7 +62,7 @@
]
Let Variable [ Name=$f ]
:=
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
OrderedListConstructor [
FunctionCall test.float@1[
LiteralExpr [STRING] [1]
@@ -77,7 +77,7 @@
]
Let Variable [ Name=$d ]
:=
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
OrderedListConstructor [
FunctionCall test.double@1[
LiteralExpr [STRING] [1]
@@ -92,7 +92,7 @@
]
Let Variable [ Name=$s ]
:=
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
OrderedListConstructor [
LiteralExpr [STRING] [a]
LiteralExpr [STRING] [b]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_count_empty/scalar_count_empty.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_count_empty/scalar_count_empty.3.ast
index b283e27..7406807 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_count_empty/scalar_count_empty.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_count_empty/scalar_count_empty.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.count@1[
+FunctionCall asterix.count@1[
OrderedListConstructor [
]
]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_count_null/scalar_count_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_count_null/scalar_count_null.3.ast
index 8f57e33..56e6061 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_count_null/scalar_count_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_count_null/scalar_count_null.3.ast
@@ -2,7 +2,7 @@
Query:
Let Variable [ Name=$i8 ]
:=
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
OrderedListConstructor [
FunctionCall test.int8@1[
LiteralExpr [STRING] [1]
@@ -18,7 +18,7 @@
]
Let Variable [ Name=$i16 ]
:=
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
OrderedListConstructor [
FunctionCall test.int16@1[
LiteralExpr [STRING] [1]
@@ -34,7 +34,7 @@
]
Let Variable [ Name=$i32 ]
:=
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
OrderedListConstructor [
FunctionCall test.int32@1[
LiteralExpr [STRING] [1]
@@ -50,7 +50,7 @@
]
Let Variable [ Name=$i64 ]
:=
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
OrderedListConstructor [
FunctionCall test.int64@1[
LiteralExpr [STRING] [1]
@@ -66,7 +66,7 @@
]
Let Variable [ Name=$f ]
:=
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
OrderedListConstructor [
FunctionCall test.float@1[
LiteralExpr [STRING] [1]
@@ -82,7 +82,7 @@
]
Let Variable [ Name=$d ]
:=
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
OrderedListConstructor [
FunctionCall test.double@1[
LiteralExpr [STRING] [1]
@@ -98,7 +98,7 @@
]
Let Variable [ Name=$s ]
:=
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
OrderedListConstructor [
LiteralExpr [STRING] [a]
LiteralExpr [STRING] [b]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_max/scalar_max.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_max/scalar_max.3.ast
index 2e71b2aa..ccc7579 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_max/scalar_max.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_max/scalar_max.3.ast
@@ -2,7 +2,7 @@
Query:
Let Variable [ Name=$i8 ]
:=
- FunctionCall test.max@1[
+ FunctionCall asterix.max@1[
OrderedListConstructor [
FunctionCall test.int8@1[
LiteralExpr [STRING] [1]
@@ -17,7 +17,7 @@
]
Let Variable [ Name=$i16 ]
:=
- FunctionCall test.max@1[
+ FunctionCall asterix.max@1[
OrderedListConstructor [
FunctionCall test.int16@1[
LiteralExpr [STRING] [1]
@@ -32,7 +32,7 @@
]
Let Variable [ Name=$i32 ]
:=
- FunctionCall test.max@1[
+ FunctionCall asterix.max@1[
OrderedListConstructor [
FunctionCall test.int32@1[
LiteralExpr [STRING] [1]
@@ -47,7 +47,7 @@
]
Let Variable [ Name=$i64 ]
:=
- FunctionCall test.max@1[
+ FunctionCall asterix.max@1[
OrderedListConstructor [
FunctionCall test.int64@1[
LiteralExpr [STRING] [1]
@@ -62,7 +62,7 @@
]
Let Variable [ Name=$f ]
:=
- FunctionCall test.max@1[
+ FunctionCall asterix.max@1[
OrderedListConstructor [
FunctionCall test.float@1[
LiteralExpr [STRING] [1]
@@ -77,7 +77,7 @@
]
Let Variable [ Name=$d ]
:=
- FunctionCall test.max@1[
+ FunctionCall asterix.max@1[
OrderedListConstructor [
FunctionCall test.double@1[
LiteralExpr [STRING] [1]
@@ -92,7 +92,7 @@
]
Let Variable [ Name=$s ]
:=
- FunctionCall test.max@1[
+ FunctionCall asterix.max@1[
OrderedListConstructor [
LiteralExpr [STRING] [foo]
LiteralExpr [STRING] [bar]
@@ -101,7 +101,7 @@
]
Let Variable [ Name=$dt ]
:=
- FunctionCall test.max@1[
+ FunctionCall asterix.max@1[
OrderedListConstructor [
FunctionCall test.datetime@1[
LiteralExpr [STRING] [2012-03-01T00:00:00Z]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_max_empty/scalar_max_empty.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_max_empty/scalar_max_empty.3.ast
index 897ca40..165260f 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_max_empty/scalar_max_empty.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_max_empty/scalar_max_empty.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.max@1[
+FunctionCall asterix.max@1[
OrderedListConstructor [
]
]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_max_null/scalar_max_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_max_null/scalar_max_null.3.ast
index 33a6a4b..de3f4ca 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_max_null/scalar_max_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_max_null/scalar_max_null.3.ast
@@ -2,7 +2,7 @@
Query:
Let Variable [ Name=$i8 ]
:=
- FunctionCall test.max@1[
+ FunctionCall asterix.max@1[
OrderedListConstructor [
FunctionCall test.int8@1[
LiteralExpr [STRING] [1]
@@ -18,7 +18,7 @@
]
Let Variable [ Name=$i16 ]
:=
- FunctionCall test.max@1[
+ FunctionCall asterix.max@1[
OrderedListConstructor [
FunctionCall test.int16@1[
LiteralExpr [STRING] [1]
@@ -34,7 +34,7 @@
]
Let Variable [ Name=$i32 ]
:=
- FunctionCall test.max@1[
+ FunctionCall asterix.max@1[
OrderedListConstructor [
FunctionCall test.int32@1[
LiteralExpr [STRING] [1]
@@ -50,7 +50,7 @@
]
Let Variable [ Name=$i64 ]
:=
- FunctionCall test.max@1[
+ FunctionCall asterix.max@1[
OrderedListConstructor [
FunctionCall test.int64@1[
LiteralExpr [STRING] [1]
@@ -66,7 +66,7 @@
]
Let Variable [ Name=$f ]
:=
- FunctionCall test.max@1[
+ FunctionCall asterix.max@1[
OrderedListConstructor [
FunctionCall test.float@1[
LiteralExpr [STRING] [1]
@@ -82,7 +82,7 @@
]
Let Variable [ Name=$d ]
:=
- FunctionCall test.max@1[
+ FunctionCall asterix.max@1[
OrderedListConstructor [
FunctionCall test.double@1[
LiteralExpr [STRING] [1]
@@ -98,7 +98,7 @@
]
Let Variable [ Name=$s ]
:=
- FunctionCall test.max@1[
+ FunctionCall asterix.max@1[
OrderedListConstructor [
LiteralExpr [STRING] [foo]
LiteralExpr [STRING] [bar]
@@ -108,7 +108,7 @@
]
Let Variable [ Name=$dt ]
:=
- FunctionCall test.max@1[
+ FunctionCall asterix.max@1[
OrderedListConstructor [
FunctionCall test.datetime@1[
LiteralExpr [STRING] [2012-03-01T00:00:00Z]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_min/scalar_min.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_min/scalar_min.3.ast
index 819797f..0aa087f 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_min/scalar_min.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_min/scalar_min.3.ast
@@ -2,7 +2,7 @@
Query:
Let Variable [ Name=$i8 ]
:=
- FunctionCall test.min@1[
+ FunctionCall asterix.min@1[
OrderedListConstructor [
FunctionCall test.int8@1[
LiteralExpr [STRING] [1]
@@ -17,7 +17,7 @@
]
Let Variable [ Name=$i16 ]
:=
- FunctionCall test.min@1[
+ FunctionCall asterix.min@1[
OrderedListConstructor [
FunctionCall test.int16@1[
LiteralExpr [STRING] [1]
@@ -32,7 +32,7 @@
]
Let Variable [ Name=$i32 ]
:=
- FunctionCall test.min@1[
+ FunctionCall asterix.min@1[
OrderedListConstructor [
FunctionCall test.int32@1[
LiteralExpr [STRING] [1]
@@ -47,7 +47,7 @@
]
Let Variable [ Name=$i64 ]
:=
- FunctionCall test.min@1[
+ FunctionCall asterix.min@1[
OrderedListConstructor [
FunctionCall test.int64@1[
LiteralExpr [STRING] [1]
@@ -62,7 +62,7 @@
]
Let Variable [ Name=$f ]
:=
- FunctionCall test.min@1[
+ FunctionCall asterix.min@1[
OrderedListConstructor [
FunctionCall test.float@1[
LiteralExpr [STRING] [1]
@@ -77,7 +77,7 @@
]
Let Variable [ Name=$d ]
:=
- FunctionCall test.min@1[
+ FunctionCall asterix.min@1[
OrderedListConstructor [
FunctionCall test.double@1[
LiteralExpr [STRING] [1]
@@ -92,7 +92,7 @@
]
Let Variable [ Name=$s ]
:=
- FunctionCall test.min@1[
+ FunctionCall asterix.min@1[
OrderedListConstructor [
LiteralExpr [STRING] [foo]
LiteralExpr [STRING] [bar]
@@ -101,7 +101,7 @@
]
Let Variable [ Name=$dt ]
:=
- FunctionCall test.min@1[
+ FunctionCall asterix.min@1[
OrderedListConstructor [
FunctionCall test.datetime@1[
LiteralExpr [STRING] [2012-03-01T00:00:00Z]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_min_empty/scalar_min_empty.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_min_empty/scalar_min_empty.3.ast
index f0b1423..b40a969 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_min_empty/scalar_min_empty.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_min_empty/scalar_min_empty.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.min@1[
+FunctionCall asterix.min@1[
OrderedListConstructor [
]
]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_min_null/scalar_min_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_min_null/scalar_min_null.3.ast
index 4d6f373..3346789 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_min_null/scalar_min_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_min_null/scalar_min_null.3.ast
@@ -2,7 +2,7 @@
Query:
Let Variable [ Name=$i8 ]
:=
- FunctionCall test.min@1[
+ FunctionCall asterix.min@1[
OrderedListConstructor [
FunctionCall test.int8@1[
LiteralExpr [STRING] [1]
@@ -18,7 +18,7 @@
]
Let Variable [ Name=$i16 ]
:=
- FunctionCall test.min@1[
+ FunctionCall asterix.min@1[
OrderedListConstructor [
FunctionCall test.int16@1[
LiteralExpr [STRING] [1]
@@ -34,7 +34,7 @@
]
Let Variable [ Name=$i32 ]
:=
- FunctionCall test.min@1[
+ FunctionCall asterix.min@1[
OrderedListConstructor [
FunctionCall test.int32@1[
LiteralExpr [STRING] [1]
@@ -50,7 +50,7 @@
]
Let Variable [ Name=$i64 ]
:=
- FunctionCall test.min@1[
+ FunctionCall asterix.min@1[
OrderedListConstructor [
FunctionCall test.int64@1[
LiteralExpr [STRING] [1]
@@ -66,7 +66,7 @@
]
Let Variable [ Name=$f ]
:=
- FunctionCall test.min@1[
+ FunctionCall asterix.min@1[
OrderedListConstructor [
FunctionCall test.float@1[
LiteralExpr [STRING] [1]
@@ -82,7 +82,7 @@
]
Let Variable [ Name=$d ]
:=
- FunctionCall test.min@1[
+ FunctionCall asterix.min@1[
OrderedListConstructor [
FunctionCall test.double@1[
LiteralExpr [STRING] [1]
@@ -98,7 +98,7 @@
]
Let Variable [ Name=$s ]
:=
- FunctionCall test.min@1[
+ FunctionCall asterix.min@1[
OrderedListConstructor [
LiteralExpr [STRING] [foo]
LiteralExpr [STRING] [bar]
@@ -108,7 +108,7 @@
]
Let Variable [ Name=$dt ]
:=
- FunctionCall test.min@1[
+ FunctionCall asterix.min@1[
OrderedListConstructor [
FunctionCall test.datetime@1[
LiteralExpr [STRING] [2012-03-01T00:00:00Z]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_sum/scalar_sum.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_sum/scalar_sum.3.ast
index 5e157ed..58bb3ca 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_sum/scalar_sum.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_sum/scalar_sum.3.ast
@@ -2,7 +2,7 @@
Query:
Let Variable [ Name=$i8 ]
:=
- FunctionCall test.sum@1[
+ FunctionCall asterix.sum@1[
OrderedListConstructor [
FunctionCall test.int8@1[
LiteralExpr [STRING] [1]
@@ -17,7 +17,7 @@
]
Let Variable [ Name=$i16 ]
:=
- FunctionCall test.sum@1[
+ FunctionCall asterix.sum@1[
OrderedListConstructor [
FunctionCall test.int16@1[
LiteralExpr [STRING] [1]
@@ -32,7 +32,7 @@
]
Let Variable [ Name=$i32 ]
:=
- FunctionCall test.sum@1[
+ FunctionCall asterix.sum@1[
OrderedListConstructor [
FunctionCall test.int32@1[
LiteralExpr [STRING] [1]
@@ -47,7 +47,7 @@
]
Let Variable [ Name=$i64 ]
:=
- FunctionCall test.sum@1[
+ FunctionCall asterix.sum@1[
OrderedListConstructor [
FunctionCall test.int64@1[
LiteralExpr [STRING] [1]
@@ -62,7 +62,7 @@
]
Let Variable [ Name=$f ]
:=
- FunctionCall test.sum@1[
+ FunctionCall asterix.sum@1[
OrderedListConstructor [
FunctionCall test.float@1[
LiteralExpr [STRING] [1]
@@ -77,7 +77,7 @@
]
Let Variable [ Name=$d ]
:=
- FunctionCall test.sum@1[
+ FunctionCall asterix.sum@1[
OrderedListConstructor [
FunctionCall test.double@1[
LiteralExpr [STRING] [1]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_sum_empty/scalar_sum_empty.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_sum_empty/scalar_sum_empty.3.ast
index 43d6854..b919e8e 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_sum_empty/scalar_sum_empty.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_sum_empty/scalar_sum_empty.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sum@1[
+FunctionCall asterix.sum@1[
OrderedListConstructor [
]
]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_sum_null/scalar_sum_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_sum_null/scalar_sum_null.3.ast
index 2a66bea..30cccae 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_sum_null/scalar_sum_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/scalar_sum_null/scalar_sum_null.3.ast
@@ -2,7 +2,7 @@
Query:
Let Variable [ Name=$i8 ]
:=
- FunctionCall test.sum@1[
+ FunctionCall asterix.sum@1[
OrderedListConstructor [
FunctionCall test.int8@1[
LiteralExpr [STRING] [1]
@@ -18,7 +18,7 @@
]
Let Variable [ Name=$i16 ]
:=
- FunctionCall test.sum@1[
+ FunctionCall asterix.sum@1[
OrderedListConstructor [
FunctionCall test.int16@1[
LiteralExpr [STRING] [1]
@@ -34,7 +34,7 @@
]
Let Variable [ Name=$i32 ]
:=
- FunctionCall test.sum@1[
+ FunctionCall asterix.sum@1[
OrderedListConstructor [
FunctionCall test.int32@1[
LiteralExpr [STRING] [1]
@@ -50,7 +50,7 @@
]
Let Variable [ Name=$i64 ]
:=
- FunctionCall test.sum@1[
+ FunctionCall asterix.sum@1[
OrderedListConstructor [
FunctionCall test.int64@1[
LiteralExpr [STRING] [1]
@@ -66,7 +66,7 @@
]
Let Variable [ Name=$f ]
:=
- FunctionCall test.sum@1[
+ FunctionCall asterix.sum@1[
OrderedListConstructor [
FunctionCall test.float@1[
LiteralExpr [STRING] [1]
@@ -82,7 +82,7 @@
]
Let Variable [ Name=$d ]
:=
- FunctionCall test.sum@1[
+ FunctionCall asterix.sum@1[
OrderedListConstructor [
FunctionCall test.double@1[
LiteralExpr [STRING] [1]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_double/sum_double.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_double/sum_double.3.ast
index 9b1d608..a3c5fd8 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_double/sum_double.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_double/sum_double.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sum@1[
+FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_double_null/sum_double_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_double_null/sum_double_null.3.ast
index 524dddc..59dad88 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_double_null/sum_double_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_double_null/sum_double_null.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sum@1[
+FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_empty_01/sum_empty_01.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_empty_01/sum_empty_01.3.ast
index d646ceb..6179931 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_empty_01/sum_empty_01.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_empty_01/sum_empty_01.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sum@1[
+FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_empty_02/sum_empty_02.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_empty_02/sum_empty_02.3.ast
index 3a63d12..afc0582 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_empty_02/sum_empty_02.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_empty_02/sum_empty_02.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sum@1[
+FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_float/sum_float.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_float/sum_float.3.ast
index c8734ab..f391452 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_float/sum_float.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_float/sum_float.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sum@1[
+FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_float_null/sum_float_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_float_null/sum_float_null.3.ast
index 4743a4d..069ed30 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_float_null/sum_float_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_float_null/sum_float_null.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sum@1[
+FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int16/sum_int16.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int16/sum_int16.3.ast
index 9aa5845..18be6bb 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int16/sum_int16.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int16/sum_int16.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sum@1[
+FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int16_null/sum_int16_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int16_null/sum_int16_null.3.ast
index 2eb24c4..a54b145 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int16_null/sum_int16_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int16_null/sum_int16_null.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sum@1[
+FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int32/sum_int32.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int32/sum_int32.3.ast
index 753a357..df28ba6 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int32/sum_int32.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int32/sum_int32.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sum@1[
+FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int32_null/sum_int32_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int32_null/sum_int32_null.3.ast
index 0572107..1380de9 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int32_null/sum_int32_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int32_null/sum_int32_null.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sum@1[
+FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int64/sum_int64.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int64/sum_int64.3.ast
index ad9a54c..c9652ea 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int64/sum_int64.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int64/sum_int64.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sum@1[
+FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int64_null/sum_int64_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int64_null/sum_int64_null.3.ast
index dba19a2..7a1859d 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int64_null/sum_int64_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int64_null/sum_int64_null.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sum@1[
+FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int8/sum_int8.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int8/sum_int8.3.ast
index 12957d9..11eb977 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int8/sum_int8.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int8/sum_int8.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sum@1[
+FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int8_null/sum_int8_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int8_null/sum_int8_null.3.ast
index a43f72f..33e0e30 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int8_null/sum_int8_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_int8_null/sum_int8_null.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sum@1[
+FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_mixed/sum_mixed.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_mixed/sum_mixed.3.ast
index 14e5f18..e849c4e 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_mixed/sum_mixed.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_mixed/sum_mixed.3.ast
@@ -1,6 +1,6 @@
Query:
SELECT ELEMENT [
-FunctionCall null.sum@1[
+FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_null-with-pred/sum_null-with-pred.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_null-with-pred/sum_null-with-pred.3.ast
index 9769f50..32b5d9a 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_null-with-pred/sum_null-with-pred.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_null-with-pred/sum_null-with-pred.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sum@1[
+FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_numeric_null/sum_numeric_null.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_numeric_null/sum_numeric_null.3.ast
index 7712f82..2270d23 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_numeric_null/sum_numeric_null.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/aggregate/sum_numeric_null/sum_numeric_null.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.sum@1[
+FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/cross-dataverse/cross-dv03/cross-dv03.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/cross-dataverse/cross-dv03/cross-dv03.3.ast
index 67fed71..9613c78 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/cross-dataverse/cross-dv03/cross-dv03.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/cross-dataverse/cross-dv03/cross-dv03.3.ast
@@ -1,6 +1,6 @@
Query:
SELECT ELEMENT [
-FunctionCall null.count@1[
+FunctionCall asterix.count@1[
(
SELECT ELEMENT [
Variable [ Name=$l ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/dapd/q2/q2.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/dapd/q2/q2.3.ast
index 06b8dff..03f37bb 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/dapd/q2/q2.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/dapd/q2/q2.3.ast
@@ -45,7 +45,7 @@
Let Variable [ Name=$sig_sponsorship_count ]
:=
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
LiteralExpr [LONG] [1]
@@ -68,7 +68,7 @@
(
LiteralExpr [STRING] [escount]
:
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/dml/query-issue382/query-issue382.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/dml/query-issue382/query-issue382.3.ast
index 19bebeb..7861c35 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/dml/query-issue382/query-issue382.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/dml/query-issue382/query-issue382.3.ast
@@ -1,7 +1,7 @@
DataverseUse SocialNetworkData
Query:
SELECT ELEMENT [
-FunctionCall SocialNetworkData.count@1[
+FunctionCall asterix.count@1[
(
SELECT ELEMENT [
Variable [ Name=$h ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-1_1/dblp-1_1.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-1_1/dblp-1_1.3.ast
index 165a711..c7de79e 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-1_1/dblp-1_1.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-1_1/dblp-1_1.3.ast
@@ -28,7 +28,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-1_2.1.1/dblp-1_2.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-1_2.1.1/dblp-1_2.3.ast
index 9701e92..fd84015 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-1_2.1.1/dblp-1_2.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-1_2.1.1/dblp-1_2.3.ast
@@ -34,7 +34,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-1_2.1/dblp-1_2.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-1_2.1/dblp-1_2.3.ast
index 9701e92..fd84015 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-1_2.1/dblp-1_2.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-1_2.1/dblp-1_2.3.ast
@@ -34,7 +34,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-1_2/dblp-1_2.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-1_2/dblp-1_2.3.ast
index d8aa69e..e1dceff 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-1_2/dblp-1_2.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-1_2/dblp-1_2.3.ast
@@ -34,7 +34,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2.1_5.3.1/dblp-2.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2.1_5.3.1/dblp-2.3.ast
index 8d8e432..75bbdb2 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2.1_5.3.1/dblp-2.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2.1_5.3.1/dblp-2.3.ast
@@ -103,7 +103,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -132,7 +132,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_1/dblp-2_1.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_1/dblp-2_1.3.ast
index 172b607..d0f1d48 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_1/dblp-2_1.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_1/dblp-2_1.3.ast
@@ -65,7 +65,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -84,7 +84,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_2/dblp-2_2.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_2/dblp-2_2.3.ast
index 5924f3e..fd432c3 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_2/dblp-2_2.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_2/dblp-2_2.3.ast
@@ -71,7 +71,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -96,7 +96,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_3/dblp-2_3.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_3/dblp-2_3.3.ast
index bba988a..db9a73c 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_3/dblp-2_3.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_3/dblp-2_3.3.ast
@@ -74,7 +74,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -100,7 +100,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_4/dblp-2_4.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_4/dblp-2_4.3.ast
index 5f6b822..b132778 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_4/dblp-2_4.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_4/dblp-2_4.3.ast
@@ -77,7 +77,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -104,7 +104,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_5.1/dblp-2_5.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_5.1/dblp-2_5.3.ast
index 909baec..daa4c54 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_5.1/dblp-2_5.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_5.1/dblp-2_5.3.ast
@@ -87,7 +87,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -115,7 +115,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_5.2/dblp-2_5.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_5.2/dblp-2_5.3.ast
index 909baec..daa4c54 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_5.2/dblp-2_5.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_5.2/dblp-2_5.3.ast
@@ -87,7 +87,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -115,7 +115,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_5.3.1/dblp-2_5.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_5.3.1/dblp-2_5.3.ast
index 909baec..daa4c54 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_5.3.1/dblp-2_5.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_5.3.1/dblp-2_5.3.ast
@@ -87,7 +87,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -115,7 +115,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_5.3/dblp-2_5.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_5.3/dblp-2_5.3.ast
index 909baec..daa4c54 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_5.3/dblp-2_5.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_5.3/dblp-2_5.3.ast
@@ -87,7 +87,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -115,7 +115,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_5/dblp-2_5.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_5/dblp-2_5.3.ast
index f36d0c6..01a66e5 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_5/dblp-2_5.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-2_5/dblp-2_5.3.ast
@@ -87,7 +87,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -115,7 +115,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-3_1.1/dblp-3_1.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-3_1.1/dblp-3_1.3.ast
index 9158753..17eeb99 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-3_1.1/dblp-3_1.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-3_1.1/dblp-3_1.3.ast
@@ -157,7 +157,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -176,7 +176,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -242,7 +242,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -261,7 +261,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-3_1.2/dblp-3_1.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-3_1.2/dblp-3_1.3.ast
index 9158753..17eeb99 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-3_1.2/dblp-3_1.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-3_1.2/dblp-3_1.3.ast
@@ -157,7 +157,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -176,7 +176,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -242,7 +242,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -261,7 +261,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-3_1/dblp-3_1.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-3_1/dblp-3_1.3.ast
index 9ccb943..bed4f76 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-3_1/dblp-3_1.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-3_1/dblp-3_1.3.ast
@@ -169,7 +169,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -188,7 +188,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -254,7 +254,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -273,7 +273,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_1/dblp-csx-2_1.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_1/dblp-csx-2_1.3.ast
index 8098058..8bca6c2 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_1/dblp-csx-2_1.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_1/dblp-csx-2_1.3.ast
@@ -115,7 +115,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -134,7 +134,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -190,7 +190,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -209,7 +209,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_2/dblp-csx-2_2.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_2/dblp-csx-2_2.3.ast
index f572bde..39e3ad0 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_2/dblp-csx-2_2.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_2/dblp-csx-2_2.3.ast
@@ -121,7 +121,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -149,7 +149,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -211,7 +211,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -240,7 +240,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_3/dblp-csx-2_3.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_3/dblp-csx-2_3.3.ast
index af67820..6a46c78 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_3/dblp-csx-2_3.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_3/dblp-csx-2_3.3.ast
@@ -127,7 +127,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -156,7 +156,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -224,7 +224,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -255,7 +255,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_4/dblp-csx-2_4.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_4/dblp-csx-2_4.3.ast
index 13f3e86..1d1c7b3 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_4/dblp-csx-2_4.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_4/dblp-csx-2_4.3.ast
@@ -130,7 +130,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -160,7 +160,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -231,7 +231,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -264,7 +264,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_5.1/dblp-csx-2_5.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_5.1/dblp-csx-2_5.3.ast
index d6384ce..2922b08 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_5.1/dblp-csx-2_5.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_5.1/dblp-csx-2_5.3.ast
@@ -150,7 +150,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -181,7 +181,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -257,7 +257,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -292,7 +292,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_5.2/dblp-csx-2_5.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_5.2/dblp-csx-2_5.3.ast
index d6384ce..2922b08 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_5.2/dblp-csx-2_5.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_5.2/dblp-csx-2_5.3.ast
@@ -150,7 +150,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -181,7 +181,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -257,7 +257,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -292,7 +292,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_5.3.1/dblp-csx-2_5.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_5.3.1/dblp-csx-2_5.3.ast
index 7942271..bef1d14 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_5.3.1/dblp-csx-2_5.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_5.3.1/dblp-csx-2_5.3.ast
@@ -135,7 +135,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -166,7 +166,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -242,7 +242,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -277,7 +277,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_5.3/dblp-csx-2_5.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_5.3/dblp-csx-2_5.3.ast
index d6384ce..2922b08 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_5.3/dblp-csx-2_5.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_5.3/dblp-csx-2_5.3.ast
@@ -150,7 +150,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -181,7 +181,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -257,7 +257,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -292,7 +292,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_5/dblp-csx-2_5.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_5/dblp-csx-2_5.3.ast
index 7942271..bef1d14 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_5/dblp-csx-2_5.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-2_5/dblp-csx-2_5.3.ast
@@ -135,7 +135,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -166,7 +166,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -242,7 +242,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -277,7 +277,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_1/dblp-csx-3_1.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_1/dblp-csx-3_1.3.ast
index a7b9ab6..a37d367 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_1/dblp-csx-3_1.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_1/dblp-csx-3_1.3.ast
@@ -138,7 +138,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -157,7 +157,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -213,7 +213,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -232,7 +232,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_2/dblp-csx-3_2.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_2/dblp-csx-3_2.3.ast
index 767b6a5..052f7c0 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_2/dblp-csx-3_2.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_2/dblp-csx-3_2.3.ast
@@ -144,7 +144,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -172,7 +172,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -234,7 +234,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -263,7 +263,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_3/dblp-csx-3_3.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_3/dblp-csx-3_3.3.ast
index edf93fa..09a2efd 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_3/dblp-csx-3_3.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_3/dblp-csx-3_3.3.ast
@@ -150,7 +150,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -179,7 +179,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -247,7 +247,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -278,7 +278,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_4/dblp-csx-3_4.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_4/dblp-csx-3_4.3.ast
index 336465c..ed021c3 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_4/dblp-csx-3_4.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_4/dblp-csx-3_4.3.ast
@@ -153,7 +153,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -183,7 +183,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -254,7 +254,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -287,7 +287,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.1/dblp-csx-3_5.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.1/dblp-csx-3_5.3.ast
index 05eb749..ae318cc 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.1/dblp-csx-3_5.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.1/dblp-csx-3_5.3.ast
@@ -173,7 +173,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -204,7 +204,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -280,7 +280,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -315,7 +315,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.2/dblp-csx-3_5.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.2/dblp-csx-3_5.3.ast
index 05eb749..ae318cc 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.2/dblp-csx-3_5.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.2/dblp-csx-3_5.3.ast
@@ -173,7 +173,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -204,7 +204,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -280,7 +280,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -315,7 +315,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.3.1/dblp-csx-3_5.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.3.1/dblp-csx-3_5.3.ast
index 05eb749..ae318cc 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.3.1/dblp-csx-3_5.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.3.1/dblp-csx-3_5.3.ast
@@ -173,7 +173,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -204,7 +204,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -280,7 +280,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -315,7 +315,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.3/dblp-csx-3_5.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.3/dblp-csx-3_5.3.ast
index 1217164..fadf81a 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.3/dblp-csx-3_5.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.3/dblp-csx-3_5.3.ast
@@ -158,7 +158,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -189,7 +189,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -265,7 +265,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -300,7 +300,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.4.1/dblp-csx-3_5.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.4.1/dblp-csx-3_5.3.ast
index c91d805..d498017 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.4.1/dblp-csx-3_5.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.4.1/dblp-csx-3_5.3.ast
@@ -222,7 +222,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -253,7 +253,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -329,7 +329,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -364,7 +364,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.4/dblp-csx-3_5.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.4/dblp-csx-3_5.3.ast
index ee3f3d5..40d55ad 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.4/dblp-csx-3_5.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5.4/dblp-csx-3_5.3.ast
@@ -222,7 +222,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -253,7 +253,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -329,7 +329,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -364,7 +364,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5/dblp-csx-3_5.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5/dblp-csx-3_5.3.ast
index 1217164..fadf81a 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5/dblp-csx-3_5.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/fuzzyjoin/dblp-csx-3_5/dblp-csx-3_5.3.ast
@@ -158,7 +158,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -189,7 +189,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
@@ -265,7 +265,7 @@
)
Orderby
- FunctionCall fuzzyjoin.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -300,7 +300,7 @@
)
AS Variable [ Name=$tokenRanked ]
- AT
+ AT
Variable [ Name=$i ]
]
Where
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/hdfs/hdfs_02/hdfs_02.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/hdfs/hdfs_02/hdfs_02.3.ast
index ba6fb25..a9e10ed 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/hdfs/hdfs_02/hdfs_02.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/hdfs/hdfs_02/hdfs_02.3.ast
@@ -10,7 +10,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/hdfs/hdfs_03/hdfs_03.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/hdfs/hdfs_03/hdfs_03.3.ast
index ba6fb25..a9e10ed 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/hdfs/hdfs_03/hdfs_03.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/hdfs/hdfs_03/hdfs_03.3.ast
@@ -10,7 +10,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/hdfs/hdfs_shortcircuit/hdfs_shortcircuit.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/hdfs/hdfs_shortcircuit/hdfs_shortcircuit.3.ast
index ba6fb25..a9e10ed 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/hdfs/hdfs_shortcircuit/hdfs_shortcircuit.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/hdfs/hdfs_shortcircuit/hdfs_shortcircuit.3.ast
@@ -10,7 +10,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/hints/issue_251_dataset_hint_6/issue_251_dataset_hint_6.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/hints/issue_251_dataset_hint_6/issue_251_dataset_hint_6.3.ast
index ba6fb25..a9e10ed 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/hints/issue_251_dataset_hint_6/issue_251_dataset_hint_6.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/hints/issue_251_dataset_hint_6/issue_251_dataset_hint_6.3.ast
@@ -10,7 +10,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/list/listify_03/listify_03.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/list/listify_03/listify_03.3.ast
index effbbb3..8303b19 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/list/listify_03/listify_03.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/list/listify_03/listify_03.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.min@1[
+FunctionCall asterix.min@1[
Variable [ Name=$y ]
]
]
@@ -15,7 +15,7 @@
:=
(
SELECT ELEMENT [
- FunctionCall test.min@1[
+ FunctionCall asterix.min@1[
Variable [ Name=$i ]
]
]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/load/issue289_query/issue289_query.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/load/issue289_query/issue289_query.3.ast
index a0a6757..e5a74a8 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/load/issue289_query/issue289_query.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/load/issue289_query/issue289_query.3.ast
@@ -1,7 +1,7 @@
DataverseUse test
Query:
SELECT ELEMENT [
-FunctionCall test.count@1[
+FunctionCall asterix.count@1[
(
SELECT ELEMENT [
Variable [ Name=$l ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/materialization/assign-reuse/assign-reuse.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/materialization/assign-reuse/assign-reuse.3.ast
index 4223a5f..323bb0e 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/materialization/assign-reuse/assign-reuse.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/materialization/assign-reuse/assign-reuse.3.ast
@@ -13,7 +13,7 @@
]
Where
OperatorExpr [
- FunctionCall TinySocial.count@1[
+ FunctionCall asterix.count@1[
FieldAccessor [
Variable [ Name=$d ]
Field=friend-ids
@@ -36,7 +36,7 @@
]
Where
OperatorExpr [
- FunctionCall TinySocial.count@1[
+ FunctionCall asterix.count@1[
FieldAccessor [
Variable [ Name=$d ]
Field=friend-ids
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/misc/groupby-orderby-count/groupby-orderby-count.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/misc/groupby-orderby-count/groupby-orderby-count.3.ast
index 03f3620..0645a7f 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/misc/groupby-orderby-count/groupby-orderby-count.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/misc/groupby-orderby-count/groupby-orderby-count.3.ast
@@ -10,7 +10,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall twitter.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -51,7 +51,7 @@
)
Orderby
- FunctionCall twitter.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/objects/get-object-fields/tiny-social-example-no-complex-types/tiny-social-example-no-complex-types.9.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/objects/get-object-fields/tiny-social-example-no-complex-types/tiny-social-example-no-complex-types.9.ast
index b7493c0..0e005a9 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/objects/get-object-fields/tiny-social-example-no-complex-types/tiny-social-example-no-complex-types.9.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/objects/get-object-fields/tiny-social-example-no-complex-types/tiny-social-example-no-complex-types.9.ast
@@ -50,7 +50,7 @@
Let Variable [ Name=$count ]
:=
- FunctionCall TinySocial.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/objects/get-object-fields/tiny-social-example-only-lists/tiny-social-example-only-lists.9.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/objects/get-object-fields/tiny-social-example-only-lists/tiny-social-example-only-lists.9.ast
index b7493c0..0e005a9 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/objects/get-object-fields/tiny-social-example-only-lists/tiny-social-example-only-lists.9.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/objects/get-object-fields/tiny-social-example-only-lists/tiny-social-example-only-lists.9.ast
@@ -50,7 +50,7 @@
Let Variable [ Name=$count ]
:=
- FunctionCall TinySocial.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/objects/get-object-fields/tiny-social-example-only-records/tiny-social-example-only-records.9.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/objects/get-object-fields/tiny-social-example-only-records/tiny-social-example-only-records.9.ast
index b7493c0..0e005a9 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/objects/get-object-fields/tiny-social-example-only-records/tiny-social-example-only-records.9.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/objects/get-object-fields/tiny-social-example-only-records/tiny-social-example-only-records.9.ast
@@ -50,7 +50,7 @@
Let Variable [ Name=$count ]
:=
- FunctionCall TinySocial.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/open-closed/query-issue208/query-issue208.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/open-closed/query-issue208/query-issue208.3.ast
index 1795281..9f85911 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/open-closed/query-issue208/query-issue208.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/open-closed/query-issue208/query-issue208.3.ast
@@ -10,7 +10,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall OpenSocialNetworkData.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/open-closed/query-issue456/query-issue456.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/open-closed/query-issue456/query-issue456.3.ast
index 25b5f82..c9e0567 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/open-closed/query-issue456/query-issue456.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/open-closed/query-issue456/query-issue456.3.ast
@@ -6,7 +6,7 @@
Variable [ Name=$x ]
Field=int_m
]
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/open-closed/query-proposal/query-proposal.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/open-closed/query-proposal/query-proposal.3.ast
index bc1cbb8..36a2f6b 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/open-closed/query-proposal/query-proposal.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/open-closed/query-proposal/query-proposal.3.ast
@@ -10,7 +10,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/open-closed/query-proposal02/query-proposal02.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/open-closed/query-proposal02/query-proposal02.3.ast
index 806f0da..2c7cc21 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/open-closed/query-proposal02/query-proposal02.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/open-closed/query-proposal02/query-proposal02.3.ast
@@ -10,7 +10,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/semistructured/count-nullable/count-nullable.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/semistructured/count-nullable/count-nullable.3.ast
index d2e89aa..96d0aa7 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/semistructured/count-nullable/count-nullable.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/semistructured/count-nullable/count-nullable.3.ast
@@ -10,7 +10,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/spatial/cell-aggregation-with-filtering/cell-aggregation-with-filtering.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/spatial/cell-aggregation-with-filtering/cell-aggregation-with-filtering.3.ast
index 6cdd575..956cabf 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/spatial/cell-aggregation-with-filtering/cell-aggregation-with-filtering.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/spatial/cell-aggregation-with-filtering/cell-aggregation-with-filtering.3.ast
@@ -26,9 +26,9 @@
:=
FunctionCall test.polygon@1[
LiteralExpr [STRING] [
- 33.80503407287759,-126.41235263538363
- 44.9090773200516,-126.41235263538363
- 44.9090773200516,-87.65258701038363
+ 33.80503407287759,-126.41235263538363
+ 44.9090773200516,-126.41235263538363
+ 44.9090773200516,-87.65258701038363
33.80503407287759,-87.65258701038363]
]
Where
@@ -93,7 +93,7 @@
Let Variable [ Name=$num ]
:=
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
Variable [ Name=$t ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/spatial/cell-aggregation/cell-aggregation.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/spatial/cell-aggregation/cell-aggregation.3.ast
index 08850a7..87ebfdb 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/spatial/cell-aggregation/cell-aggregation.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/spatial/cell-aggregation/cell-aggregation.3.ast
@@ -44,7 +44,7 @@
Let Variable [ Name=$num ]
:=
- FunctionCall test.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/temp-dataset/q01_pricing_summary_report_nt/q01_pricing_summary_report_nt.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/temp-dataset/q01_pricing_summary_report_nt/q01_pricing_summary_report_nt.3.ast
index 39fb48b..90ebf05 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/temp-dataset/q01_pricing_summary_report_nt/q01_pricing_summary_report_nt.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/temp-dataset/q01_pricing_summary_report_nt/q01_pricing_summary_report_nt.3.ast
@@ -16,7 +16,7 @@
(
LiteralExpr [STRING] [sum_qty]
:
- FunctionCall tpch.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -36,7 +36,7 @@
(
LiteralExpr [STRING] [sum_base_price]
:
- FunctionCall tpch.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -56,7 +56,7 @@
(
LiteralExpr [STRING] [sum_disc_price]
:
- FunctionCall tpch.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
OperatorExpr [
@@ -90,7 +90,7 @@
(
LiteralExpr [STRING] [sum_charge]
:
- FunctionCall tpch.sql-sum@1[
+ FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
OperatorExpr [
@@ -136,7 +136,7 @@
(
LiteralExpr [STRING] [ave_qty]
:
- FunctionCall tpch.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -156,7 +156,7 @@
(
LiteralExpr [STRING] [ave_price]
:
- FunctionCall tpch.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -176,7 +176,7 @@
(
LiteralExpr [STRING] [ave_disc]
:
- FunctionCall tpch.sql-avg@1[
+ FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -196,7 +196,7 @@
(
LiteralExpr [STRING] [count_order]
:
- FunctionCall tpch.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
LiteralExpr [LONG] [1]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/temporal/interval_bin_gby_0/interval_bin_gby_0.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/temporal/interval_bin_gby_0/interval_bin_gby_0.3.ast
index acb1510..3845b11 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/temporal/interval_bin_gby_0/interval_bin_gby_0.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/temporal/interval_bin_gby_0/interval_bin_gby_0.3.ast
@@ -10,7 +10,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/temporal/interval_bin_gby_1/interval_bin_gby_1.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/temporal/interval_bin_gby_1/interval_bin_gby_1.3.ast
index 6954f35..6e6e16d 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/temporal/interval_bin_gby_1/interval_bin_gby_1.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/temporal/interval_bin_gby_1/interval_bin_gby_1.3.ast
@@ -10,7 +10,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/temporal/overlap_bins_gby_1/overlap_bins_gby_1.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/temporal/overlap_bins_gby_1/overlap_bins_gby_1.3.ast
index bebf050..94cd539 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/temporal/overlap_bins_gby_1/overlap_bins_gby_1.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/temporal/overlap_bins_gby_1/overlap_bins_gby_1.3.ast
@@ -10,7 +10,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall test.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
(
@@ -31,7 +31,7 @@
(
LiteralExpr [STRING] [total_ms]
:
- FunctionCall test.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FunctionCall test.ms-from-day-time-duration@1[
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/temporal/overlap_bins_gby_3/overlap_bins_gby_3.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/temporal/overlap_bins_gby_3/overlap_bins_gby_3.3.ast
index e9435d1..af17428 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/temporal/overlap_bins_gby_3/overlap_bins_gby_3.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/temporal/overlap_bins_gby_3/overlap_bins_gby_3.3.ast
@@ -21,7 +21,7 @@
(
LiteralExpr [STRING] [item_count]
:
- FunctionCall multitask.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -73,7 +73,7 @@
Orderby
Variable [ Name=$subgid ]
ASC
- FunctionCall multitask.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -94,7 +94,7 @@
]
FROM [ FunctionCall multitask.overlap-bins@3[
FunctionCall multitask.interval@2[
- FunctionCall multitask.min@1[
+ FunctionCall asterix.min@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -109,7 +109,7 @@
]
)
]
- FunctionCall multitask.max@1[
+ FunctionCall asterix.max@1[
(
SELECT ELEMENT [
OperatorExpr [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.14.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.14.ast
index 105f844..08c931a 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.14.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.14.ast
@@ -1,7 +1,7 @@
DataverseUse TinySocial
Query:
SELECT ELEMENT [
-FunctionCall TinySocial.count@1[
+FunctionCall asterix.count@1[
(
SELECT ELEMENT [
Variable [ Name=$fbu ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.15.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.15.ast
index a21a8c7..210e276 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.15.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.15.ast
@@ -10,7 +10,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall TinySocial.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
LiteralExpr [LONG] [1]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.16.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.16.ast
index a21a8c7..210e276 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.16.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.16.ast
@@ -10,7 +10,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall TinySocial.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
LiteralExpr [LONG] [1]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.17.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.17.ast
index c5a07ba..f3e7d16 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.17.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.17.ast
@@ -36,7 +36,7 @@
Let Variable [ Name=$c ]
:=
- FunctionCall TinySocial.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
LiteralExpr [LONG] [1]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.22.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.22.ast
index 6b763c9..b12acb3 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.22.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.22.ast
@@ -1,7 +1,7 @@
DataverseUse TinySocial
Query:
SELECT ELEMENT [
-FunctionCall TinySocial.count@1[
+FunctionCall asterix.count@1[
(
SELECT ELEMENT [
Variable [ Name=$t ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.23.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.23.ast
index 1c36b20..de6b8d6 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.23.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.23.ast
@@ -3,7 +3,7 @@
SELECT [
Variable [ Name=$h ]
hour
-FunctionCall TinySocial.sql-count@1[
+FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
LiteralExpr [LONG] [1]
@@ -18,7 +18,7 @@
SELECT [
Variable [ Name=$min ]
minute
- FunctionCall TinySocial.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
LiteralExpr [LONG] [1]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.25.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.25.ast
index 50e0060..8985862 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.25.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.25.ast
@@ -1,7 +1,7 @@
DataverseUse TinySocial
Query:
SELECT ELEMENT [
-FunctionCall TinySocial.avg@1[
+FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FunctionCall TinySocial.string-length@1[
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.26.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.26.ast
index 0027ad97..ead363d 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.26.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.26.ast
@@ -10,7 +10,7 @@
Field=organization-name
]
organization
-FunctionCall TinySocial.sql-avg@1[
+FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
FunctionCall TinySocial.get-year@1[
@@ -29,7 +29,7 @@
)
]
average
-FunctionCall TinySocial.sql-count@1[
+FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -46,7 +46,7 @@
)
]
count
-FunctionCall TinySocial.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
FunctionCall TinySocial.get-year@1[
@@ -65,7 +65,7 @@
)
]
sum
-FunctionCall TinySocial.sql-min@1[
+FunctionCall asterix.sql-min@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -82,7 +82,7 @@
)
]
min
-FunctionCall TinySocial.sql-max@1[
+FunctionCall asterix.sql-max@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.27.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.27.ast
index d177b74..dccec7c 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.27.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite-open/tinysocial-suite.27.ast
@@ -1,7 +1,7 @@
DataverseUse TinySocial
Query:
SELECT [
-FunctionCall TinySocial.sql-avg@1[
+FunctionCall asterix.sql-avg@1[
(
SELECT ELEMENT [
FunctionCall TinySocial.get-year@1[
@@ -20,7 +20,7 @@
)
]
average
-FunctionCall TinySocial.sql-count@1[
+FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -37,7 +37,7 @@
)
]
count
-FunctionCall TinySocial.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
FunctionCall TinySocial.get-year@1[
@@ -56,7 +56,7 @@
)
]
sum
-FunctionCall TinySocial.sql-min@1[
+FunctionCall asterix.sql-min@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -73,7 +73,7 @@
)
]
min
-FunctionCall TinySocial.sql-max@1[
+FunctionCall asterix.sql-max@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.14.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.14.ast
index 105f844..08c931a 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.14.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.14.ast
@@ -1,7 +1,7 @@
DataverseUse TinySocial
Query:
SELECT ELEMENT [
-FunctionCall TinySocial.count@1[
+FunctionCall asterix.count@1[
(
SELECT ELEMENT [
Variable [ Name=$fbu ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.15.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.15.ast
index a21a8c7..210e276 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.15.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.15.ast
@@ -10,7 +10,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall TinySocial.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
LiteralExpr [LONG] [1]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.16.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.16.ast
index a21a8c7..210e276 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.16.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.16.ast
@@ -10,7 +10,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall TinySocial.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
LiteralExpr [LONG] [1]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.17.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.17.ast
index c5a07ba..f3e7d16 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.17.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.17.ast
@@ -36,7 +36,7 @@
Let Variable [ Name=$c ]
:=
- FunctionCall TinySocial.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
LiteralExpr [LONG] [1]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.22.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.22.ast
index 6b763c9..b12acb3 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.22.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.22.ast
@@ -1,7 +1,7 @@
DataverseUse TinySocial
Query:
SELECT ELEMENT [
-FunctionCall TinySocial.count@1[
+FunctionCall asterix.count@1[
(
SELECT ELEMENT [
Variable [ Name=$t ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.23.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.23.ast
index 1c36b20..de6b8d6 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.23.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.23.ast
@@ -3,7 +3,7 @@
SELECT [
Variable [ Name=$h ]
hour
-FunctionCall TinySocial.sql-count@1[
+FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
LiteralExpr [LONG] [1]
@@ -18,7 +18,7 @@
SELECT [
Variable [ Name=$min ]
minute
- FunctionCall TinySocial.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
LiteralExpr [LONG] [1]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.25.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.25.ast
index 50e0060..8985862 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.25.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tinysocial/tinysocial-suite/tinysocial-suite.25.ast
@@ -1,7 +1,7 @@
DataverseUse TinySocial
Query:
SELECT ELEMENT [
-FunctionCall TinySocial.avg@1[
+FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FunctionCall TinySocial.string-length@1[
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q01_pricing_summary_report_nt/q01_pricing_summary_report_nt.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q01_pricing_summary_report_nt/q01_pricing_summary_report_nt.3.ast
index a665305..64b8438 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q01_pricing_summary_report_nt/q01_pricing_summary_report_nt.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q01_pricing_summary_report_nt/q01_pricing_summary_report_nt.3.ast
@@ -16,7 +16,7 @@
(
LiteralExpr [STRING] [sum_qty]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -36,7 +36,7 @@
(
LiteralExpr [STRING] [sum_base_price]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -56,7 +56,7 @@
(
LiteralExpr [STRING] [sum_disc_price]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
@@ -90,7 +90,7 @@
(
LiteralExpr [STRING] [sum_charge]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
@@ -136,7 +136,7 @@
(
LiteralExpr [STRING] [ave_qty]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -156,7 +156,7 @@
(
LiteralExpr [STRING] [ave_price]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -176,7 +176,7 @@
(
LiteralExpr [STRING] [ave_disc]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -196,7 +196,7 @@
(
LiteralExpr [STRING] [count_order]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q02_minimum_cost_supplier/q02_minimum_cost_supplier.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q02_minimum_cost_supplier/q02_minimum_cost_supplier.3.ast
index 63795d3..162701b 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q02_minimum_cost_supplier/q02_minimum_cost_supplier.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q02_minimum_cost_supplier/q02_minimum_cost_supplier.3.ast
@@ -337,7 +337,7 @@
(
LiteralExpr [STRING] [ps_min_supplycost]
:
- FunctionCall tpch.min@1[
+ FunctionCall asterix.min@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q03_shipping_priority_nt/q03_shipping_priority_nt.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q03_shipping_priority_nt/q03_shipping_priority_nt.3.ast
index b99d828..cc34520 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q03_shipping_priority_nt/q03_shipping_priority_nt.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q03_shipping_priority_nt/q03_shipping_priority_nt.3.ast
@@ -124,7 +124,7 @@
Let Variable [ Name=$revenue ]
:=
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q04_order_priority/q04_order_priority.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q04_order_priority/q04_order_priority.3.ast
index e9a9ccf..5c8e26f 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q04_order_priority/q04_order_priority.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q04_order_priority/q04_order_priority.3.ast
@@ -42,7 +42,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall tpch.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
LiteralExpr [LONG] [1]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q05_local_supplier_volume/q05_local_supplier_volume.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q05_local_supplier_volume/q05_local_supplier_volume.3.ast
index 61eb892..2672311 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q05_local_supplier_volume/q05_local_supplier_volume.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q05_local_supplier_volume/q05_local_supplier_volume.3.ast
@@ -305,7 +305,7 @@
Let Variable [ Name=$revenue ]
:=
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q06_forecast_revenue_change/q06_forecast_revenue_change.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q06_forecast_revenue_change/q06_forecast_revenue_change.3.ast
index 995cbbf..4b18e9c 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q06_forecast_revenue_change/q06_forecast_revenue_change.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q06_forecast_revenue_change/q06_forecast_revenue_change.3.ast
@@ -1,7 +1,7 @@
DataverseUse tpch
Query:
SELECT [
-FunctionCall tpch.sql-sum@1[
+FunctionCall asterix.sql-sum@1[
(
SELECT ELEMENT [
OperatorExpr [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q07_volume_shipping/q07_volume_shipping.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q07_volume_shipping/q07_volume_shipping.3.ast
index 27f24e5..940a665 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q07_volume_shipping/q07_volume_shipping.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q07_volume_shipping/q07_volume_shipping.3.ast
@@ -373,7 +373,7 @@
Let Variable [ Name=$revenue ]
:=
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q08_national_market_share/q08_national_market_share.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q08_national_market_share/q08_national_market_share.3.ast
index e34438b..7ce4dcf 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q08_national_market_share/q08_national_market_share.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q08_national_market_share/q08_national_market_share.3.ast
@@ -11,7 +11,7 @@
LiteralExpr [STRING] [mkt_share]
:
OperatorExpr [
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
CASE LiteralExpr [TRUE]
@@ -45,7 +45,7 @@
)
]
/
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q09_product_type_profit_nt/q09_product_type_profit_nt.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q09_product_type_profit_nt/q09_product_type_profit_nt.3.ast
index e95c448..544ee11 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q09_product_type_profit_nt/q09_product_type_profit_nt.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q09_product_type_profit_nt/q09_product_type_profit_nt.3.ast
@@ -15,7 +15,7 @@
(
LiteralExpr [STRING] [sum_profit]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q10_returned_item/q10_returned_item.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q10_returned_item/q10_returned_item.3.ast
index 6835f7c..1509e6a 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q10_returned_item/q10_returned_item.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q10_returned_item/q10_returned_item.3.ast
@@ -335,7 +335,7 @@
Let Variable [ Name=$revenue ]
:=
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q10_returned_item_int64/q10_returned_item_int64.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q10_returned_item_int64/q10_returned_item_int64.3.ast
index 6835f7c..1509e6a 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q10_returned_item_int64/q10_returned_item_int64.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q10_returned_item_int64/q10_returned_item_int64.3.ast
@@ -335,7 +335,7 @@
Let Variable [ Name=$revenue ]
:=
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q11_important_stock/q11_important_stock.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q11_important_stock/q11_important_stock.3.ast
index a42b74b..5ad8aae 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q11_important_stock/q11_important_stock.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q11_important_stock/q11_important_stock.3.ast
@@ -2,7 +2,7 @@
Query:
Let Variable [ Name=$sum ]
:=
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
@@ -105,7 +105,7 @@
(
LiteralExpr [STRING] [part_value]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q12_shipping/q12_shipping.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q12_shipping/q12_shipping.3.ast
index 087019a..98af71c 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q12_shipping/q12_shipping.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q12_shipping/q12_shipping.3.ast
@@ -10,7 +10,7 @@
(
LiteralExpr [STRING] [high_line_count]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
CASE OperatorExpr [
@@ -58,7 +58,7 @@
(
LiteralExpr [STRING] [low_line_count]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
CASE OperatorExpr [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q13_customer_distribution/q13_customer_distribution.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q13_customer_distribution/q13_customer_distribution.3.ast
index 98f7a37..9e21c8f 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q13_customer_distribution/q13_customer_distribution.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q13_customer_distribution/q13_customer_distribution.3.ast
@@ -26,7 +26,7 @@
(
LiteralExpr [STRING] [c_count]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -67,7 +67,7 @@
(
LiteralExpr [STRING] [o_orderkey_count]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -145,7 +145,7 @@
Let Variable [ Name=$custdist ]
:=
- FunctionCall tpch.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
(
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q14_promotion_effect/q14_promotion_effect.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q14_promotion_effect/q14_promotion_effect.3.ast
index d108e83..f5287e7 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q14_promotion_effect/q14_promotion_effect.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q14_promotion_effect/q14_promotion_effect.3.ast
@@ -4,7 +4,7 @@
OperatorExpr [
LiteralExpr [DOUBLE] [100.0]
*
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
CASE OperatorExpr [
@@ -56,7 +56,7 @@
)
]
/
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q15_top_supplier/q15_top_supplier.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q15_top_supplier/q15_top_supplier.3.ast
index d4c9bb5..8a37ecc 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q15_top_supplier/q15_top_supplier.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q15_top_supplier/q15_top_supplier.3.ast
@@ -11,7 +11,7 @@
(
LiteralExpr [STRING] [total_revenue]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
@@ -82,7 +82,7 @@
Query:
Let Variable [ Name=$m ]
:=
- FunctionCall tpch.max@1[
+ FunctionCall asterix.max@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q16_parts_supplier_relationship/q16_parts_supplier_relationship.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q16_parts_supplier_relationship/q16_parts_supplier_relationship.3.ast
index c6ea4fa..d4ea6a5 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q16_parts_supplier_relationship/q16_parts_supplier_relationship.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q16_parts_supplier_relationship/q16_parts_supplier_relationship.3.ast
@@ -331,7 +331,7 @@
Let Variable [ Name=$supplier_cnt ]
:=
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q17_large_gby_variant/q17_large_gby_variant.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q17_large_gby_variant/q17_large_gby_variant.3.ast
index 11cb25f..f05d5e3 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q17_large_gby_variant/q17_large_gby_variant.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q17_large_gby_variant/q17_large_gby_variant.3.ast
@@ -10,7 +10,7 @@
(
LiteralExpr [STRING] [t_count]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -31,7 +31,7 @@
OperatorExpr [
LiteralExpr [DOUBLE] [0.2]
*
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -60,7 +60,7 @@
(
LiteralExpr [STRING] [t_max_suppkey]
:
- FunctionCall tpch.max@1[
+ FunctionCall asterix.max@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -88,7 +88,7 @@
(
LiteralExpr [STRING] [t_max_linenumber]
:
- FunctionCall tpch.max@1[
+ FunctionCall asterix.max@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -116,7 +116,7 @@
(
LiteralExpr [STRING] [t_avg_extendedprice]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -144,7 +144,7 @@
(
LiteralExpr [STRING] [t_avg_discount]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -172,7 +172,7 @@
(
LiteralExpr [STRING] [t_avg_tax]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -200,7 +200,7 @@
(
LiteralExpr [STRING] [t_max_shipdate]
:
- FunctionCall tpch.max@1[
+ FunctionCall asterix.max@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -228,7 +228,7 @@
(
LiteralExpr [STRING] [t_min_commitdate]
:
- FunctionCall tpch.min@1[
+ FunctionCall asterix.min@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -256,7 +256,7 @@
(
LiteralExpr [STRING] [t_min_receiptdate]
:
- FunctionCall tpch.min@1[
+ FunctionCall asterix.min@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -284,7 +284,7 @@
(
LiteralExpr [STRING] [t_max_comment]
:
- FunctionCall tpch.max@1[
+ FunctionCall asterix.max@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q17_small_quantity_order_revenue/q17_small_quantity_order_revenue.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q17_small_quantity_order_revenue/q17_small_quantity_order_revenue.3.ast
index 8e55967..185529b 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q17_small_quantity_order_revenue/q17_small_quantity_order_revenue.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q17_small_quantity_order_revenue/q17_small_quantity_order_revenue.3.ast
@@ -14,7 +14,7 @@
OperatorExpr [
LiteralExpr [DOUBLE] [0.2]
*
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -56,7 +56,7 @@
Query:
SELECT ELEMENT [
OperatorExpr [
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q18_large_volume_customer/q18_large_volume_customer.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q18_large_volume_customer/q18_large_volume_customer.3.ast
index 6bb9429..adb46b5 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q18_large_volume_customer/q18_large_volume_customer.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q18_large_volume_customer/q18_large_volume_customer.3.ast
@@ -30,7 +30,7 @@
(
LiteralExpr [STRING] [sum_quantity]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -82,7 +82,7 @@
(
LiteralExpr [STRING] [t_sum_quantity]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q19_discounted_revenue/q19_discounted_revenue.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q19_discounted_revenue/q19_discounted_revenue.3.ast
index cc6a71b..8afd86a 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q19_discounted_revenue/q19_discounted_revenue.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q19_discounted_revenue/q19_discounted_revenue.3.ast
@@ -2,7 +2,7 @@
Set import-private-functions=true
Query:
SELECT ELEMENT [
-FunctionCall tpch.sum@1[
+FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q20_potential_part_promotion/q20_potential_part_promotion.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q20_potential_part_promotion/q20_potential_part_promotion.3.ast
index 88f61d2..aa7187e 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q20_potential_part_promotion/q20_potential_part_promotion.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q20_potential_part_promotion/q20_potential_part_promotion.3.ast
@@ -52,7 +52,7 @@
OperatorExpr [
LiteralExpr [DOUBLE] [0.5]
*
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q21_suppliers_who_kept_orders_waiting/q21_suppliers_who_kept_orders_waiting.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q21_suppliers_who_kept_orders_waiting/q21_suppliers_who_kept_orders_waiting.3.ast
index 51bdde2..01b9b14 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q21_suppliers_who_kept_orders_waiting/q21_suppliers_who_kept_orders_waiting.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q21_suppliers_who_kept_orders_waiting/q21_suppliers_who_kept_orders_waiting.3.ast
@@ -11,7 +11,7 @@
(
LiteralExpr [STRING] [count_suppkey]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -38,7 +38,7 @@
(
LiteralExpr [STRING] [max_suppkey]
:
- FunctionCall tpch.max@1[
+ FunctionCall asterix.max@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -123,7 +123,7 @@
(
LiteralExpr [STRING] [count_suppkey]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -150,7 +150,7 @@
(
LiteralExpr [STRING] [max_suppkey]
:
- FunctionCall tpch.max@1[
+ FunctionCall asterix.max@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -481,7 +481,7 @@
Let Variable [ Name=$numwait ]
:=
- FunctionCall tpch.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
(
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q22_global_sales_opportunity/q22_global_sales_opportunity.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q22_global_sales_opportunity/q22_global_sales_opportunity.3.ast
index 1ca3eb5..45790cd 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q22_global_sales_opportunity/q22_global_sales_opportunity.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/q22_global_sales_opportunity/q22_global_sales_opportunity.3.ast
@@ -42,7 +42,7 @@
Query:
Let Variable [ Name=$avg ]
:=
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -76,7 +76,7 @@
(
LiteralExpr [STRING] [numcust]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -94,7 +94,7 @@
(
LiteralExpr [STRING] [totacctbal]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/query-issue601/query-issue601.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/query-issue601/query-issue601.3.ast
index d12032a..3dde59d 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/query-issue601/query-issue601.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/query-issue601/query-issue601.3.ast
@@ -17,7 +17,7 @@
(
LiteralExpr [STRING] [count_order]
:
- FunctionCall tpch.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
(
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/query-issue638/query-issue638.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/query-issue638/query-issue638.3.ast
index 14ed390..177f281 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/query-issue638/query-issue638.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/query-issue638/query-issue638.3.ast
@@ -15,7 +15,7 @@
(
LiteralExpr [STRING] [sum_profit]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/query-issue785-2/query-issue785-2.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/query-issue785-2/query-issue785-2.3.ast
index f4cb736..3681810 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/query-issue785-2/query-issue785-2.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/query-issue785-2/query-issue785-2.3.ast
@@ -129,7 +129,7 @@
Let Variable [ Name=$sum ]
:=
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/query-issue785/query-issue785.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/query-issue785/query-issue785.3.ast
index a3643c5..9d44d8f 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/query-issue785/query-issue785.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/query-issue785/query-issue785.3.ast
@@ -45,7 +45,7 @@
Let Variable [ Name=$sum ]
:=
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -90,7 +90,7 @@
(
LiteralExpr [STRING] [sum_price]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/query-issue786/query-issue786.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/query-issue786/query-issue786.3.ast
index 78d629d..9302eb3 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/query-issue786/query-issue786.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch-sql-like/query-issue786/query-issue786.3.ast
@@ -87,7 +87,7 @@
Let Variable [ Name=$sum ]
:=
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/nest_aggregate/nest_aggregate.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/nest_aggregate/nest_aggregate.3.ast
index f851571..4bc5156 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/nest_aggregate/nest_aggregate.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/nest_aggregate/nest_aggregate.3.ast
@@ -87,7 +87,7 @@
Let Variable [ Name=$sum ]
:=
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q01_pricing_summary_report_nt/q01_pricing_summary_report_nt.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q01_pricing_summary_report_nt/q01_pricing_summary_report_nt.3.ast
index a665305..64b8438 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q01_pricing_summary_report_nt/q01_pricing_summary_report_nt.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q01_pricing_summary_report_nt/q01_pricing_summary_report_nt.3.ast
@@ -16,7 +16,7 @@
(
LiteralExpr [STRING] [sum_qty]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -36,7 +36,7 @@
(
LiteralExpr [STRING] [sum_base_price]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -56,7 +56,7 @@
(
LiteralExpr [STRING] [sum_disc_price]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
@@ -90,7 +90,7 @@
(
LiteralExpr [STRING] [sum_charge]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
@@ -136,7 +136,7 @@
(
LiteralExpr [STRING] [ave_qty]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -156,7 +156,7 @@
(
LiteralExpr [STRING] [ave_price]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -176,7 +176,7 @@
(
LiteralExpr [STRING] [ave_disc]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -196,7 +196,7 @@
(
LiteralExpr [STRING] [count_order]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q02_minimum_cost_supplier/q02_minimum_cost_supplier.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q02_minimum_cost_supplier/q02_minimum_cost_supplier.3.ast
index 63795d3..162701b 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q02_minimum_cost_supplier/q02_minimum_cost_supplier.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q02_minimum_cost_supplier/q02_minimum_cost_supplier.3.ast
@@ -337,7 +337,7 @@
(
LiteralExpr [STRING] [ps_min_supplycost]
:
- FunctionCall tpch.min@1[
+ FunctionCall asterix.min@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q03_shipping_priority_nt/q03_shipping_priority_nt.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q03_shipping_priority_nt/q03_shipping_priority_nt.3.ast
index b99d828..cc34520 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q03_shipping_priority_nt/q03_shipping_priority_nt.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q03_shipping_priority_nt/q03_shipping_priority_nt.3.ast
@@ -124,7 +124,7 @@
Let Variable [ Name=$revenue ]
:=
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q04_order_priority/q04_order_priority.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q04_order_priority/q04_order_priority.3.ast
index 14ee9fc..86148b2 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q04_order_priority/q04_order_priority.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q04_order_priority/q04_order_priority.3.ast
@@ -42,7 +42,7 @@
(
LiteralExpr [STRING] [count]
:
- FunctionCall tpch.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q05_local_supplier_volume/q05_local_supplier_volume.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q05_local_supplier_volume/q05_local_supplier_volume.3.ast
index 61eb892..2672311 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q05_local_supplier_volume/q05_local_supplier_volume.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q05_local_supplier_volume/q05_local_supplier_volume.3.ast
@@ -305,7 +305,7 @@
Let Variable [ Name=$revenue ]
:=
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q06_forecast_revenue_change/q06_forecast_revenue_change.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q06_forecast_revenue_change/q06_forecast_revenue_change.3.ast
index 63304d9..e5f7758 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q06_forecast_revenue_change/q06_forecast_revenue_change.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q06_forecast_revenue_change/q06_forecast_revenue_change.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [revenue]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q06_forecast_revenue_change/q06_forecast_revenue_change.4.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q06_forecast_revenue_change/q06_forecast_revenue_change.4.ast
index e4d15d4..8cad46d 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q06_forecast_revenue_change/q06_forecast_revenue_change.4.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q06_forecast_revenue_change/q06_forecast_revenue_change.4.ast
@@ -1,7 +1,7 @@
DataverseUse tpch
Query:
SELECT [
-FunctionCall tpch.sql-count@1[
+FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q07_volume_shipping/q07_volume_shipping.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q07_volume_shipping/q07_volume_shipping.3.ast
index 27f24e5..940a665 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q07_volume_shipping/q07_volume_shipping.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q07_volume_shipping/q07_volume_shipping.3.ast
@@ -373,7 +373,7 @@
Let Variable [ Name=$revenue ]
:=
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q08_national_market_share/q08_national_market_share.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q08_national_market_share/q08_national_market_share.3.ast
index 6e434b4..e3d1247 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q08_national_market_share/q08_national_market_share.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q08_national_market_share/q08_national_market_share.3.ast
@@ -11,7 +11,7 @@
LiteralExpr [STRING] [mkt_share]
:
OperatorExpr [
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
CASE OperatorExpr [
@@ -53,7 +53,7 @@
)
]
/
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q09_product_type_profit_nt/q09_product_type_profit_nt.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q09_product_type_profit_nt/q09_product_type_profit_nt.3.ast
index 84700db..b2f198a 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q09_product_type_profit_nt/q09_product_type_profit_nt.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q09_product_type_profit_nt/q09_product_type_profit_nt.3.ast
@@ -15,7 +15,7 @@
(
LiteralExpr [STRING] [sum_profit]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q10_returned_item/q10_returned_item.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q10_returned_item/q10_returned_item.3.ast
index 8662a53..2afc675 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q10_returned_item/q10_returned_item.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q10_returned_item/q10_returned_item.3.ast
@@ -335,7 +335,7 @@
Let Variable [ Name=$revenue ]
:=
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q10_returned_item_int64/q10_returned_item_int64.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q10_returned_item_int64/q10_returned_item_int64.3.ast
index 8662a53..2afc675 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q10_returned_item_int64/q10_returned_item_int64.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q10_returned_item_int64/q10_returned_item_int64.3.ast
@@ -335,7 +335,7 @@
Let Variable [ Name=$revenue ]
:=
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q11_important_stock/q11_important_stock.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q11_important_stock/q11_important_stock.3.ast
index a42b74b..5ad8aae 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q11_important_stock/q11_important_stock.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q11_important_stock/q11_important_stock.3.ast
@@ -2,7 +2,7 @@
Query:
Let Variable [ Name=$sum ]
:=
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
@@ -105,7 +105,7 @@
(
LiteralExpr [STRING] [part_value]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q12_shipping/q12_shipping.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q12_shipping/q12_shipping.3.ast
index 1a5c510..3a0bf9e 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q12_shipping/q12_shipping.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q12_shipping/q12_shipping.3.ast
@@ -10,7 +10,7 @@
(
LiteralExpr [STRING] [high_line_count]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
CASE OperatorExpr [
@@ -63,7 +63,7 @@
(
LiteralExpr [STRING] [low_line_count]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
CASE LiteralExpr [TRUE]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q13_customer_distribution/q13_customer_distribution.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q13_customer_distribution/q13_customer_distribution.3.ast
index 98f7a37..9e21c8f 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q13_customer_distribution/q13_customer_distribution.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q13_customer_distribution/q13_customer_distribution.3.ast
@@ -26,7 +26,7 @@
(
LiteralExpr [STRING] [c_count]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -67,7 +67,7 @@
(
LiteralExpr [STRING] [o_orderkey_count]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -145,7 +145,7 @@
Let Variable [ Name=$custdist ]
:=
- FunctionCall tpch.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
(
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q14_promotion_effect/q14_promotion_effect.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q14_promotion_effect/q14_promotion_effect.3.ast
index d108e83..f5287e7 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q14_promotion_effect/q14_promotion_effect.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q14_promotion_effect/q14_promotion_effect.3.ast
@@ -4,7 +4,7 @@
OperatorExpr [
LiteralExpr [DOUBLE] [100.0]
*
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
CASE OperatorExpr [
@@ -56,7 +56,7 @@
)
]
/
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q15_top_supplier/q15_top_supplier.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q15_top_supplier/q15_top_supplier.3.ast
index d4c9bb5..8a37ecc 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q15_top_supplier/q15_top_supplier.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q15_top_supplier/q15_top_supplier.3.ast
@@ -11,7 +11,7 @@
(
LiteralExpr [STRING] [total_revenue]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
@@ -82,7 +82,7 @@
Query:
Let Variable [ Name=$m ]
:=
- FunctionCall tpch.max@1[
+ FunctionCall asterix.max@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q16_parts_supplier_relationship/q16_parts_supplier_relationship.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q16_parts_supplier_relationship/q16_parts_supplier_relationship.3.ast
index c6ea4fa..d4ea6a5 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q16_parts_supplier_relationship/q16_parts_supplier_relationship.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q16_parts_supplier_relationship/q16_parts_supplier_relationship.3.ast
@@ -331,7 +331,7 @@
Let Variable [ Name=$supplier_cnt ]
:=
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q17_large_gby_variant/q17_large_gby_variant.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q17_large_gby_variant/q17_large_gby_variant.3.ast
index 11cb25f..f05d5e3 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q17_large_gby_variant/q17_large_gby_variant.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q17_large_gby_variant/q17_large_gby_variant.3.ast
@@ -10,7 +10,7 @@
(
LiteralExpr [STRING] [t_count]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -31,7 +31,7 @@
OperatorExpr [
LiteralExpr [DOUBLE] [0.2]
*
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -60,7 +60,7 @@
(
LiteralExpr [STRING] [t_max_suppkey]
:
- FunctionCall tpch.max@1[
+ FunctionCall asterix.max@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -88,7 +88,7 @@
(
LiteralExpr [STRING] [t_max_linenumber]
:
- FunctionCall tpch.max@1[
+ FunctionCall asterix.max@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -116,7 +116,7 @@
(
LiteralExpr [STRING] [t_avg_extendedprice]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -144,7 +144,7 @@
(
LiteralExpr [STRING] [t_avg_discount]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -172,7 +172,7 @@
(
LiteralExpr [STRING] [t_avg_tax]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -200,7 +200,7 @@
(
LiteralExpr [STRING] [t_max_shipdate]
:
- FunctionCall tpch.max@1[
+ FunctionCall asterix.max@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -228,7 +228,7 @@
(
LiteralExpr [STRING] [t_min_commitdate]
:
- FunctionCall tpch.min@1[
+ FunctionCall asterix.min@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -256,7 +256,7 @@
(
LiteralExpr [STRING] [t_min_receiptdate]
:
- FunctionCall tpch.min@1[
+ FunctionCall asterix.min@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -284,7 +284,7 @@
(
LiteralExpr [STRING] [t_max_comment]
:
- FunctionCall tpch.max@1[
+ FunctionCall asterix.max@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q18_large_volume_customer/q18_large_volume_customer.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q18_large_volume_customer/q18_large_volume_customer.3.ast
index 6bb9429..adb46b5 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q18_large_volume_customer/q18_large_volume_customer.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q18_large_volume_customer/q18_large_volume_customer.3.ast
@@ -30,7 +30,7 @@
(
LiteralExpr [STRING] [sum_quantity]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -82,7 +82,7 @@
(
LiteralExpr [STRING] [t_sum_quantity]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q19_discounted_revenue/q19_discounted_revenue.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q19_discounted_revenue/q19_discounted_revenue.3.ast
index cc6a71b..8afd86a 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q19_discounted_revenue/q19_discounted_revenue.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q19_discounted_revenue/q19_discounted_revenue.3.ast
@@ -2,7 +2,7 @@
Set import-private-functions=true
Query:
SELECT ELEMENT [
-FunctionCall tpch.sum@1[
+FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q20_potential_part_promotion/q20_potential_part_promotion.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q20_potential_part_promotion/q20_potential_part_promotion.3.ast
index 88f61d2..aa7187e 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q20_potential_part_promotion/q20_potential_part_promotion.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q20_potential_part_promotion/q20_potential_part_promotion.3.ast
@@ -52,7 +52,7 @@
OperatorExpr [
LiteralExpr [DOUBLE] [0.5]
*
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q21_suppliers_who_kept_orders_waiting/q21_suppliers_who_kept_orders_waiting.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q21_suppliers_who_kept_orders_waiting/q21_suppliers_who_kept_orders_waiting.3.ast
index 51bdde2..01b9b14 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q21_suppliers_who_kept_orders_waiting/q21_suppliers_who_kept_orders_waiting.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q21_suppliers_who_kept_orders_waiting/q21_suppliers_who_kept_orders_waiting.3.ast
@@ -11,7 +11,7 @@
(
LiteralExpr [STRING] [count_suppkey]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -38,7 +38,7 @@
(
LiteralExpr [STRING] [max_suppkey]
:
- FunctionCall tpch.max@1[
+ FunctionCall asterix.max@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -123,7 +123,7 @@
(
LiteralExpr [STRING] [count_suppkey]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -150,7 +150,7 @@
(
LiteralExpr [STRING] [max_suppkey]
:
- FunctionCall tpch.max@1[
+ FunctionCall asterix.max@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -481,7 +481,7 @@
Let Variable [ Name=$numwait ]
:=
- FunctionCall tpch.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
(
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q22_global_sales_opportunity/q22_global_sales_opportunity.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q22_global_sales_opportunity/q22_global_sales_opportunity.3.ast
index 1ca3eb5..45790cd 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q22_global_sales_opportunity/q22_global_sales_opportunity.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/q22_global_sales_opportunity/q22_global_sales_opportunity.3.ast
@@ -42,7 +42,7 @@
Query:
Let Variable [ Name=$avg ]
:=
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -76,7 +76,7 @@
(
LiteralExpr [STRING] [numcust]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FunctionCall Metadata.resolve@-1[
@@ -94,7 +94,7 @@
(
LiteralExpr [STRING] [totacctbal]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue562/query-issue562.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue562/query-issue562.3.ast
index a77edfe..45c344d 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue562/query-issue562.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue562/query-issue562.3.ast
@@ -89,7 +89,7 @@
Query:
Let Variable [ Name=$avg ]
:=
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -179,7 +179,7 @@
(
LiteralExpr [STRING] [numcust]
:
- FunctionCall tpch.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -196,7 +196,7 @@
(
LiteralExpr [STRING] [totacctbal]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -229,7 +229,7 @@
]
Where
OperatorExpr [
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
Variable [ Name=$o ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue601/query-issue601.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue601/query-issue601.3.ast
index d12032a..3dde59d 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue601/query-issue601.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue601/query-issue601.3.ast
@@ -17,7 +17,7 @@
(
LiteralExpr [STRING] [count_order]
:
- FunctionCall tpch.sql-count@1[
+ FunctionCall asterix.sql-count@1[
(
SELECT ELEMENT [
(
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue638/query-issue638.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue638/query-issue638.3.ast
index 14ed390..177f281 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue638/query-issue638.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue638/query-issue638.3.ast
@@ -15,7 +15,7 @@
(
LiteralExpr [STRING] [sum_profit]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue785-2/query-issue785-2.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue785-2/query-issue785-2.3.ast
index f4cb736..3681810 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue785-2/query-issue785-2.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue785-2/query-issue785-2.3.ast
@@ -129,7 +129,7 @@
Let Variable [ Name=$sum ]
:=
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue785/query-issue785.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue785/query-issue785.3.ast
index a3643c5..9d44d8f 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue785/query-issue785.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue785/query-issue785.3.ast
@@ -45,7 +45,7 @@
Let Variable [ Name=$sum ]
:=
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -90,7 +90,7 @@
(
LiteralExpr [STRING] [sum_price]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue786/query-issue786.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue786/query-issue786.3.ast
index 78d629d..9302eb3 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue786/query-issue786.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue786/query-issue786.3.ast
@@ -87,7 +87,7 @@
Let Variable [ Name=$sum ]
:=
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue810-2/query-issue810-2.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue810-2/query-issue810-2.3.ast
index ab45142..4f8a868 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue810-2/query-issue810-2.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue810-2/query-issue810-2.3.ast
@@ -15,14 +15,14 @@
(
LiteralExpr [STRING] [count_cheaps]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
Variable [ Name=$cheaps ]
]
)
(
LiteralExpr [STRING] [total_charges]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
Variable [ Name=$charges ]
]
)
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue810-3/query-issue810-3.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue810-3/query-issue810-3.3.ast
index 0fe8f7e..bc03eae 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue810-3/query-issue810-3.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue810-3/query-issue810-3.3.ast
@@ -15,28 +15,28 @@
(
LiteralExpr [STRING] [count_cheaps]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
Variable [ Name=$cheaps ]
]
)
(
LiteralExpr [STRING] [avg_expensive_discounts]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
Variable [ Name=$expensives ]
]
)
(
LiteralExpr [STRING] [sum_disc_prices]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
Variable [ Name=$disc_prices ]
]
)
(
LiteralExpr [STRING] [total_charges]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
Variable [ Name=$charges ]
]
)
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue810/query-issue810.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue810/query-issue810.3.ast
index 6787c4f..6a25433 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue810/query-issue810.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue810/query-issue810.3.ast
@@ -15,14 +15,14 @@
(
LiteralExpr [STRING] [count_cheaps]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
Variable [ Name=$cheap ]
]
)
(
LiteralExpr [STRING] [count_expensives]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
Variable [ Name=$expensive ]
]
)
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue827-2/query-issue827-2.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue827-2/query-issue827-2.3.ast
index a11b5e2..13647f7 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue827-2/query-issue827-2.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue827-2/query-issue827-2.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [sum_qty_partial]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -32,7 +32,7 @@
(
LiteralExpr [STRING] [sum_base_price]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -51,7 +51,7 @@
(
LiteralExpr [STRING] [sum_disc_price]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
@@ -81,7 +81,7 @@
(
LiteralExpr [STRING] [sum_charge]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
OperatorExpr [
@@ -120,7 +120,7 @@
(
LiteralExpr [STRING] [ave_qty]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -148,7 +148,7 @@
(
LiteralExpr [STRING] [ave_price]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -167,7 +167,7 @@
(
LiteralExpr [STRING] [ave_disc]
:
- FunctionCall tpch.avg@1[
+ FunctionCall asterix.avg@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -186,7 +186,7 @@
(
LiteralExpr [STRING] [count_order]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
Variable [ Name=$l ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue827/query-issue827.3.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue827/query-issue827.3.ast
index 7ebf5f7..c970c9f 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue827/query-issue827.3.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/tpch/query-issue827/query-issue827.3.ast
@@ -4,7 +4,7 @@
(
LiteralExpr [STRING] [count_cheaps]
:
- FunctionCall tpch.count@1[
+ FunctionCall asterix.count@1[
(
SELECT ELEMENT [
FieldAccessor [
@@ -23,7 +23,7 @@
(
LiteralExpr [STRING] [count_expensives]
:
- FunctionCall tpch.sum@1[
+ FunctionCall asterix.sum@1[
(
SELECT ELEMENT [
Variable [ Name=$e ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/user-defined-functions/query-issue489/query-issue489.2.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/user-defined-functions/query-issue489/query-issue489.2.ast
index 4826f57..d5b9c31 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/user-defined-functions/query-issue489/query-issue489.2.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/user-defined-functions/query-issue489/query-issue489.2.ast
@@ -1,6 +1,6 @@
Query:
SELECT ELEMENT [
-FunctionCall null.count@1[
+FunctionCall asterix.count@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/user-defined-functions/query-issue489/query-issue489.4.ast b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/user-defined-functions/query-issue489/query-issue489.4.ast
index 4826f57..d5b9c31 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/user-defined-functions/query-issue489/query-issue489.4.ast
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results_parser_sqlpp/user-defined-functions/query-issue489/query-issue489.4.ast
@@ -1,6 +1,6 @@
Query:
SELECT ELEMENT [
-FunctionCall null.count@1[
+FunctionCall asterix.count@1[
(
SELECT ELEMENT [
Variable [ Name=$x ]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/testsuite_sqlpp.xml b/asterixdb/asterix-app/src/test/resources/runtimets/testsuite_sqlpp.xml
index 16d4cb3..920f0f0 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/testsuite_sqlpp.xml
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/testsuite_sqlpp.xml
@@ -295,6 +295,11 @@
</compilation-unit>
</test-case>
<test-case FilePath="aggregate">
+ <compilation-unit name="avg_distinct">
+ <output-dir compare="Text">avg_distinct</output-dir>
+ </compilation-unit>
+ </test-case>
+ <test-case FilePath="aggregate">
<compilation-unit name="count_01">
<output-dir compare="Text">count_01</output-dir>
</compilation-unit>
@@ -314,6 +319,11 @@
<output-dir compare="Text">count_null</output-dir>
</compilation-unit>
</test-case>
+ <test-case FilePath="aggregate">
+ <compilation-unit name="count_distinct">
+ <output-dir compare="Text">count_distinct</output-dir>
+ </compilation-unit>
+ </test-case>
<!--
<test-case FilePath="aggregate">
<compilation-unit name="droptype">
@@ -406,6 +416,11 @@
</compilation-unit>
</test-case>
<test-case FilePath="aggregate">
+ <compilation-unit name="max_distinct">
+ <output-dir compare="Text">max_distinct</output-dir>
+ </compilation-unit>
+ </test-case>
+ <test-case FilePath="aggregate">
<compilation-unit name="min_empty_01">
<output-dir compare="Text">min_empty_01</output-dir>
</compilation-unit>
@@ -416,6 +431,11 @@
</compilation-unit>
</test-case>
<test-case FilePath="aggregate">
+ <compilation-unit name="min_distinct">
+ <output-dir compare="Text">min_distinct</output-dir>
+ </compilation-unit>
+ </test-case>
+ <test-case FilePath="aggregate">
<compilation-unit name="scalar_avg">
<output-dir compare="Text">scalar_avg</output-dir>
</compilation-unit>
@@ -570,6 +590,11 @@
<output-dir compare="Text">sum_numeric_null</output-dir>
</compilation-unit>
</test-case>
+ <test-case FilePath="aggregate">
+ <compilation-unit name="sum_distinct">
+ <output-dir compare="Text">sum_distinct</output-dir>
+ </compilation-unit>
+ </test-case>
</test-group>
<test-group name="aggregate-sql">
<test-case FilePath="aggregate-sql">
@@ -731,6 +756,11 @@
</compilation-unit>
</test-case>
<test-case FilePath="aggregate-sql">
+ <compilation-unit name="avg_distinct">
+ <output-dir compare="Text">avg_distinct</output-dir>
+ </compilation-unit>
+ </test-case>
+ <test-case FilePath="aggregate-sql">
<compilation-unit name="count_01">
<output-dir compare="Text">count_01</output-dir>
</compilation-unit>
@@ -751,6 +781,11 @@
</compilation-unit>
</test-case>
<test-case FilePath="aggregate-sql">
+ <compilation-unit name="count_distinct">
+ <output-dir compare="Text">count_distinct</output-dir>
+ </compilation-unit>
+ </test-case>
+ <test-case FilePath="aggregate-sql">
<compilation-unit name="max_empty_01">
<output-dir compare="Text">max_empty_01</output-dir>
</compilation-unit>
@@ -761,6 +796,11 @@
</compilation-unit>
</test-case>
<test-case FilePath="aggregate-sql">
+ <compilation-unit name="max_distinct">
+ <output-dir compare="Text">max_distinct</output-dir>
+ </compilation-unit>
+ </test-case>
+ <test-case FilePath="aggregate-sql">
<compilation-unit name="min_empty_01">
<output-dir compare="Text">min_empty_01</output-dir>
</compilation-unit>
@@ -771,6 +811,11 @@
</compilation-unit>
</test-case>
<test-case FilePath="aggregate-sql">
+ <compilation-unit name="min_distinct">
+ <output-dir compare="Text">min_distinct</output-dir>
+ </compilation-unit>
+ </test-case>
+ <test-case FilePath="aggregate-sql">
<compilation-unit name="scalar_avg">
<output-dir compare="Text">scalar_avg</output-dir>
</compilation-unit>
@@ -925,6 +970,11 @@
<output-dir compare="Text">sum_numeric_null</output-dir>
</compilation-unit>
</test-case>
+ <test-case FilePath="aggregate-sql">
+ <compilation-unit name="sum_distinct">
+ <output-dir compare="Text">sum_distinct</output-dir>
+ </compilation-unit>
+ </test-case>
</test-group>
<test-group name="boolean">
<test-case FilePath="boolean">
@@ -2832,6 +2882,11 @@
</compilation-unit>
</test-case>
<test-case FilePath="group-by">
+ <compilation-unit name="sugar-06-distinct">
+ <output-dir compare="Text">sugar-06-distinct</output-dir>
+ </compilation-unit>
+ </test-case>
+ <test-case FilePath="group-by">
<compilation-unit name="null">
<output-dir compare="Text">null</output-dir>
</compilation-unit>
diff --git a/asterixdb/asterix-lang-sqlpp/src/main/java/org/apache/asterix/lang/sqlpp/rewrites/SqlppQueryRewriter.java b/asterixdb/asterix-lang-sqlpp/src/main/java/org/apache/asterix/lang/sqlpp/rewrites/SqlppQueryRewriter.java
index fb5a6fb..60ccea6 100644
--- a/asterixdb/asterix-lang-sqlpp/src/main/java/org/apache/asterix/lang/sqlpp/rewrites/SqlppQueryRewriter.java
+++ b/asterixdb/asterix-lang-sqlpp/src/main/java/org/apache/asterix/lang/sqlpp/rewrites/SqlppQueryRewriter.java
@@ -56,6 +56,7 @@
import org.apache.asterix.lang.sqlpp.rewrites.visitor.OperatorExpressionVisitor;
import org.apache.asterix.lang.sqlpp.rewrites.visitor.SetOperationVisitor;
import org.apache.asterix.lang.sqlpp.rewrites.visitor.SqlppBuiltinFunctionRewriteVisitor;
+import org.apache.asterix.lang.sqlpp.rewrites.visitor.SqlppDistinctAggregationSugarVisitor;
import org.apache.asterix.lang.sqlpp.rewrites.visitor.SqlppGlobalAggregationSugarVisitor;
import org.apache.asterix.lang.sqlpp.rewrites.visitor.SqlppGroupByVisitor;
import org.apache.asterix.lang.sqlpp.rewrites.visitor.SqlppInlineUdfsVisitor;
@@ -135,6 +136,9 @@
// names could be case sensitive.
rewriteFunctionNames();
+ // Rewrites distinct aggregates into regular aggregates
+ rewriteDistinctAggregations();
+
// Resets the variable counter to the previous marked value.
// Therefore, the variable ids in the final query plans will not be perturbed
// by the additon or removal of intermediate AST rewrites.
@@ -152,6 +156,12 @@
topExpr.accept(globalAggregationVisitor, null);
}
+ protected void rewriteDistinctAggregations() throws CompilationException {
+ SqlppDistinctAggregationSugarVisitor distinctAggregationVisitor =
+ new SqlppDistinctAggregationSugarVisitor(context);
+ topExpr.accept(distinctAggregationVisitor, null);
+ }
+
protected void rewriteListInputFunctions() throws CompilationException {
SqlppListInputFunctionRewriteVisitor listInputFunctionVisitor = new SqlppListInputFunctionRewriteVisitor();
topExpr.accept(listInputFunctionVisitor, null);
diff --git a/asterixdb/asterix-lang-sqlpp/src/main/java/org/apache/asterix/lang/sqlpp/rewrites/visitor/SqlppDistinctAggregationSugarVisitor.java b/asterixdb/asterix-lang-sqlpp/src/main/java/org/apache/asterix/lang/sqlpp/rewrites/visitor/SqlppDistinctAggregationSugarVisitor.java
new file mode 100644
index 0000000..e9b8334
--- /dev/null
+++ b/asterixdb/asterix-lang-sqlpp/src/main/java/org/apache/asterix/lang/sqlpp/rewrites/visitor/SqlppDistinctAggregationSugarVisitor.java
@@ -0,0 +1,96 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.asterix.lang.sqlpp.rewrites.visitor;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.asterix.common.exceptions.CompilationException;
+import org.apache.asterix.common.functions.FunctionSignature;
+import org.apache.asterix.lang.common.base.Expression;
+import org.apache.asterix.lang.common.base.ILangExpression;
+import org.apache.asterix.lang.common.expression.CallExpr;
+import org.apache.asterix.lang.common.expression.VariableExpr;
+import org.apache.asterix.lang.common.rewrites.LangRewritingContext;
+import org.apache.asterix.lang.common.util.FunctionUtil;
+import org.apache.asterix.lang.sqlpp.clause.FromClause;
+import org.apache.asterix.lang.sqlpp.clause.FromTerm;
+import org.apache.asterix.lang.sqlpp.clause.SelectBlock;
+import org.apache.asterix.lang.sqlpp.clause.SelectClause;
+import org.apache.asterix.lang.sqlpp.clause.SelectElement;
+import org.apache.asterix.lang.sqlpp.clause.SelectSetOperation;
+import org.apache.asterix.lang.sqlpp.expression.SelectExpression;
+import org.apache.asterix.lang.sqlpp.struct.SetOperationInput;
+import org.apache.asterix.lang.sqlpp.visitor.base.AbstractSqlppExpressionScopingVisitor;
+import org.apache.asterix.om.functions.BuiltinFunctions;
+import org.apache.hyracks.algebricks.core.algebra.functions.FunctionIdentifier;
+import org.apache.hyracks.algebricks.core.algebra.functions.IFunctionInfo;
+
+/**
+ * An AST pre-processor to rewrite distinct aggregates into regular aggregates as follows: <br/>
+ * {@code agg-distinct(expr) -> agg((FROM expr AS i SELECT DISTINCT VALUE i))} <br/>
+ * where {@code agg-distinct} is a distinct aggregate function, {@code agg} - a regular aggregate function
+ */
+public class SqlppDistinctAggregationSugarVisitor extends AbstractSqlppExpressionScopingVisitor {
+ public SqlppDistinctAggregationSugarVisitor(LangRewritingContext context) {
+ super(context);
+ }
+
+ @Override
+ public Expression visit(CallExpr callExpr, ILangExpression arg) throws CompilationException {
+ FunctionSignature signature = callExpr.getFunctionSignature();
+ IFunctionInfo finfo = FunctionUtil.getFunctionInfo(signature);
+ FunctionIdentifier aggFn =
+ finfo != null ? BuiltinFunctions.getAggregateFunction(finfo.getFunctionIdentifier()) : null;
+ FunctionIdentifier newAggFn = aggFn != null ? BuiltinFunctions.getAggregateFunctionForDistinct(aggFn) : null;
+ if (newAggFn == null) {
+ return super.visit(callExpr, arg);
+ }
+ List<Expression> exprList = callExpr.getExprList();
+ List<Expression> newExprList = new ArrayList<>(exprList.size());
+ for (Expression expr : exprList) {
+ Expression newExpr = rewriteArgument(expr);
+ newExprList.add(newExpr.accept(this, arg));
+ }
+ callExpr.setFunctionSignature(
+ new FunctionSignature(newAggFn.getNamespace(), newAggFn.getName(), newAggFn.getArity()));
+ callExpr.setExprList(newExprList);
+ return callExpr;
+ }
+
+ /**
+ * rewrites {@code expr -> FROM expr AS i SELECT DISTINCT VALUE i}
+ */
+ private Expression rewriteArgument(Expression argExpr) throws CompilationException {
+ // From clause
+ VariableExpr fromBindingVar = new VariableExpr(context.newVariable());
+ FromTerm fromTerm = new FromTerm(argExpr, fromBindingVar, null, null);
+ FromClause fromClause = new FromClause(Collections.singletonList(fromTerm));
+
+ // Select clause.
+ SelectClause selectClause = new SelectClause(new SelectElement(fromBindingVar), null, true);
+
+ // Construct the select expression.
+ SelectBlock selectBlock = new SelectBlock(selectClause, fromClause, null, null, null, null, null);
+ SelectSetOperation selectSetOperation = new SelectSetOperation(new SetOperationInput(selectBlock, null), null);
+ return new SelectExpression(null, selectSetOperation, null, null, true);
+ }
+}
diff --git a/asterixdb/asterix-lang-sqlpp/src/main/java/org/apache/asterix/lang/sqlpp/rewrites/visitor/SqlppGroupBySugarVisitor.java b/asterixdb/asterix-lang-sqlpp/src/main/java/org/apache/asterix/lang/sqlpp/rewrites/visitor/SqlppGroupBySugarVisitor.java
index 6346994..b7604ab 100644
--- a/asterixdb/asterix-lang-sqlpp/src/main/java/org/apache/asterix/lang/sqlpp/rewrites/visitor/SqlppGroupBySugarVisitor.java
+++ b/asterixdb/asterix-lang-sqlpp/src/main/java/org/apache/asterix/lang/sqlpp/rewrites/visitor/SqlppGroupBySugarVisitor.java
@@ -72,10 +72,10 @@
// GROUP AS eis(e AS e, i AS i, s AS s)
// SELECT ELEMENT {
// 'deptId': deptId,
-// 'star_cost': coll_sum( (FROM eis AS p SELECT ELEMENT p.e.salary + p.i.bonus) )
+// 'star_cost': array_sum( (FROM eis AS p SELECT ELEMENT p.e.salary + p.i.bonus) )
// };
//
-// where SUM(e.salary + i.bonus) is turned into coll_sum( (FROM eis AS p SELECT ELEMENT p.e.salary + p.i.bonus) ).
+// where SUM(e.salary + i.bonus) is turned into array_sum( (FROM eis AS p SELECT ELEMENT p.e.salary + p.i.bonus) ).
public class SqlppGroupBySugarVisitor extends AbstractSqlppExpressionScopingVisitor {
@@ -102,7 +102,7 @@
}
if (rewritten) {
// Rewrites the SQL-92 function name to core functions,
- // e.g., SUM --> coll_sum
+ // e.g., SUM --> array_sum
callExpr.setFunctionSignature(FunctionMapUtil.sql92ToCoreAggregateFunction(signature));
}
callExpr.setExprList(newExprList);
diff --git a/asterixdb/asterix-lang-sqlpp/src/main/java/org/apache/asterix/lang/sqlpp/rewrites/visitor/SqlppGroupByVisitor.java b/asterixdb/asterix-lang-sqlpp/src/main/java/org/apache/asterix/lang/sqlpp/rewrites/visitor/SqlppGroupByVisitor.java
index 7f2e6c9..dfe371e 100644
--- a/asterixdb/asterix-lang-sqlpp/src/main/java/org/apache/asterix/lang/sqlpp/rewrites/visitor/SqlppGroupByVisitor.java
+++ b/asterixdb/asterix-lang-sqlpp/src/main/java/org/apache/asterix/lang/sqlpp/rewrites/visitor/SqlppGroupByVisitor.java
@@ -72,7 +72,7 @@
// GROUP AS eis(e AS e, i AS i, s AS s)
// SELECT ELEMENT {
// 'deptId': deptId,
-// 'star_cost': coll_sum( (FROM eis AS p SELECT ELEMENT p.e.salary + p.i.bonus) )
+// 'star_cost': array_sum( (FROM eis AS p SELECT ELEMENT p.e.salary + p.i.bonus) )
// };
/**
* The transformation include three things:
@@ -81,7 +81,7 @@
* expression is not a subquery;
* 3. Turn a SQL-92 aggregate function into a SQL++ core aggregate function when performing 2, e.g.,
* SUM(e.salary + i.bonus) becomes
- * coll_sum( (FROM eis AS p SELECT ELEMENT p.e.salary + p.i.bonus) ).
+ * array_sum( (FROM eis AS p SELECT ELEMENT p.e.salary + p.i.bonus) ).
*/
public class SqlppGroupByVisitor extends AbstractSqlppExpressionScopingVisitor {
diff --git a/asterixdb/asterix-lang-sqlpp/src/main/java/org/apache/asterix/lang/sqlpp/util/FunctionMapUtil.java b/asterixdb/asterix-lang-sqlpp/src/main/java/org/apache/asterix/lang/sqlpp/util/FunctionMapUtil.java
index 8f04980..8a8465d 100644
--- a/asterixdb/asterix-lang-sqlpp/src/main/java/org/apache/asterix/lang/sqlpp/util/FunctionMapUtil.java
+++ b/asterixdb/asterix-lang-sqlpp/src/main/java/org/apache/asterix/lang/sqlpp/util/FunctionMapUtil.java
@@ -104,7 +104,7 @@
if (!isSql92AggregateFunction(fs)) {
return fs;
}
- return new FunctionSignature(fs.getNamespace(), CORE_SQL_AGGREGATE_PREFIX + fs.getName(),
+ return new FunctionSignature(FunctionConstants.ASTERIX_NS, CORE_SQL_AGGREGATE_PREFIX + fs.getName(),
fs.getArity());
}
@@ -161,7 +161,7 @@
boolean coreAgg = name.startsWith(CORE_AGGREGATE_PREFIX);
String lowerCaseName = coreAgg ? name.substring(CORE_AGGREGATE_PREFIX.length())
: (INTERNAL_SQL_AGGREGATE_PREFIX + name.substring(CORE_SQL_AGGREGATE_PREFIX.length()));
- return new FunctionSignature(fs.getNamespace(), lowerCaseName, fs.getArity());
+ return new FunctionSignature(FunctionConstants.ASTERIX_NS, lowerCaseName, fs.getArity());
}
}
diff --git a/asterixdb/asterix-lang-sqlpp/src/main/javacc/SQLPP.jj b/asterixdb/asterix-lang-sqlpp/src/main/javacc/SQLPP.jj
index b76adb8..68c1cba 100644
--- a/asterixdb/asterix-lang-sqlpp/src/main/javacc/SQLPP.jj
+++ b/asterixdb/asterix-lang-sqlpp/src/main/javacc/SQLPP.jj
@@ -2484,13 +2484,16 @@
FunctionName funcName = null;
String hint = null;
boolean star = false;
+ boolean distinct = false;
}
{
funcName = FunctionName()
{
hint = funcName.hint;
}
- <LEFTPAREN> ( ( tmp = Expression() | <MUL> { star = true; } )
+ <LEFTPAREN> (
+ ( <DISTINCT> { distinct = true; } )?
+ ( tmp = Expression() | <MUL> { star = true; } )
{
if(star){
if(!funcName.function.toLowerCase().equals("count")){
@@ -2509,8 +2512,12 @@
}
)*)? <RIGHTPAREN>
{
+ String name = funcName.function;
+ if (distinct) {
+ name += "-distinct";
+ }
// TODO use funcName.library
- String fqFunctionName = funcName.library == null ? funcName.function : funcName.library + "#" + funcName.function;
+ String fqFunctionName = funcName.library == null ? name : funcName.library + "#" + name;
FunctionSignature signature
= lookupFunctionSignature(funcName.dataverse, fqFunctionName, arity);
if (signature == null) {
diff --git a/asterixdb/asterix-om/src/main/java/org/apache/asterix/om/functions/AbstractFunctionDescriptor.java b/asterixdb/asterix-om/src/main/java/org/apache/asterix/om/functions/AbstractFunctionDescriptor.java
index c070719..35440e4 100644
--- a/asterixdb/asterix-om/src/main/java/org/apache/asterix/om/functions/AbstractFunctionDescriptor.java
+++ b/asterixdb/asterix-om/src/main/java/org/apache/asterix/om/functions/AbstractFunctionDescriptor.java
@@ -40,31 +40,31 @@
@Override
public IScalarEvaluatorFactory createEvaluatorFactory(IScalarEvaluatorFactory[] args) throws AlgebricksException {
- throw new NotImplementedException("Not Implemented");
+ throw new NotImplementedException("Not Implemented: " + getIdentifier());
}
@Override
public IRunningAggregateEvaluatorFactory createRunningAggregateEvaluatorFactory(IScalarEvaluatorFactory[] args)
throws AlgebricksException {
- throw new NotImplementedException("Not Implemented");
+ throw new NotImplementedException("Not Implemented: " + getIdentifier());
}
@Override
public ISerializedAggregateEvaluatorFactory createSerializableAggregateEvaluatorFactory(
IScalarEvaluatorFactory[] args) throws AlgebricksException {
- throw new NotImplementedException("Not Implemented");
+ throw new NotImplementedException("Not Implemented: " + getIdentifier());
}
@Override
public IUnnestingEvaluatorFactory createUnnestingEvaluatorFactory(IScalarEvaluatorFactory[] args)
throws AlgebricksException {
- throw new NotImplementedException("Not Implemented");
+ throw new NotImplementedException("Not Implemented: " + getIdentifier());
}
@Override
public IAggregateEvaluatorFactory createAggregateEvaluatorFactory(IScalarEvaluatorFactory[] args)
throws AlgebricksException {
- throw new NotImplementedException("Not Implemented");
+ throw new NotImplementedException("Not Implemented: " + getIdentifier());
}
}
diff --git a/asterixdb/asterix-om/src/main/java/org/apache/asterix/om/functions/BuiltinFunctions.java b/asterixdb/asterix-om/src/main/java/org/apache/asterix/om/functions/BuiltinFunctions.java
index 695483b..863847b 100644
--- a/asterixdb/asterix-om/src/main/java/org/apache/asterix/om/functions/BuiltinFunctions.java
+++ b/asterixdb/asterix-om/src/main/java/org/apache/asterix/om/functions/BuiltinFunctions.java
@@ -143,6 +143,9 @@
private static final Map<IFunctionInfo, IFunctionInfo> aggregateToSerializableAggregate = new HashMap<>();
private static final Map<IFunctionInfo, Boolean> builtinUnnestingFunctions = new HashMap<>();
private static final Map<IFunctionInfo, IFunctionInfo> scalarToAggregateFunctionMap = new HashMap<>();
+ private static final Map<IFunctionInfo, IFunctionInfo> distinctToRegularScalarAggregateFunctionMap =
+ new HashMap<>();
+
private static final Map<IFunctionInfo, SpatialFilterKind> spatialFilterFunctions = new HashMap<>();
public static final FunctionIdentifier TYPE_OF = new FunctionIdentifier(FunctionConstants.ASTERIX_NS, "type-of", 1);
@@ -398,6 +401,29 @@
public static final FunctionIdentifier SERIAL_INTERMEDIATE_AVG = new FunctionIdentifier(
FunctionConstants.ASTERIX_NS, "intermediate-avg-serial", 1);
+ // distinct aggregate functions
+
+ public static final FunctionIdentifier COUNT_DISTINCT = new FunctionIdentifier(FunctionConstants.ASTERIX_NS,
+ "agg-count-distinct", 1);
+ public static final FunctionIdentifier SCALAR_COUNT_DISTINCT = new FunctionIdentifier(FunctionConstants.ASTERIX_NS,
+ "count-distinct", 1);
+ public static final FunctionIdentifier SUM_DISTINCT = new FunctionIdentifier(FunctionConstants.ASTERIX_NS,
+ "agg-sum-distinct", 1);
+ public static final FunctionIdentifier SCALAR_SUM_DISTINCT = new FunctionIdentifier(FunctionConstants.ASTERIX_NS,
+ "sum-distinct", 1);
+ public static final FunctionIdentifier AVG_DISTINCT = new FunctionIdentifier(FunctionConstants.ASTERIX_NS,
+ "agg-avg-distinct", 1);
+ public static final FunctionIdentifier SCALAR_AVG_DISTINCT = new FunctionIdentifier(FunctionConstants.ASTERIX_NS,
+ "avg-distinct", 1);
+ public static final FunctionIdentifier MAX_DISTINCT = new FunctionIdentifier(FunctionConstants.ASTERIX_NS,
+ "agg-max-distinct", 1);
+ public static final FunctionIdentifier SCALAR_MAX_DISTINCT = new FunctionIdentifier(FunctionConstants.ASTERIX_NS,
+ "max-distinct", 1);
+ public static final FunctionIdentifier MIN_DISTINCT = new FunctionIdentifier(FunctionConstants.ASTERIX_NS,
+ "agg-min-distinct", 1);
+ public static final FunctionIdentifier SCALAR_MIN_DISTINCT = new FunctionIdentifier(FunctionConstants.ASTERIX_NS,
+ "min-distinct", 1);
+
// sql aggregate functions
public static final FunctionIdentifier SQL_AVG = new FunctionIdentifier(FunctionConstants.ASTERIX_NS, "agg-sql-avg",
1);
@@ -453,6 +479,28 @@
public static final FunctionIdentifier SERIAL_LOCAL_SQL_AVG = new FunctionIdentifier(FunctionConstants.ASTERIX_NS,
"local-sql-avg-serial", 1);
+ // distinct sql aggregate functions
+ public static final FunctionIdentifier SQL_COUNT_DISTINCT = new FunctionIdentifier(FunctionConstants.ASTERIX_NS,
+ "agg-sql-count-distinct", 1);
+ public static final FunctionIdentifier SCALAR_SQL_COUNT_DISTINCT = new FunctionIdentifier(
+ FunctionConstants.ASTERIX_NS, "sql-count-distinct", 1);
+ public static final FunctionIdentifier SQL_SUM_DISTINCT = new FunctionIdentifier(FunctionConstants.ASTERIX_NS,
+ "agg-sql-sum-distinct", 1);
+ public static final FunctionIdentifier SCALAR_SQL_SUM_DISTINCT = new FunctionIdentifier(
+ FunctionConstants.ASTERIX_NS, "sql-sum-distinct", 1);
+ public static final FunctionIdentifier SQL_AVG_DISTINCT = new FunctionIdentifier(FunctionConstants.ASTERIX_NS,
+ "agg-sql-avg-distinct", 1);
+ public static final FunctionIdentifier SCALAR_SQL_AVG_DISTINCT = new FunctionIdentifier(
+ FunctionConstants.ASTERIX_NS, "sql-avg-distinct", 1);
+ public static final FunctionIdentifier SQL_MAX_DISTINCT = new FunctionIdentifier(FunctionConstants.ASTERIX_NS,
+ "agg-sql-max-distinct", 1);
+ public static final FunctionIdentifier SCALAR_SQL_MAX_DISTINCT = new FunctionIdentifier(
+ FunctionConstants.ASTERIX_NS, "sql-max-distinct", 1);
+ public static final FunctionIdentifier SQL_MIN_DISTINCT = new FunctionIdentifier(FunctionConstants.ASTERIX_NS,
+ "agg-sql-min-distinct", 1);
+ public static final FunctionIdentifier SCALAR_SQL_MIN_DISTINCT = new FunctionIdentifier(
+ FunctionConstants.ASTERIX_NS, "sql-min-distinct", 1);
+
public static final FunctionIdentifier SCAN_COLLECTION = new FunctionIdentifier(FunctionConstants.ASTERIX_NS,
"scan-collection", 1);
public static final FunctionIdentifier SUBSET_COLLECTION = new FunctionIdentifier(FunctionConstants.ASTERIX_NS,
@@ -899,9 +947,9 @@
addPrivateFunction(GRAM_TOKENS, OrderedListOfAStringTypeComputer.INSTANCE, true);
addPrivateFunction(HASHED_GRAM_TOKENS, OrderedListOfAInt32TypeComputer.INSTANCE, true);
addPrivateFunction(HASHED_WORD_TOKENS, OrderedListOfAInt32TypeComputer.INSTANCE, true);
- addFunction(IF_MISSING_OR_NULL, IfMissingOrNullTypeComputer.INSTANCE, true);
- addFunction(IF_MISSING, IfMissingTypeComputer.INSTANCE, true);
- addFunction(IF_NULL, IfNullTypeComputer.INSTANCE, true);
+ addFunction(IF_MISSING_OR_NULL, IfMissingOrNullTypeComputer.INSTANCE, true);
+ addFunction(IF_MISSING, IfMissingTypeComputer.INSTANCE, true);
+ addFunction(IF_NULL, IfNullTypeComputer.INSTANCE, true);
addPrivateFunction(INDEX_SEARCH, AnyTypeComputer.INSTANCE, true);
addFunction(INT8_CONSTRUCTOR, AInt8TypeComputer.INSTANCE, true);
addFunction(INT16_CONSTRUCTOR, AInt16TypeComputer.INSTANCE, true);
@@ -1056,6 +1104,33 @@
addPrivateFunction(SERIAL_SUM, NumericAggTypeComputer.INSTANCE, true);
addPrivateFunction(SERIAL_LOCAL_SUM, NumericAggTypeComputer.INSTANCE, true);
+ // Distinct aggregate functions
+
+ addFunction(COUNT_DISTINCT, AInt64TypeComputer.INSTANCE, true);
+ addFunction(SCALAR_COUNT_DISTINCT, AInt64TypeComputer.INSTANCE, true);
+ addFunction(SQL_COUNT_DISTINCT, AInt64TypeComputer.INSTANCE, true);
+ addFunction(SCALAR_SQL_COUNT_DISTINCT, AInt64TypeComputer.INSTANCE, true);
+
+ addFunction(SUM_DISTINCT, NumericAggTypeComputer.INSTANCE, true);
+ addFunction(SCALAR_SUM_DISTINCT, ScalarVersionOfAggregateResultType.INSTANCE, true);
+ addFunction(SQL_SUM_DISTINCT, NumericAggTypeComputer.INSTANCE, true);
+ addFunction(SCALAR_SQL_SUM_DISTINCT, ScalarVersionOfAggregateResultType.INSTANCE, true);
+
+ addFunction(AVG_DISTINCT, NullableDoubleTypeComputer.INSTANCE, true);
+ addFunction(SCALAR_AVG_DISTINCT, NullableDoubleTypeComputer.INSTANCE, true);
+ addFunction(SQL_AVG_DISTINCT, NullableDoubleTypeComputer.INSTANCE, true);
+ addFunction(SCALAR_SQL_AVG_DISTINCT, NullableDoubleTypeComputer.INSTANCE, true);
+
+ addFunction(MAX_DISTINCT, MinMaxAggTypeComputer.INSTANCE, true);
+ addFunction(SCALAR_MAX_DISTINCT, ScalarVersionOfAggregateResultType.INSTANCE, true);
+ addFunction(SQL_MAX_DISTINCT, MinMaxAggTypeComputer.INSTANCE, true);
+ addFunction(SCALAR_SQL_MAX_DISTINCT, ScalarVersionOfAggregateResultType.INSTANCE, true);
+
+ addFunction(MIN_DISTINCT, MinMaxAggTypeComputer.INSTANCE, true);
+ addFunction(SCALAR_MIN_DISTINCT, ScalarVersionOfAggregateResultType.INSTANCE, true);
+ addFunction(SQL_MIN_DISTINCT, MinMaxAggTypeComputer.INSTANCE, true);
+ addFunction(SCALAR_SQL_MIN_DISTINCT, ScalarVersionOfAggregateResultType.INSTANCE, true);
+
// Similarity functions
addFunction(EDIT_DISTANCE_CONTAINS, OrderedListOfAnyTypeComputer.INSTANCE, true);
addFunction(SIMILARITY_JACCARD, AFloatTypeComputer.INSTANCE, true);
@@ -1212,28 +1287,10 @@
}
static {
- scalarToAggregateFunctionMap.put(getAsterixFunctionInfo(SCALAR_AVG), getAsterixFunctionInfo(AVG));
- scalarToAggregateFunctionMap.put(getAsterixFunctionInfo(SCALAR_COUNT), getAsterixFunctionInfo(COUNT));
- scalarToAggregateFunctionMap.put(getAsterixFunctionInfo(SCALAR_GLOBAL_AVG), getAsterixFunctionInfo(GLOBAL_AVG));
- scalarToAggregateFunctionMap.put(getAsterixFunctionInfo(SCALAR_LOCAL_AVG), getAsterixFunctionInfo(LOCAL_AVG));
- scalarToAggregateFunctionMap.put(getAsterixFunctionInfo(SCALAR_MAX), getAsterixFunctionInfo(MAX));
- scalarToAggregateFunctionMap.put(getAsterixFunctionInfo(SCALAR_MIN), getAsterixFunctionInfo(MIN));
- scalarToAggregateFunctionMap.put(getAsterixFunctionInfo(SCALAR_SUM), getAsterixFunctionInfo(SUM));
- scalarToAggregateFunctionMap.put(getAsterixFunctionInfo(SCALAR_FIRST_ELEMENT),
- getAsterixFunctionInfo(FIRST_ELEMENT));
- // SQL Aggregate Functions
- scalarToAggregateFunctionMap.put(getAsterixFunctionInfo(SCALAR_SQL_AVG), getAsterixFunctionInfo(SQL_AVG));
- scalarToAggregateFunctionMap.put(getAsterixFunctionInfo(SCALAR_SQL_COUNT), getAsterixFunctionInfo(SQL_COUNT));
- scalarToAggregateFunctionMap.put(getAsterixFunctionInfo(SCALAR_GLOBAL_SQL_AVG),
- getAsterixFunctionInfo(GLOBAL_SQL_AVG));
- scalarToAggregateFunctionMap.put(getAsterixFunctionInfo(SCALAR_LOCAL_SQL_AVG),
- getAsterixFunctionInfo(LOCAL_SQL_AVG));
- scalarToAggregateFunctionMap.put(getAsterixFunctionInfo(SCALAR_SQL_MAX), getAsterixFunctionInfo(SQL_MAX));
- scalarToAggregateFunctionMap.put(getAsterixFunctionInfo(SCALAR_SQL_MIN), getAsterixFunctionInfo(SQL_MIN));
- scalarToAggregateFunctionMap.put(getAsterixFunctionInfo(SCALAR_SQL_SUM), getAsterixFunctionInfo(SQL_SUM));
- }
+ // Aggregate functions
- static {
+ // AVG
+
addAgg(AVG);
addAgg(LOCAL_AVG);
addAgg(GLOBAL_AVG);
@@ -1243,53 +1300,13 @@
addIntermediateAgg(GLOBAL_AVG, INTERMEDIATE_AVG);
addGlobalAgg(AVG, GLOBAL_AVG);
- addAgg(COUNT);
- addLocalAgg(COUNT, COUNT);
- addIntermediateAgg(COUNT, SUM);
- addGlobalAgg(COUNT, SUM);
+ addScalarAgg(AVG, SCALAR_AVG);
+ addScalarAgg(GLOBAL_AVG, SCALAR_GLOBAL_AVG);
+ addScalarAgg(LOCAL_AVG, SCALAR_LOCAL_AVG);
- addAgg(MAX);
- addAgg(LOCAL_MAX);
- addLocalAgg(MAX, LOCAL_MAX);
- addIntermediateAgg(LOCAL_MAX, MAX);
- addIntermediateAgg(MAX, MAX);
- addGlobalAgg(MAX, MAX);
-
- addAgg(SCALAR_FIRST_ELEMENT);
- addAgg(LOCAL_FIRST_ELEMENT);
- addLocalAgg(FIRST_ELEMENT, LOCAL_FIRST_ELEMENT);
- addIntermediateAgg(LOCAL_FIRST_ELEMENT, FIRST_ELEMENT);
- addIntermediateAgg(FIRST_ELEMENT, FIRST_ELEMENT);
- addGlobalAgg(FIRST_ELEMENT, FIRST_ELEMENT);
-
- addAgg(MIN);
- addLocalAgg(MIN, LOCAL_MIN);
- addIntermediateAgg(LOCAL_MIN, MIN);
- addIntermediateAgg(MIN, MIN);
- addGlobalAgg(MIN, MIN);
-
- addAgg(SUM);
- addAgg(LOCAL_SUM);
- addLocalAgg(SUM, LOCAL_SUM);
- addIntermediateAgg(LOCAL_SUM, SUM);
- addIntermediateAgg(SUM, SUM);
- addGlobalAgg(SUM, SUM);
-
- addAgg(LISTIFY);
-
- // serializable aggregate functions
addSerialAgg(AVG, SERIAL_AVG);
- addSerialAgg(COUNT, SERIAL_COUNT);
- addSerialAgg(SUM, SERIAL_SUM);
- addSerialAgg(LOCAL_SUM, SERIAL_LOCAL_SUM);
addSerialAgg(LOCAL_AVG, SERIAL_LOCAL_AVG);
addSerialAgg(GLOBAL_AVG, SERIAL_GLOBAL_AVG);
-
- addAgg(SERIAL_COUNT);
- addLocalAgg(SERIAL_COUNT, SERIAL_COUNT);
- addIntermediateAgg(SERIAL_COUNT, SERIAL_SUM);
- addGlobalAgg(SERIAL_COUNT, SERIAL_SUM);
-
addAgg(SERIAL_AVG);
addAgg(SERIAL_LOCAL_AVG);
addAgg(SERIAL_GLOBAL_AVG);
@@ -1299,6 +1316,86 @@
addIntermediateAgg(SERIAL_GLOBAL_AVG, SERIAL_INTERMEDIATE_AVG);
addGlobalAgg(SERIAL_AVG, SERIAL_GLOBAL_AVG);
+ // AVG DISTINCT
+
+ addDistinctAgg(AVG_DISTINCT, SCALAR_AVG);
+ addScalarAgg(AVG_DISTINCT, SCALAR_AVG_DISTINCT);
+
+ // COUNT
+
+ addAgg(COUNT);
+ addLocalAgg(COUNT, COUNT);
+ addIntermediateAgg(COUNT, SUM);
+ addGlobalAgg(COUNT, SUM);
+
+ addScalarAgg(COUNT, SCALAR_COUNT);
+
+ addSerialAgg(COUNT, SERIAL_COUNT);
+ addAgg(SERIAL_COUNT);
+ addLocalAgg(SERIAL_COUNT, SERIAL_COUNT);
+ addIntermediateAgg(SERIAL_COUNT, SERIAL_SUM);
+ addGlobalAgg(SERIAL_COUNT, SERIAL_SUM);
+
+ // COUNT DISTINCT
+
+ addDistinctAgg(COUNT_DISTINCT, SCALAR_COUNT);
+ addScalarAgg(COUNT_DISTINCT, SCALAR_COUNT_DISTINCT);
+
+ // MAX
+
+ addAgg(MAX);
+ addAgg(LOCAL_MAX);
+ addLocalAgg(MAX, LOCAL_MAX);
+ addIntermediateAgg(LOCAL_MAX, MAX);
+ addIntermediateAgg(MAX, MAX);
+ addGlobalAgg(MAX, MAX);
+
+ addScalarAgg(MAX, SCALAR_MAX);
+
+ // MAX DISTINCT
+
+ addDistinctAgg(MAX_DISTINCT, SCALAR_MAX);
+ addScalarAgg(MAX_DISTINCT, SCALAR_MAX_DISTINCT);
+
+ // FIRST_ELEMENT
+
+ addAgg(SCALAR_FIRST_ELEMENT);
+ addAgg(LOCAL_FIRST_ELEMENT);
+ addLocalAgg(FIRST_ELEMENT, LOCAL_FIRST_ELEMENT);
+ addIntermediateAgg(LOCAL_FIRST_ELEMENT, FIRST_ELEMENT);
+ addIntermediateAgg(FIRST_ELEMENT, FIRST_ELEMENT);
+ addGlobalAgg(FIRST_ELEMENT, FIRST_ELEMENT);
+
+ addScalarAgg(FIRST_ELEMENT, SCALAR_FIRST_ELEMENT);
+
+ // MIN
+
+ addAgg(MIN);
+ addLocalAgg(MIN, LOCAL_MIN);
+ addIntermediateAgg(LOCAL_MIN, MIN);
+ addIntermediateAgg(MIN, MIN);
+ addGlobalAgg(MIN, MIN);
+
+ addScalarAgg(MIN, SCALAR_MIN);
+
+ // MIN DISTINCT
+
+ addDistinctAgg(MIN_DISTINCT, SCALAR_MIN);
+ addScalarAgg(MIN_DISTINCT, SCALAR_MIN_DISTINCT);
+
+ // SUM
+
+ addAgg(SUM);
+ addAgg(LOCAL_SUM);
+ addLocalAgg(SUM, LOCAL_SUM);
+ addIntermediateAgg(LOCAL_SUM, SUM);
+ addIntermediateAgg(SUM, SUM);
+ addGlobalAgg(SUM, SUM);
+
+ addScalarAgg(SUM, SCALAR_SUM);
+
+ addSerialAgg(SUM, SERIAL_SUM);
+ addSerialAgg(LOCAL_SUM, SERIAL_LOCAL_SUM);
addAgg(SERIAL_SUM);
addAgg(SERIAL_LOCAL_SUM);
addLocalAgg(SERIAL_SUM, SERIAL_LOCAL_SUM);
@@ -1306,7 +1403,19 @@
addIntermediateAgg(SERIAL_LOCAL_SUM, SERIAL_SUM);
addGlobalAgg(SERIAL_SUM, SERIAL_SUM);
+ // SUM DISTINCT
+
+ addDistinctAgg(SUM_DISTINCT, SCALAR_SUM);
+ addScalarAgg(SUM_DISTINCT, SCALAR_SUM_DISTINCT);
+
+ // LISTIFY
+
+ addAgg(LISTIFY);
+
// SQL Aggregate Functions
+
+ // SQL AVG
+
addAgg(SQL_AVG);
addAgg(LOCAL_SQL_AVG);
addAgg(GLOBAL_SQL_AVG);
@@ -1316,44 +1425,13 @@
addIntermediateAgg(GLOBAL_SQL_AVG, INTERMEDIATE_SQL_AVG);
addGlobalAgg(SQL_AVG, GLOBAL_SQL_AVG);
- addAgg(SQL_COUNT);
- addLocalAgg(SQL_COUNT, SQL_COUNT);
- addIntermediateAgg(SQL_COUNT, SQL_SUM);
- addGlobalAgg(SQL_COUNT, SQL_SUM);
+ addScalarAgg(SQL_AVG, SCALAR_SQL_AVG);
+ addScalarAgg(GLOBAL_SQL_AVG, SCALAR_GLOBAL_SQL_AVG);
+ addScalarAgg(LOCAL_SQL_AVG, SCALAR_LOCAL_SQL_AVG);
- addAgg(SQL_MAX);
- addAgg(LOCAL_SQL_MAX);
- addLocalAgg(SQL_MAX, LOCAL_SQL_MAX);
- addIntermediateAgg(LOCAL_SQL_MAX, SQL_MAX);
- addIntermediateAgg(SQL_MAX, SQL_MAX);
- addGlobalAgg(SQL_MAX, SQL_MAX);
-
- addAgg(SQL_MIN);
- addLocalAgg(SQL_MIN, LOCAL_SQL_MIN);
- addIntermediateAgg(LOCAL_SQL_MIN, SQL_MIN);
- addIntermediateAgg(SQL_MIN, SQL_MIN);
- addGlobalAgg(SQL_MIN, SQL_MIN);
-
- addAgg(SQL_SUM);
- addAgg(LOCAL_SQL_SUM);
- addLocalAgg(SQL_SUM, LOCAL_SQL_SUM);
- addIntermediateAgg(LOCAL_SQL_SUM, SQL_SUM);
- addIntermediateAgg(SQL_SUM, SQL_SUM);
- addGlobalAgg(SQL_SUM, SQL_SUM);
-
- // SQL serializable aggregate functions
addSerialAgg(SQL_AVG, SERIAL_SQL_AVG);
- addSerialAgg(SQL_COUNT, SERIAL_SQL_COUNT);
- addSerialAgg(SQL_SUM, SERIAL_SQL_SUM);
- addSerialAgg(LOCAL_SQL_SUM, SERIAL_LOCAL_SQL_SUM);
addSerialAgg(LOCAL_SQL_AVG, SERIAL_LOCAL_SQL_AVG);
addSerialAgg(GLOBAL_SQL_AVG, SERIAL_GLOBAL_SQL_AVG);
-
- addAgg(SERIAL_SQL_COUNT);
- addLocalAgg(SERIAL_SQL_COUNT, SERIAL_SQL_COUNT);
- addIntermediateAgg(SERIAL_SQL_COUNT, SERIAL_SQL_SUM);
- addGlobalAgg(SERIAL_SQL_COUNT, SERIAL_SQL_SUM);
-
addAgg(SERIAL_SQL_AVG);
addAgg(SERIAL_LOCAL_SQL_AVG);
addAgg(SERIAL_GLOBAL_SQL_AVG);
@@ -1363,6 +1441,75 @@
addIntermediateAgg(SERIAL_GLOBAL_SQL_AVG, SERIAL_INTERMEDIATE_SQL_AVG);
addGlobalAgg(SERIAL_SQL_AVG, SERIAL_GLOBAL_SQL_AVG);
+ // SQL AVG DISTINCT
+
+ addDistinctAgg(SQL_AVG_DISTINCT, SCALAR_SQL_AVG);
+ addScalarAgg(SQL_AVG_DISTINCT, SCALAR_SQL_AVG_DISTINCT);
+
+ // SQL COUNT
+
+ addAgg(SQL_COUNT);
+ addLocalAgg(SQL_COUNT, SQL_COUNT);
+ addIntermediateAgg(SQL_COUNT, SQL_SUM);
+ addGlobalAgg(SQL_COUNT, SQL_SUM);
+
+ addScalarAgg(SQL_COUNT, SCALAR_SQL_COUNT);
+
+ addSerialAgg(SQL_COUNT, SERIAL_SQL_COUNT);
+ addAgg(SERIAL_SQL_COUNT);
+ addLocalAgg(SERIAL_SQL_COUNT, SERIAL_SQL_COUNT);
+ addIntermediateAgg(SERIAL_SQL_COUNT, SERIAL_SQL_SUM);
+ addGlobalAgg(SERIAL_SQL_COUNT, SERIAL_SQL_SUM);
+
+ // SQL COUNT DISTINCT
+
+ addDistinctAgg(SQL_COUNT_DISTINCT, SCALAR_SQL_COUNT);
+ addScalarAgg(SQL_COUNT_DISTINCT, SCALAR_SQL_COUNT_DISTINCT);
+
+ // SQL MAX
+
+ addAgg(SQL_MAX);
+ addAgg(LOCAL_SQL_MAX);
+ addLocalAgg(SQL_MAX, LOCAL_SQL_MAX);
+ addIntermediateAgg(LOCAL_SQL_MAX, SQL_MAX);
+ addIntermediateAgg(SQL_MAX, SQL_MAX);
+ addGlobalAgg(SQL_MAX, SQL_MAX);
+
+ addScalarAgg(SQL_MAX, SCALAR_SQL_MAX);
+
+ // SQL MAX DISTINCT
+
+ addDistinctAgg(SQL_MAX_DISTINCT, SCALAR_SQL_MAX);
+ addScalarAgg(SQL_MAX_DISTINCT, SCALAR_SQL_MAX_DISTINCT);
+
+ // SQL MIN
+
+ addAgg(SQL_MIN);
+ addLocalAgg(SQL_MIN, LOCAL_SQL_MIN);
+ addIntermediateAgg(LOCAL_SQL_MIN, SQL_MIN);
+ addIntermediateAgg(SQL_MIN, SQL_MIN);
+ addGlobalAgg(SQL_MIN, SQL_MIN);
+
+ addScalarAgg(SQL_MIN, SCALAR_SQL_MIN);
+
+ // SQL MIN DISTINCT
+
+ addDistinctAgg(SQL_MIN_DISTINCT, SCALAR_SQL_MIN);
+ addScalarAgg(SQL_MIN_DISTINCT, SCALAR_SQL_MIN_DISTINCT);
+
+ // SQL SUM
+
+ addAgg(SQL_SUM);
+ addAgg(LOCAL_SQL_SUM);
+ addLocalAgg(SQL_SUM, LOCAL_SQL_SUM);
+ addIntermediateAgg(LOCAL_SQL_SUM, SQL_SUM);
+ addIntermediateAgg(SQL_SUM, SQL_SUM);
+ addGlobalAgg(SQL_SUM, SQL_SUM);
+
+ addScalarAgg(SQL_SUM, SCALAR_SQL_SUM);
+
+ addSerialAgg(SQL_SUM, SERIAL_SQL_SUM);
+ addSerialAgg(LOCAL_SQL_SUM, SERIAL_LOCAL_SQL_SUM);
addAgg(SERIAL_SQL_SUM);
addAgg(SERIAL_LOCAL_SQL_SUM);
addLocalAgg(SERIAL_SQL_SUM, SERIAL_LOCAL_SQL_SUM);
@@ -1370,6 +1517,10 @@
addIntermediateAgg(SERIAL_SQL_SUM, SERIAL_SQL_SUM);
addGlobalAgg(SERIAL_SQL_SUM, SERIAL_SQL_SUM);
+ // SQL SUM DISTINCT
+
+ addDistinctAgg(SQL_SUM_DISTINCT, SCALAR_SQL_SUM);
+ addScalarAgg(SQL_SUM_DISTINCT, SCALAR_SQL_SUM_DISTINCT);
}
static {
@@ -1502,6 +1653,12 @@
return finfo == null ? null : finfo.getFunctionIdentifier();
}
+ public static FunctionIdentifier getAggregateFunctionForDistinct(FunctionIdentifier distinctVersionOfAggregate) {
+ IFunctionInfo finfo =
+ distinctToRegularScalarAggregateFunctionMap.get(getAsterixFunctionInfo(distinctVersionOfAggregate));
+ return finfo == null ? null : finfo.getFunctionIdentifier();
+ }
+
public static void addFunction(FunctionIdentifier fi, IResultTypeComputer typeComputer, boolean isFunctional) {
addFunctionWithDomain(fi, ATypeHierarchy.Domain.ANY, typeComputer, isFunctional);
}
@@ -1548,6 +1705,15 @@
aggregateToSerializableAggregate.put(getAsterixFunctionInfo(fi), getAsterixFunctionInfo(serialfi));
}
+ private static void addScalarAgg(FunctionIdentifier fi, FunctionIdentifier scalarfi) {
+ scalarToAggregateFunctionMap.put(getAsterixFunctionInfo(scalarfi), getAsterixFunctionInfo(fi));
+ }
+
+ private static void addDistinctAgg(FunctionIdentifier distinctfi, FunctionIdentifier regularscalarfi) {
+ distinctToRegularScalarAggregateFunctionMap.put(getAsterixFunctionInfo(distinctfi),
+ getAsterixFunctionInfo(regularscalarfi));
+ }
+
static {
spatialFilterFunctions.put(getAsterixFunctionInfo(BuiltinFunctions.SPATIAL_INTERSECT),
SpatialFilterKind.SI);
diff --git a/hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/base/PhysicalOperatorTag.java b/hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/base/PhysicalOperatorTag.java
index 4ceeb5c..75b63f1 100644
--- a/hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/base/PhysicalOperatorTag.java
+++ b/hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/base/PhysicalOperatorTag.java
@@ -43,6 +43,7 @@
LENGTH_PARTITIONED_INVERTED_INDEX_SEARCH,
MATERIALIZE,
MICRO_PRE_CLUSTERED_GROUP_BY,
+ MICRO_PRE_SORTED_DISTINCT_BY,
NESTED_LOOP,
NESTED_TUPLE_SOURCE,
ONE_TO_ONE_EXCHANGE,
diff --git a/hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/expressions/AbstractFunctionCallExpression.java b/hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/expressions/AbstractFunctionCallExpression.java
index 8bc39b8..80d6f95 100644
--- a/hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/expressions/AbstractFunctionCallExpression.java
+++ b/hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/expressions/AbstractFunctionCallExpression.java
@@ -193,9 +193,14 @@
if (!equal) {
return false;
}
- for (int i = 0; i < arguments.size(); i++) {
+ int argumentCount = arguments.size();
+ List<Mutable<ILogicalExpression>> fceArguments = fce.getArguments();
+ if (argumentCount != fceArguments.size()) {
+ return false;
+ }
+ for (int i = 0; i < argumentCount; i++) {
ILogicalExpression argument = arguments.get(i).getValue();
- ILogicalExpression fceArgument = fce.getArguments().get(i).getValue();
+ ILogicalExpression fceArgument = fceArguments.get(i).getValue();
if (!argument.equals(fceArgument)) {
return false;
}
diff --git a/hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/operators/physical/AbstractPreSortedDistinctByPOperator.java b/hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/operators/physical/AbstractPreSortedDistinctByPOperator.java
new file mode 100644
index 0000000..c604e5c
--- /dev/null
+++ b/hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/operators/physical/AbstractPreSortedDistinctByPOperator.java
@@ -0,0 +1,108 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.hyracks.algebricks.core.algebra.operators.physical;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.hyracks.algebricks.common.utils.ListSet;
+import org.apache.hyracks.algebricks.core.algebra.base.ILogicalOperator;
+import org.apache.hyracks.algebricks.core.algebra.base.IOptimizationContext;
+import org.apache.hyracks.algebricks.core.algebra.base.LogicalVariable;
+import org.apache.hyracks.algebricks.core.algebra.operators.logical.AbstractLogicalOperator;
+import org.apache.hyracks.algebricks.core.algebra.operators.logical.IOperatorSchema;
+import org.apache.hyracks.algebricks.core.algebra.operators.logical.OrderOperator;
+import org.apache.hyracks.algebricks.core.algebra.properties.ILocalStructuralProperty;
+import org.apache.hyracks.algebricks.core.algebra.properties.IPartitioningProperty;
+import org.apache.hyracks.algebricks.core.algebra.properties.IPartitioningRequirementsCoordinator;
+import org.apache.hyracks.algebricks.core.algebra.properties.IPhysicalPropertiesVector;
+import org.apache.hyracks.algebricks.core.algebra.properties.LocalOrderProperty;
+import org.apache.hyracks.algebricks.core.algebra.properties.OrderColumn;
+import org.apache.hyracks.algebricks.core.algebra.properties.PhysicalRequirements;
+import org.apache.hyracks.algebricks.core.algebra.properties.StructuralPropertiesVector;
+import org.apache.hyracks.algebricks.core.algebra.properties.UnorderedPartitionedProperty;
+import org.apache.hyracks.algebricks.core.jobgen.impl.JobGenHelper;
+
+public abstract class AbstractPreSortedDistinctByPOperator extends AbstractPhysicalOperator {
+
+ protected List<LogicalVariable> columnList;
+
+ public AbstractPreSortedDistinctByPOperator(List<LogicalVariable> columnList) {
+ this.columnList = columnList;
+ }
+
+ public void setDistinctByColumns(List<LogicalVariable> distinctByColumns) {
+ this.columnList = distinctByColumns;
+ }
+
+ @Override
+ public void computeDeliveredProperties(ILogicalOperator op, IOptimizationContext context) {
+ AbstractLogicalOperator op2 = (AbstractLogicalOperator) op.getInputs().get(0).getValue();
+ IPartitioningProperty pp = op2.getDeliveredPhysicalProperties().getPartitioningProperty();
+ List<ILocalStructuralProperty> propsLocal = op2.getDeliveredPhysicalProperties().getLocalProperties();
+ deliveredProperties = new StructuralPropertiesVector(pp, propsLocal);
+ }
+
+ @Override
+ public PhysicalRequirements getRequiredPropertiesForChildren(ILogicalOperator op,
+ IPhysicalPropertiesVector reqdByParent, IOptimizationContext context) {
+ StructuralPropertiesVector[] pv = new StructuralPropertiesVector[1];
+ List<ILocalStructuralProperty> localProps = new ArrayList<>();
+ List<OrderColumn> orderColumns = new ArrayList<>();
+ for (LogicalVariable column : columnList) {
+ orderColumns.add(new OrderColumn(column, OrderOperator.IOrder.OrderKind.ASC));
+ }
+ localProps.add(new LocalOrderProperty(orderColumns));
+ IPartitioningProperty pp = null;
+ AbstractLogicalOperator aop = (AbstractLogicalOperator) op;
+ if (aop.getExecutionMode() == AbstractLogicalOperator.ExecutionMode.PARTITIONED) {
+ pp = new UnorderedPartitionedProperty(new ListSet<>(columnList), context.getComputationNodeDomain());
+ }
+ pv[0] = new StructuralPropertiesVector(pp, localProps);
+ return new PhysicalRequirements(pv, IPartitioningRequirementsCoordinator.NO_COORDINATION);
+ }
+
+ @Override
+ public boolean expensiveThanMaterialization() {
+ return true;
+ }
+
+ protected int[] getKeysAndDecs(IOperatorSchema inputSchema) {
+ int keys[] = JobGenHelper.variablesToFieldIndexes(columnList, inputSchema);
+ int sz = inputSchema.getSize();
+ int fdSz = sz - columnList.size();
+ int[] fdColumns = new int[fdSz];
+ int j = 0;
+ for (LogicalVariable v : inputSchema) {
+ if (!columnList.contains(v)) {
+ fdColumns[j++] = inputSchema.findVariable(v);
+ }
+ }
+ int[] keysAndDecs = new int[keys.length + fdColumns.length];
+ for (int i = 0; i < keys.length; i++) {
+ keysAndDecs[i] = keys[i];
+ }
+ for (int i = 0; i < fdColumns.length; i++) {
+ keysAndDecs[i + keys.length] = fdColumns[i];
+ }
+ return keysAndDecs;
+ }
+
+}
diff --git a/hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/operators/physical/MicroPreSortedDistinctByPOperator.java b/hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/operators/physical/MicroPreSortedDistinctByPOperator.java
new file mode 100644
index 0000000..94d5fd4
--- /dev/null
+++ b/hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/operators/physical/MicroPreSortedDistinctByPOperator.java
@@ -0,0 +1,80 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.hyracks.algebricks.core.algebra.operators.physical;
+
+import java.util.List;
+
+import org.apache.hyracks.algebricks.common.exceptions.AlgebricksException;
+import org.apache.hyracks.algebricks.core.algebra.base.IHyracksJobBuilder;
+import org.apache.hyracks.algebricks.core.algebra.base.ILogicalOperator;
+import org.apache.hyracks.algebricks.core.algebra.base.LogicalVariable;
+import org.apache.hyracks.algebricks.core.algebra.base.PhysicalOperatorTag;
+import org.apache.hyracks.algebricks.core.algebra.operators.logical.IOperatorSchema;
+import org.apache.hyracks.algebricks.core.jobgen.impl.JobGenContext;
+import org.apache.hyracks.algebricks.core.jobgen.impl.JobGenHelper;
+import org.apache.hyracks.algebricks.runtime.base.IAggregateEvaluatorFactory;
+import org.apache.hyracks.algebricks.runtime.operators.aggreg.SimpleAlgebricksAccumulatingAggregatorFactory;
+import org.apache.hyracks.algebricks.runtime.operators.group.MicroPreClusteredGroupRuntimeFactory;
+import org.apache.hyracks.api.dataflow.value.IBinaryComparatorFactory;
+import org.apache.hyracks.api.dataflow.value.RecordDescriptor;
+import org.apache.hyracks.dataflow.std.group.IAggregatorDescriptorFactory;
+
+public class MicroPreSortedDistinctByPOperator extends AbstractPreSortedDistinctByPOperator {
+
+ public MicroPreSortedDistinctByPOperator(List<LogicalVariable> columnList) {
+ super(columnList);
+ }
+
+ @Override
+ public PhysicalOperatorTag getOperatorTag() {
+ return PhysicalOperatorTag.MICRO_PRE_SORTED_DISTINCT_BY;
+ }
+
+ @Override
+ public boolean isMicroOperator() {
+ return true;
+ }
+
+ @Override
+ public void contributeRuntimeOperator(IHyracksJobBuilder builder, JobGenContext context, ILogicalOperator op,
+ IOperatorSchema opSchema, IOperatorSchema[] inputSchemas, IOperatorSchema outerPlanSchema)
+ throws AlgebricksException {
+
+ int[] keysAndDecs = getKeysAndDecs(inputSchemas[0]);
+
+ IBinaryComparatorFactory[] comparatorFactories = JobGenHelper
+ .variablesToAscBinaryComparatorFactories(columnList, context.getTypeEnvironment(op), context);
+ IAggregateEvaluatorFactory[] aggFactories = new IAggregateEvaluatorFactory[] {};
+ IAggregatorDescriptorFactory aggregatorFactory =
+ new SimpleAlgebricksAccumulatingAggregatorFactory(aggFactories, keysAndDecs);
+
+ RecordDescriptor recordDescriptor =
+ JobGenHelper.mkRecordDescriptor(context.getTypeEnvironment(op), opSchema, context);
+ RecordDescriptor inputRecordDesc = JobGenHelper.mkRecordDescriptor(
+ context.getTypeEnvironment(op.getInputs().get(0).getValue()), inputSchemas[0], context);
+
+ /* make fd columns part of the key but the comparator only compares the distinct key columns */
+ MicroPreClusteredGroupRuntimeFactory runtime = new MicroPreClusteredGroupRuntimeFactory(keysAndDecs,
+ comparatorFactories, aggregatorFactory, inputRecordDesc, recordDescriptor, null);
+ builder.contributeMicroOperator(op, runtime, recordDescriptor);
+ ILogicalOperator src = op.getInputs().get(0).getValue();
+ builder.contributeGraphEdge(src, 0, op, 0);
+ }
+}
diff --git a/hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/operators/physical/PreSortedDistinctByPOperator.java b/hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/operators/physical/PreSortedDistinctByPOperator.java
index fe11f64..54e577f 100644
--- a/hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/operators/physical/PreSortedDistinctByPOperator.java
+++ b/hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/operators/physical/PreSortedDistinctByPOperator.java
@@ -18,29 +18,15 @@
*/
package org.apache.hyracks.algebricks.core.algebra.operators.physical;
-import java.util.ArrayList;
import java.util.List;
import org.apache.hyracks.algebricks.common.exceptions.AlgebricksException;
-import org.apache.hyracks.algebricks.common.utils.ListSet;
import org.apache.hyracks.algebricks.core.algebra.base.IHyracksJobBuilder;
import org.apache.hyracks.algebricks.core.algebra.base.ILogicalOperator;
-import org.apache.hyracks.algebricks.core.algebra.base.IOptimizationContext;
import org.apache.hyracks.algebricks.core.algebra.base.LogicalVariable;
import org.apache.hyracks.algebricks.core.algebra.base.PhysicalOperatorTag;
import org.apache.hyracks.algebricks.core.algebra.operators.logical.AbstractLogicalOperator;
-import org.apache.hyracks.algebricks.core.algebra.operators.logical.AbstractLogicalOperator.ExecutionMode;
import org.apache.hyracks.algebricks.core.algebra.operators.logical.IOperatorSchema;
-import org.apache.hyracks.algebricks.core.algebra.operators.logical.OrderOperator.IOrder.OrderKind;
-import org.apache.hyracks.algebricks.core.algebra.properties.ILocalStructuralProperty;
-import org.apache.hyracks.algebricks.core.algebra.properties.IPartitioningProperty;
-import org.apache.hyracks.algebricks.core.algebra.properties.IPartitioningRequirementsCoordinator;
-import org.apache.hyracks.algebricks.core.algebra.properties.IPhysicalPropertiesVector;
-import org.apache.hyracks.algebricks.core.algebra.properties.LocalOrderProperty;
-import org.apache.hyracks.algebricks.core.algebra.properties.OrderColumn;
-import org.apache.hyracks.algebricks.core.algebra.properties.PhysicalRequirements;
-import org.apache.hyracks.algebricks.core.algebra.properties.StructuralPropertiesVector;
-import org.apache.hyracks.algebricks.core.algebra.properties.UnorderedPartitionedProperty;
import org.apache.hyracks.algebricks.core.jobgen.impl.JobGenContext;
import org.apache.hyracks.algebricks.core.jobgen.impl.JobGenHelper;
import org.apache.hyracks.algebricks.runtime.base.IAggregateEvaluatorFactory;
@@ -51,91 +37,10 @@
import org.apache.hyracks.dataflow.std.group.IAggregatorDescriptorFactory;
import org.apache.hyracks.dataflow.std.group.preclustered.PreclusteredGroupOperatorDescriptor;
-public class PreSortedDistinctByPOperator extends AbstractPhysicalOperator {
-
- private List<LogicalVariable> columnList;
+public class PreSortedDistinctByPOperator extends AbstractPreSortedDistinctByPOperator {
public PreSortedDistinctByPOperator(List<LogicalVariable> columnList) {
- this.columnList = columnList;
- }
-
- public void setDistinctByColumns(List<LogicalVariable> distinctByColumns) {
- this.columnList = distinctByColumns;
- }
-
- @Override
- public boolean isMicroOperator() {
- return false;
- }
-
- @Override
- public void computeDeliveredProperties(ILogicalOperator op, IOptimizationContext context) {
- AbstractLogicalOperator op2 = (AbstractLogicalOperator) op.getInputs().get(0).getValue();
- IPartitioningProperty pp = op2.getDeliveredPhysicalProperties().getPartitioningProperty();
- List<ILocalStructuralProperty> propsLocal = op2.getDeliveredPhysicalProperties().getLocalProperties();
- deliveredProperties = new StructuralPropertiesVector(pp, propsLocal);
- }
-
- @Override
- public PhysicalRequirements getRequiredPropertiesForChildren(ILogicalOperator op,
- IPhysicalPropertiesVector reqdByParent, IOptimizationContext context) {
- StructuralPropertiesVector[] pv = new StructuralPropertiesVector[1];
- List<ILocalStructuralProperty> localProps = new ArrayList<ILocalStructuralProperty>();
- List<OrderColumn> orderColumns = new ArrayList<OrderColumn>();
- for (LogicalVariable column : columnList) {
- orderColumns.add(new OrderColumn(column, OrderKind.ASC));
- }
- localProps.add(new LocalOrderProperty(orderColumns));
- IPartitioningProperty pp = null;
- AbstractLogicalOperator aop = (AbstractLogicalOperator) op;
- if (aop.getExecutionMode() == ExecutionMode.PARTITIONED) {
- pp = new UnorderedPartitionedProperty(new ListSet<LogicalVariable>(columnList),
- context.getComputationNodeDomain());
- }
- pv[0] = new StructuralPropertiesVector(pp, localProps);
- return new PhysicalRequirements(pv, IPartitioningRequirementsCoordinator.NO_COORDINATION);
- }
-
- @Override
- public void contributeRuntimeOperator(IHyracksJobBuilder builder, JobGenContext context, ILogicalOperator op,
- IOperatorSchema opSchema, IOperatorSchema[] inputSchemas, IOperatorSchema outerPlanSchema)
- throws AlgebricksException {
-
- IOperatorDescriptorRegistry spec = builder.getJobSpec();
- int keys[] = JobGenHelper.variablesToFieldIndexes(columnList, inputSchemas[0]);
- int sz = inputSchemas[0].getSize();
- int fdSz = sz - columnList.size();
- int[] fdColumns = new int[fdSz];
- int j = 0;
- for (LogicalVariable v : inputSchemas[0]) {
- if (!columnList.contains(v)) {
- fdColumns[j++] = inputSchemas[0].findVariable(v);
- }
- }
- int[] keysAndDecs = new int[keys.length + fdColumns.length];
- for (int i = 0; i < keys.length; i++) {
- keysAndDecs[i] = keys[i];
- }
- for (int i = 0; i < fdColumns.length; i++) {
- keysAndDecs[i + keys.length] = fdColumns[i];
- }
-
- IBinaryComparatorFactory[] comparatorFactories = JobGenHelper
- .variablesToAscBinaryComparatorFactories(columnList, context.getTypeEnvironment(op), context);
- IAggregateEvaluatorFactory[] aggFactories = new IAggregateEvaluatorFactory[] {};
- IAggregatorDescriptorFactory aggregatorFactory = new SimpleAlgebricksAccumulatingAggregatorFactory(aggFactories,
- keysAndDecs);
-
- RecordDescriptor recordDescriptor = JobGenHelper.mkRecordDescriptor(context.getTypeEnvironment(op), opSchema,
- context);
- /** make fd columns part of the key but the comparator only compares the distinct key columns */
- PreclusteredGroupOperatorDescriptor opDesc = new PreclusteredGroupOperatorDescriptor(spec, keysAndDecs,
- comparatorFactories, aggregatorFactory, recordDescriptor);
-
- contributeOpDesc(builder, (AbstractLogicalOperator) op, opDesc);
-
- ILogicalOperator src = op.getInputs().get(0).getValue();
- builder.contributeGraphEdge(src, 0, op, 0);
+ super(columnList);
}
@Override
@@ -144,7 +49,33 @@
}
@Override
- public boolean expensiveThanMaterialization() {
- return true;
+ public boolean isMicroOperator() {
+ return false;
+ }
+
+ @Override
+ public void contributeRuntimeOperator(IHyracksJobBuilder builder, JobGenContext context, ILogicalOperator op,
+ IOperatorSchema opSchema, IOperatorSchema[] inputSchemas, IOperatorSchema outerPlanSchema)
+ throws AlgebricksException {
+
+ IOperatorDescriptorRegistry spec = builder.getJobSpec();
+ int[] keysAndDecs = getKeysAndDecs(inputSchemas[0]);
+
+ IBinaryComparatorFactory[] comparatorFactories = JobGenHelper
+ .variablesToAscBinaryComparatorFactories(columnList, context.getTypeEnvironment(op), context);
+ IAggregateEvaluatorFactory[] aggFactories = new IAggregateEvaluatorFactory[] {};
+ IAggregatorDescriptorFactory aggregatorFactory =
+ new SimpleAlgebricksAccumulatingAggregatorFactory(aggFactories, keysAndDecs);
+
+ RecordDescriptor recordDescriptor =
+ JobGenHelper.mkRecordDescriptor(context.getTypeEnvironment(op), opSchema, context);
+ /* make fd columns part of the key but the comparator only compares the distinct key columns */
+ PreclusteredGroupOperatorDescriptor opDesc = new PreclusteredGroupOperatorDescriptor(spec, keysAndDecs,
+ comparatorFactories, aggregatorFactory, recordDescriptor);
+
+ contributeOpDesc(builder, (AbstractLogicalOperator) op, opDesc);
+
+ ILogicalOperator src = op.getInputs().get(0).getValue();
+ builder.contributeGraphEdge(src, 0, op, 0);
}
}
diff --git a/hyracks-fullstack/algebricks/algebricks-rewriter/src/main/java/org/apache/hyracks/algebricks/rewriter/rules/AbstractIntroduceCombinerRule.java b/hyracks-fullstack/algebricks/algebricks-rewriter/src/main/java/org/apache/hyracks/algebricks/rewriter/rules/AbstractIntroduceCombinerRule.java
index a403211..2870074 100644
--- a/hyracks-fullstack/algebricks/algebricks-rewriter/src/main/java/org/apache/hyracks/algebricks/rewriter/rules/AbstractIntroduceCombinerRule.java
+++ b/hyracks-fullstack/algebricks/algebricks-rewriter/src/main/java/org/apache/hyracks/algebricks/rewriter/rules/AbstractIntroduceCombinerRule.java
@@ -32,6 +32,7 @@
import org.apache.hyracks.algebricks.core.algebra.base.ILogicalExpression;
import org.apache.hyracks.algebricks.core.algebra.base.ILogicalOperator;
import org.apache.hyracks.algebricks.core.algebra.base.IOptimizationContext;
+import org.apache.hyracks.algebricks.core.algebra.base.LogicalOperatorTag;
import org.apache.hyracks.algebricks.core.algebra.base.LogicalVariable;
import org.apache.hyracks.algebricks.core.algebra.expressions.AbstractFunctionCallExpression;
import org.apache.hyracks.algebricks.core.algebra.expressions.AggregateFunctionCallExpression;
@@ -59,7 +60,7 @@
AbstractFunctionCallExpression afce = (AbstractFunctionCallExpression) aei.aggExprRef.getValue();
afce.setFunctionInfo(aei.newFunInfo);
afce.getArguments().clear();
- afce.getArguments().add(new MutableObject<ILogicalExpression>(sai.stepOneResult));
+ afce.getArguments().add(new MutableObject<>(sai.stepOneResult));
}
}
}
@@ -68,9 +69,6 @@
GroupByOperator newGbyOp, Set<SimilarAggregatesInfo> toReplaceSet, IOptimizationContext context)
throws AlgebricksException {
- ArrayList<LogicalVariable> pushedVars = new ArrayList<LogicalVariable>();
- ArrayList<Mutable<ILogicalExpression>> pushedExprs = new ArrayList<Mutable<ILogicalExpression>>();
-
List<LogicalVariable> initVars = initAgg.getVariables();
List<Mutable<ILogicalExpression>> initExprs = initAgg.getExpressions();
int numExprs = initVars.size();
@@ -79,20 +77,22 @@
for (int i = 0; i < numExprs; i++) {
AggregateFunctionCallExpression aggFun = (AggregateFunctionCallExpression) initExprs.get(i).getValue();
if (!aggFun.isTwoStep()) {
- return new Pair<Boolean, Mutable<ILogicalOperator>>(false, null);
+ return new Pair<>(false, null);
}
}
+ ArrayList<LogicalVariable> pushedVars = new ArrayList<>();
+ ArrayList<Mutable<ILogicalExpression>> pushedExprs = new ArrayList<>();
+
boolean haveAggToReplace = false;
for (int i = 0; i < numExprs; i++) {
Mutable<ILogicalExpression> expRef = initExprs.get(i);
AggregateFunctionCallExpression aggFun = (AggregateFunctionCallExpression) expRef.getValue();
IFunctionInfo fi1 = aggFun.getStepOneAggregate();
// Clone the aggregate's args.
- List<Mutable<ILogicalExpression>> newArgs = new ArrayList<Mutable<ILogicalExpression>>(aggFun
- .getArguments().size());
+ List<Mutable<ILogicalExpression>> newArgs = new ArrayList<>(aggFun.getArguments().size());
for (Mutable<ILogicalExpression> er : aggFun.getArguments()) {
- newArgs.add(new MutableObject<ILogicalExpression>(er.getValue().cloneExpression()));
+ newArgs.add(new MutableObject<>(er.getValue().cloneExpression()));
}
IFunctionInfo fi2 = aggFun.getStepTwoAggregate();
@@ -100,10 +100,10 @@
LogicalVariable newAggVar = context.newVar();
pushedVars.add(newAggVar);
inf.stepOneResult = new VariableReferenceExpression(newAggVar);
- inf.simAggs = new ArrayList<AggregateExprInfo>();
+ inf.simAggs = new ArrayList<>();
toReplaceSet.add(inf);
AggregateFunctionCallExpression aggLocal = new AggregateFunctionCallExpression(fi1, false, newArgs);
- pushedExprs.add(new MutableObject<ILogicalExpression>(aggLocal));
+ pushedExprs.add(new MutableObject<>(aggLocal));
AggregateExprInfo aei = new AggregateExprInfo();
aei.aggExprRef = expRef;
aei.newFunInfo = fi2;
@@ -118,34 +118,43 @@
if (newGbyOp != null) {
// Cut and paste nested input pipelines of initAgg to pushedAgg's input
Mutable<ILogicalOperator> inputRef = initAgg.getInputs().get(0);
+ if (!isPushableInput(inputRef.getValue())) {
+ return new Pair<>(false, null);
+ }
Mutable<ILogicalOperator> bottomRef = inputRef;
while (bottomRef.getValue().getInputs().size() > 0) {
bottomRef = bottomRef.getValue().getInputs().get(0);
+ if (!isPushableInput(bottomRef.getValue())) {
+ return new Pair<>(false, null);
+ }
}
ILogicalOperator oldNts = bottomRef.getValue();
initAgg.getInputs().clear();
- initAgg.getInputs().add(new MutableObject<ILogicalOperator>(oldNts));
+ initAgg.getInputs().add(new MutableObject<>(oldNts));
// Hook up the nested aggregate op with the outer group by.
- NestedTupleSourceOperator nts = new NestedTupleSourceOperator(new MutableObject<ILogicalOperator>(
- newGbyOp));
+ NestedTupleSourceOperator nts = new NestedTupleSourceOperator(new MutableObject<>(newGbyOp));
nts.setExecutionMode(ExecutionMode.LOCAL);
bottomRef.setValue(nts);
pushedAgg.getInputs().add(inputRef);
} else {
// The local aggregate operator is fed by the input of the original aggregate operator.
- pushedAgg.getInputs().add(new MutableObject<ILogicalOperator>(initAgg.getInputs().get(0).getValue()));
+ pushedAgg.getInputs().add(new MutableObject<>(initAgg.getInputs().get(0).getValue()));
// Reintroduce assign op for the global agg partitioning var.
initAgg.getInputs().get(0).setValue(pushedAgg);
pushedAgg.setGlobal(false);
context.computeAndSetTypeEnvironmentForOperator(pushedAgg);
}
- return new Pair<Boolean, Mutable<ILogicalOperator>>(true, new MutableObject<ILogicalOperator>(pushedAgg));
+ return new Pair<>(true, new MutableObject<ILogicalOperator>(pushedAgg));
} else {
- return new Pair<Boolean, Mutable<ILogicalOperator>>(haveAggToReplace, null);
+ return new Pair<>(haveAggToReplace, null);
}
}
+ protected boolean isPushableInput(ILogicalOperator op) {
+ return op.getOperatorTag() != LogicalOperatorTag.DISTINCT;
+ }
+
protected class SimilarAggregatesInfo {
ILogicalExpression stepOneResult;
List<AggregateExprInfo> simAggs;
@@ -157,6 +166,6 @@
}
protected class BookkeepingInfo {
- Map<GroupByOperator, List<LogicalVariable>> modifyGbyMap = new HashMap<GroupByOperator, List<LogicalVariable>>();
+ Map<GroupByOperator, List<LogicalVariable>> modifyGbyMap = new HashMap<>();
}
}
diff --git a/hyracks-fullstack/algebricks/algebricks-rewriter/src/main/java/org/apache/hyracks/algebricks/rewriter/rules/SetAlgebricksPhysicalOperatorsRule.java b/hyracks-fullstack/algebricks/algebricks-rewriter/src/main/java/org/apache/hyracks/algebricks/rewriter/rules/SetAlgebricksPhysicalOperatorsRule.java
index 16ed9cb..84961d6 100644
--- a/hyracks-fullstack/algebricks/algebricks-rewriter/src/main/java/org/apache/hyracks/algebricks/rewriter/rules/SetAlgebricksPhysicalOperatorsRule.java
+++ b/hyracks-fullstack/algebricks/algebricks-rewriter/src/main/java/org/apache/hyracks/algebricks/rewriter/rules/SetAlgebricksPhysicalOperatorsRule.java
@@ -65,6 +65,7 @@
import org.apache.hyracks.algebricks.core.algebra.operators.physical.InsertDeleteUpsertPOperator;
import org.apache.hyracks.algebricks.core.algebra.operators.physical.IntersectPOperator;
import org.apache.hyracks.algebricks.core.algebra.operators.physical.LeftOuterUnnestPOperator;
+import org.apache.hyracks.algebricks.core.algebra.operators.physical.MicroPreSortedDistinctByPOperator;
import org.apache.hyracks.algebricks.core.algebra.operators.physical.MicroPreclusteredGroupByPOperator;
import org.apache.hyracks.algebricks.core.algebra.operators.physical.NestedTupleSourcePOperator;
import org.apache.hyracks.algebricks.core.algebra.operators.physical.PreSortedDistinctByPOperator;
@@ -135,7 +136,12 @@
}
case DISTINCT: {
DistinctOperator distinct = (DistinctOperator) op;
- distinct.setPhysicalOperator(new PreSortedDistinctByPOperator(distinct.getDistinctByVarList()));
+ if (topLevelOp) {
+ distinct.setPhysicalOperator(new PreSortedDistinctByPOperator(distinct.getDistinctByVarList()));
+ } else {
+ distinct.setPhysicalOperator(
+ new MicroPreSortedDistinctByPOperator(distinct.getDistinctByVarList()));
+ }
break;
}
case EMPTYTUPLESOURCE: {