在 Apache Druid SQL 查询中组合 TIME_FLOOR 和 MILLIS_TO_TIMESTAMP 以获得纪元时间戳

Combine TIME_FLOOR and MILLIS_TO_TIMESTAMP in Apache Druid SQL query to get epoch timestamp

你能帮我弄清楚 Apache Druid SQL 请求获得以毫秒为单位的时间戳的响应吗?

SELECT
"c_id", TIME_FLOOR("__time", 'PT24H') as __time, SUM(active_conn) as active_conn
FROM "mock_data"
WHERE "__time" BETWEEN TIMESTAMP '2021-03-03 00:00:00' AND TIMESTAMP '2021-03-18 00:00:00' AND "c_id" IN (0,3)  AND "customer_id" = 8526137
GROUP BY 1,2

得到

[["4","2021-03-18T00:00:00.000Z",639477945]]

想要

[["4",1614776400000,639477945]]

你或许可以使用 TIMESTAMP_TO_MILLIS(__time)