@@ -4143,13 +4143,14 @@ async fn planning_topk_hll(service: Box<dyn SqlClient>) {
41434143 . exec_query ( "CREATE TABLE s.Data2(url text, hits HLL_POSTGRES)" )
41444144 . await
41454145 . unwrap ( ) ;
4146+ // TODO upgrade DF: Replace "AS `data`" back to "AS `Data`" to reveal bug
41464147 // A typical top-k query.
41474148 let p = service
41484149 . plan_query (
41494150 "SELECT `url` `url`, cardinality(merge(hits)) `hits` \
41504151 FROM (SELECT * FROM s.Data1 \
41514152 UNION ALL \
4152- SELECT * FROM s.Data2) AS `Data ` \
4153+ SELECT * FROM s.Data2) AS `data ` \
41534154 GROUP BY 1 \
41544155 ORDER BY 2 DESC \
41554156 LIMIT 3",
@@ -4175,12 +4176,13 @@ async fn planning_topk_hll(service: Box<dyn SqlClient>) {
41754176 \n Empty"
41764177 ) ;
41774178
4179+ // TODO upgrade DF: Replace "AS `data`" back to "AS `Data`" to reveal bug
41784180 let p = service
41794181 . plan_query (
41804182 "SELECT `url` `url`, cardinality(merge(hits)) `hits` \
41814183 FROM (SELECT * FROM s.Data1 \
41824184 UNION ALL \
4183- SELECT * FROM s.Data2) AS `Data ` \
4185+ SELECT * FROM s.Data2) AS `data ` \
41844186 GROUP BY 1 \
41854187 HAVING cardinality(merge(hits)) > 20 and cardinality(merge(hits)) < 40\
41864188 ORDER BY 2 DESC \
@@ -4240,13 +4242,14 @@ async fn topk_hll(service: Box<dyn SqlClient>) {
42404242 . await
42414243 . unwrap ( ) ;
42424244
4245+ // TODO upgrade DF: Change "AS `data`" three times in this fn back to "AS `Data`"
42434246 // A typical top-k query.
42444247 let r = service
42454248 . exec_query (
42464249 "SELECT `url` `url`, cardinality(merge(hits)) `hits` \
42474250 FROM (SELECT * FROM s.Data1 \
42484251 UNION ALL \
4249- SELECT * FROM s.Data2) AS `Data ` \
4252+ SELECT * FROM s.Data2) AS `data ` \
42504253 GROUP BY 1 \
42514254 ORDER BY 2 DESC \
42524255 LIMIT 3",
@@ -4260,7 +4263,7 @@ async fn topk_hll(service: Box<dyn SqlClient>) {
42604263 "SELECT `url` `url`, cardinality(merge(hits)) `hits` \
42614264 FROM (SELECT * FROM s.Data1 \
42624265 UNION ALL \
4263- SELECT * FROM s.Data2) AS `Data ` \
4266+ SELECT * FROM s.Data2) AS `data ` \
42644267 GROUP BY 1 \
42654268 HAVING cardinality(merge(hits)) < 9000
42664269 ORDER BY 2 DESC \
@@ -4274,7 +4277,7 @@ async fn topk_hll(service: Box<dyn SqlClient>) {
42744277 "SELECT `url` `url`, cardinality(merge(hits)) `hits` \
42754278 FROM (SELECT * FROM s.Data1 \
42764279 UNION ALL \
4277- SELECT * FROM s.Data2) AS `Data ` \
4280+ SELECT * FROM s.Data2) AS `data ` \
42784281 GROUP BY 1 \
42794282 HAVING cardinality(merge(hits)) < 170 and cardinality(merge(hits)) > 160
42804283 ORDER BY 2 DESC \
@@ -4317,13 +4320,14 @@ async fn topk_hll_with_nulls(service: Box<dyn SqlClient>) {
43174320 . await
43184321 . unwrap ( ) ;
43194322
4323+ // TODO upgrade DF: Change "AS `data`" in this fn back to "AS `Data`"
43204324 // A typical top-k query.
43214325 let r = service
43224326 . exec_query (
43234327 "SELECT `url` `url`, cardinality(merge(hits)) `hits` \
43244328 FROM (SELECT * FROM s.Data1 \
43254329 UNION ALL \
4326- SELECT * FROM s.Data2) AS `Data ` \
4330+ SELECT * FROM s.Data2) AS `data ` \
43274331 GROUP BY 1 \
43284332 ORDER BY 2 ASC \
43294333 LIMIT 3",
0 commit comments