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
SELECT
CAST(DATE_TRUNC('day', CAST(DATETIMECONVERT(ts, '1:MILLISECONDS:EPOCH', '1:MILLISECONDS:EPOCH', '1:MILLISECONDS') AS TIMESTAMP)) AS TIMESTAMP) AS day_epoch_ms,
sum(met) AS "sumMet"
FROM mytable
GROUP BY
CAST(DATE_TRUNC('day', CAST(DATETIMECONVERT(ts, '1:MILLISECONDS:EPOCH', '1:MILLISECONDS:EPOCH', '1:MILLISECONDS') AS TIMESTAMP)) AS TIMESTAMP)
ORDER BY
sum(met) DESC
LIMIT 10000;
Exception:
Error: {'errorCode': 150,
'message': 'SQLParsingError:\n'
'org.apache.pinot.sql.parsers.SqlCompilationException: '
"'as(cast(datetrunc('day', cast(datetimeconvert(ts, "
"'1:MILLISECONDS:EPOCH', '1:MILLISECONDS:EPOCH', "
"'1:MILLISECONDS'), 'TIMESTAMP')), 'TIMESTAMP'), day_epoch_ms)' should "
'appear in GROUP BY clause.\n'
The text was updated successfully, but these errors were encountered:
Sampe query:
Exception:
The text was updated successfully, but these errors were encountered: