You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pinot.apache.org by GitBox <gi...@apache.org> on 2018/11/19 18:23:35 UTC

[GitHub] chenboat opened a new issue #3513: DATETIMECONVERT udf does not work for customized timezone and bucket size > 1 day

chenboat opened a new issue #3513:  DATETIMECONVERT udf does not work for customized timezone and bucket size > 1 day
URL: https://github.com/apache/incubator-pinot/issues/3513
 
 
   When running the following query using the DATETIMECONVERT udf, we encounter the following query execution exception (we notice the exception disappear when we change the bucket size from 7 to 1 day):
   `QueryExecutionError:\norg.joda.time.IllegalFieldValueException: Value 0 for dayOfMonth must be in the range [1,30]\n\tat org.joda.time.field.FieldUtils.verifyValueBounds(FieldUtils.java:234)\n\tat org.joda.time.field.PreciseDurationDateTimeField.set(PreciseDurationDateTimeField.java:79)\n\tat org.joda.time.chrono.ZonedChronology$ZonedDateTimeField.set(ZonedChronology.java:496)\n\tat org.joda.time.DateTime.withDayOfMonth(DateTime.java:1782)\n\tat com.linkedin.pinot.core.operator.transform.transformer.datetime.BaseDateTimeTransformer.lambda$new$4(BaseDateTimeTransformer.java:95)\n\tat com.linkedin.pinot.core.operator.transform.transformer.datetime.BaseDateTimeTransformer.transformMillisToSDF(BaseDateTimeTransformer.java:119)\n\tat com.linkedin.pinot.core.operator.transform.transformer.datetime.EpochToSDFTransformer.transform(EpochToSDFTransformer.java:37)\n\tat com.linkedin.pinot.core.operator.transform.function.DateTimeConversionTransformFunction.transformToStringValuesSV(DateTimeConversionTransformFunction.java:154)\n\tat com.linkedin.pinot.core.operator.docvalsets.TransformBlockValSet.getStringValuesSV(TransformBlockValSet.java:68)\n\tat com.linkedin.pinot.core.query.aggregation.groupby.NoDictionarySingleColumnGroupKeyGenerator.generateKeysForBlock(NoDictionarySingleColumnGroupKeyGenerator.java:95)\n\tat com.linkedin.pinot.core.query.aggregation.groupby.DefaultGroupByExecutor.process(DefaultGroupByExecutor.java:135)\n\tat com.linkedin.pinot.core.operator.query.AggregationGroupByOperator.getNextBlock(AggregationGroupByOperator.java:78)\n\tat com.linkedin.pinot.core.operator.query.AggregationGroupByOperator.getNextBlock(AggregationGroupByOperator.java:35)\n\tat com.linkedin.pinot.core.operator.BaseOperator.nextBlock(BaseOperator.java:42)"`
   
   **Query**:
   select count(source_start_utc_time) from some_table GROUP BY DATETIMECONVERT(source_start_utc_time, '1:SECONDS:EPOCH', '1:DAYS:SIMPLE_DATE_FORMAT:yyyyMMdd tz(America/Chicago)', '7:DAYS')
   
   **Data to reproduce the issue**
   "columns": ["source_start_utc_time"],
           "results": [
               ["1541534400"],
               ["1541579400"],
               ["1541539800"],
               ["1541566500"],
               ["1541559600"],
               ["1541563200"],
               ["1541608200"],
               ["1541545200"],
               ["1541611800"],
               ["1541541600"]
           ]

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pinot.apache.org
For additional commands, e-mail: dev-help@pinot.apache.org