|
Hi,
Can i expect the output from this:
Table revenue = tableEnv.sql(
"SELECT TUMBLE_START(EventTime, INTERVAL '30' MINUTE) as tStart, " +
"TUMBLE_END(EventTime, INTERVAL '30' MINUTE) as tEnd, " +
"cID, " +
"cName, " +
"SUM(revenue) AS revSum " +
"FROM Orders " +
"WHERE cCountry = 'FRANCE' " +
"GROUP BY TUMBLE(EventTime, INTERVAL '30' MINUTE), cID, cName"
);
being the same as this:
Table revenue = tableEnv.sql(
"SELECT cID, cName, SUM(revenue) AS revSum " +
"FROM Orders " +
"WHERE cCountry = 'FRANCE' " +
"GROUP BY cID, cName"
);
revenue
.select("*, e.start, e.end")
.window(Tumble.over("30.minute").on("EventTime").as("e"))
.groupBy("e")
Or the second involves one query as nested of tumble query?
Thanks
|