Xiang Fu
# navigate to directory containing the setup scripts
cd pinot-distribution/target/apache-pinot-incubating-$PINOT_VERSION-bin/apache-pinot-incubating-$PINOT_VERSION-bin
Damiano
04/29/2020, 9:45 AMXiang Fu
Damiano
04/29/2020, 9:46 AMXiang Fu
Damiano
04/29/2020, 9:47 AMDamiano
04/29/2020, 9:47 AMXiang Fu
Damiano
04/29/2020, 9:52 AMDamiano
04/29/2020, 9:52 AMDamiano
04/29/2020, 9:53 AMXiang Fu
Damiano
04/29/2020, 9:55 AMDamiano
04/29/2020, 10:03 AMDan Hill
04/29/2020, 10:19 PMdatetrunc
and dateTimeConv
have any known issues?
When I run
select timestamp, sum(impressions) from events group by timestamp
I receive results (30 rows).
When I execute the following queries, I get zero rows.
select DATETRUNC('day', timestamp) as date, sum(impressions) from events group by date
select dateTimeConvert(timestamp, '1:MILLISECONDS:EPOCH', '1:DAYS:SIMPLE_DATE_FORMAT:yyyyMMdd tz(America/Los_Angeles)', '1:DAYS') as date, sum(impressions) from events group by date
Dan Hill
04/29/2020, 10:35 PMFunction datetrunc not registered
and Function datetimeconvert not registered
.Kishore G
Kishore G
Kishore G
Dan Hill
04/29/2020, 10:59 PMDan Hill
04/29/2020, 11:00 PMNeha Pawar
Dan Hill
04/29/2020, 11:58 PMselect dateTimeConvert('timestamp', '1:MILLISECONDS:EPOCH', '1:DAYS:SIMPLE_DATE_FORMAT:yyyyMMdd tz(America/Los_Angeles)', '1:DAYS') as mydate, sum(impressions) from events group by mydate
ProcessingException(errorCode: 450,
message: InternalError: <http://java.io|java.io>.IOException: Failed: HTTP error code: 500
at org.apache.pinot.controller.api.resources.PinotQueryResource.sendPostRaw(PinotQueryResource.java: 284)
at org.apache.pinot.controller.api.resources.PinotQueryResource.sendRequestRaw(PinotQueryResource.java: 322)
at org.apache.pinot.controller.api.resources.PinotQueryResource.getQueryResponse(PinotQueryResource.java: 204)
at org.apache.pinot.controller.api.resources.PinotQueryResource.handlePostSql(PinotQueryResource.java: 131)
at sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source)
java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.Double
at org.apache.pinot.core.query.aggregation.function.SumAggregationFunction.extractFinalResult(SumAggregationFunction.java:30) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-3cb4a25fbad543ed552443e8d884a489079dc003]
at org.apache.pinot.core.query.reduce.GroupByDataTableReducer.setSQLGroupByInResultTable(GroupByDataTableReducer.java:211) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-3cb4a25fbad543ed552443e8d884a489079dc003]
at org.apache.pinot.core.query.reduce.GroupByDataTableReducer.reduceAndSetResults(GroupByDataTableReducer.java:142) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-3cb4a25fbad543ed552443e8d884a489079dc003]
at org.apache.pinot.core.query.reduce.BrokerReduceService.reduceOnDataTable(BrokerReduceService.java:186) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-3cb4a25fbad543ed552443e8d884a489079dc003]
at org.apache.pinot.broker.requesthandler.SingleConnectionBrokerRequestHandler.processBrokerRequest(SingleConnectionBrokerRequestHandler.java:107) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-3cb4a25fbad543ed552443e8d884a489079dc003]
at org.apache.pinot.broker.requesthandler.BaseBrokerRequestHandler.handleRequest(BaseBrokerRequestHandler.java:319) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-3cb4a25fbad543ed552443e8d884a489079dc003]
at org.apache.pinot.broker.api.resources.PinotClientRequest.processSqlQueryPost(PinotClientRequest.java:146) ~[pinot-all-0.3.0-SNAPSHOT-jar-with-dependencies.jar:0.3.0-SNAPSHOT-3cb4a25fbad543ed552443e8d884a489079dc003]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_242]
Dan Hill
04/29/2020, 11:58 PMDan Hill
04/29/2020, 11:59 PMDan Hill
04/29/2020, 11:59 PMDan Hill
04/30/2020, 12:03 AMNeha Pawar
Neha Pawar
Neha Pawar
select dateTimeConvert("timestamp", '1:MILLISECONDS:EPOCH', '1:HOURS:EPOCH', '1:HOURS') as myDate, sum(score) from transcript group by myDate