You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/04/14 06:52:08 UTC
[GitHub] [pinot] Akshay2Agarwal opened a new issue, #8541: Query fails due to error in long version in WHERE clause
Akshay2Agarwal opened a new issue, #8541:
URL: https://github.com/apache/pinot/issues/8541
Facing an issue in pinot where queries like (as mentioned over [docs](https://docs.pinot.apache.org/configuration-reference/functions/now)):
```
SELECT *
FROM table_name
WHER time_ms_epoch_col > now() - 86400000 * 7
LIMIT 10
```
fails over at this [line](https://github.com/apache/pinot/blob/release-0.10.0/pinot-spi/src/main/java/org/apache/pinot/spi/data/FieldSpec.java#L486) due to conversion failure.
Logs:
```
'QueryExecutionError:\n'
'org.apache.pinot.spi.exception.BadQueryRequestException: '
'java.lang.IllegalArgumentException: Cannot convert value: '
"'1.649312982053E12' to type: LONG\n"
'\tat '
'org.apache.pinot.core.query.pruner.ColumnValueSegmentPruner.convertValue(ColumnValueSegmentPruner.java:424)\n'
'\tat '
'org.apache.pinot.core.query.pruner.ColumnValueSegmentPruner.pruneRangePredicate(ColumnValueSegmentPruner.java:369)\n'
'\tat '
'org.apache.pinot.core.query.pruner.ColumnValueSegmentPruner.pruneSegment(ColumnValueSegmentPruner.java:230)\n'
'\tat '
'org.apache.pinot.core.query.pruner.ColumnValueSegmentPruner.prune(ColumnValueSegmentPruner.java:160)\n'
'...\n'
'Caused by: java.lang.IllegalArgumentException: Cannot convert '
"value: '1.649312982053E12' to type: LONG\n"
'\tat '
'org.apache.pinot.spi.data.FieldSpec$DataType.convertInternal(FieldSpec.java:510)\n'
'\tat '
'org.apache.pinot.core.query.pruner.ColumnValueSegmentPruner.convertValue(ColumnValueSegmentPruner.java:422)\n'
'\t... 17 more'
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
[GitHub] [pinot] Akshay2Agarwal commented on issue #8541: Query fails due to error in long conversion of millisecond time column in WHERE clause
Posted by GitBox <gi...@apache.org>.
Akshay2Agarwal commented on issue #8541:
URL: https://github.com/apache/pinot/issues/8541#issuecomment-1098779444
I realized schema was missing my bad.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
[GitHub] [pinot] Akshay2Agarwal closed issue #8541: Query fails due to error in long conversion of millisecond time column in WHERE clause
Posted by GitBox <gi...@apache.org>.
Akshay2Agarwal closed issue #8541: Query fails due to error in long conversion of millisecond time column in WHERE clause
URL: https://github.com/apache/pinot/issues/8541
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org