You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "jadami10 (via GitHub)" <gi...@apache.org> on 2023/09/19 23:12:35 UTC
[GitHub] [pinot] jadami10 opened a new issue, #11629: Columns with CAST in the select statement are return as OBJECT data types in the resultSet
jadami10 opened a new issue, #11629:
URL: https://github.com/apache/pinot/issues/11629
We had a query that was doing `select long_column from X`. The user updated it to do `select long_column - Y from X`. This change the `columnDataTypes` for this to a `DOUBLE`. The user's assertions on column types broke, so they changed it to `SELECT CAST(long_column - Y AS LONG) from X`. But this also didn't work because `columnDataTypes` then showed `OBJECT`.
For `CAST`, the expectation is a successful result would show the casted data type
--
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] Jackie-Jiang commented on issue #11629: Columns with CAST in the select statement are return as OBJECT data types in the resultSet
Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang commented on issue #11629:
URL: https://github.com/apache/pinot/issues/11629#issuecomment-1728657739
That involves some implementation details. If the `CAST` is applied to a column (not aggregate function), it will be solved with `CastTransformFunction`, where the return type can be properly derived. If the `CAST` is applied to an aggregate function (we call it post-aggregation), it will be solved with scalar function (`DataTypeConversionFunctions.cast()`), where currently pinot cannot properly derive the result type
--
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
Re: [I] Columns with CAST in the select statement are return as OBJECT data types in the resultSet [pinot]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #11629:
URL: https://github.com/apache/pinot/issues/11629#issuecomment-5723098816
This issue has been automatically marked as stale because it has not had any activity in the last 150 days. It will be closed in 30 days if no further activity occurs. If this issue is still relevant, please leave a comment to keep it open. Thank you for your contributions!
--
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] jadami10 commented on issue #11629: Columns with CAST in the select statement are return as OBJECT data types in the resultSet
Posted by "jadami10 (via GitHub)" <gi...@apache.org>.
jadami10 commented on issue #11629:
URL: https://github.com/apache/pinot/issues/11629#issuecomment-1726706755
yes sorry, the actual query is more like `SELECT CAST(SUM(long_column) AS LONG)`. What is the limitation here? The type result of the cast should be unaffected by the aggregation, no?
--
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] Jackie-Jiang commented on issue #11629: Columns with CAST in the select statement are return as OBJECT data types in the resultSet
Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang commented on issue #11629:
URL: https://github.com/apache/pinot/issues/11629#issuecomment-1726704392
It this the complete query, or it is on top of an aggregation?
Currently we cannot tell the result type of `CAST` when it is an post aggregation, but the result type should be correct if it is modeled as a regular transform
--
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
Re: [I] Columns with CAST in the select statement are return as OBJECT data types in the resultSet [pinot]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #11629:
URL: https://github.com/apache/pinot/issues/11629#issuecomment-6305445396
This issue has been closed because it has been inactive for 180 days. If you believe this issue is still relevant, please feel free to reopen it or create a new issue. Thank you!
--
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
Re: [I] Columns with CAST in the select statement are return as OBJECT data types in the resultSet [pinot]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #11629: Columns with CAST in the select statement are return as OBJECT data types in the resultSet
URL: https://github.com/apache/pinot/issues/11629
--
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