You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 23222a5
Browse filesBrowse the repository at this point in the historyBrowse files
committed
[Native] Update CI Image and advance Velox
Add new CI image
Add -DFOLLY_HAVE_INT128_T=ON to centos setup script
Add known warnings to Linux
Advance Velox
Add support for aggregations over sorted inputs
Co-authored-by: Masha Basmanova <mbasmanova@fb.com>
Co-authored-by: Deepak Majeti <deepak.majeti@ibm.com>
Copy file name to clipboardExpand all lines: presto-native-execution/src/test/java/com/facebook/presto/nativeworker/AbstractTestNativeAggregations.java
+5-12Lines changed: 5 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -62,13 +62,13 @@ public void testAggregations()
62
62
63
63
assertQuery("SELECT sum(custkey), clerk FROM orders GROUP BY clerk HAVING sum(custkey) > 10000");
64
64
65
-
// TODO results from array_agg() are not deterministic so we just compare cardinality for the time being
66
-
// We can switch to array_sort() once it becomes available from velox
67
-
assertQuery("SELECT orderkey, cardinality(array_agg(linenumber)) FROM lineitem GROUP BY 1");
65
+
assertQuery("SELECT orderkey, array_sort(array_agg(linenumber)) FROM lineitem GROUP BY 1");
68
66
assertQuery("SELECT orderkey, map_agg(linenumber, discount) FROM lineitem GROUP BY 1");
69
67
70
-
// TODO results from map_union() are not deterministic so we just compare cardinality for the time being
71
-
assertQuery("SELECT cardinality(map_union(quantity_by_linenumber)) FROM orders_ex");
68
+
assertQuery("SELECT array_agg(nationkey ORDER BY name) FROM nation");
69
+
assertQuery("SELECT orderkey, array_agg(quantity ORDER BY linenumber DESC) FROM lineitem GROUP BY 1");
70
+
71
+
assertQuery("SELECT map_keys(map_union(quantity_by_linenumber)) FROM orders_ex");
72
72
73
73
assertQuery("SELECT orderkey, count_if(linenumber % 2 > 0) FROM lineitem GROUP BY 1");
74
74
assertQuery("SELECT orderkey, bool_and(linenumber % 2 = 1) FROM lineitem GROUP BY 1");
@@ -286,13 +286,6 @@ public void testMarkDistinct()
286
286
assertQuery("SELECT orderkey, count(distinct comment), sum(distinct linenumber) FROM lineitem GROUP BY 1");
287
287
}
288
288
289
-
@Test
290
-
publicvoidtestUnsupported()
291
-
{
292
-
assertQueryFails("SELECT array_agg(nationkey ORDER BY name) FROM nation",
293
-
".* Aggregations with ORDER BY are not supported yet.");
0 commit comments