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
@Ignore("These tests require a running druid instance. You may start druid by using the docker-compose provide in resources/druid and enable these tests")
@@ -72,7 +81,7 @@ public void testSingleColumnProject() throws Exception {
72
81
.sqlQuery(query)
73
82
.unOrdered()
74
83
.baselineColumns("comment")
75
-
.expectsNumRecords(24433)
84
+
.expectsNumRecords(876)
76
85
.go();
77
86
}
78
87
@@ -84,7 +93,36 @@ public void testCountAllRowsQuery() throws Exception {
84
93
.sqlQuery(query)
85
94
.unOrdered()
86
95
.baselineColumns("mycount")
87
-
.baselineValues(24433L)
96
+
.baselineValues(876L)
88
97
.go();
89
98
}
99
+
100
+
@Test
101
+
publicvoidtestGroupByQuery() throwsException {
102
+
Stringsql = String.format("SELECT `namespace`, COUNT(*) AS user_count FROM druid.`%s` GROUP BY `namespace` ORDER BY user_count DESC LIMIT 5",TEST_DATASOURCE_WIKIPEDIA);
0 commit comments