You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "viirya (via GitHub)" <gi...@apache.org> on 2024/07/24 22:52:06 UTC

[I] Comet query with range frame will fail [datafusion-comet]

viirya opened a new issue, #720:
URL: https://github.com/apache/datafusion-comet/issues/720

   ### Describe the bug
   
   I found this issue while fixing CI failures in #651.
   
   The following errors happens many times:
   ```
   [info]   java.lang.ClassCastException: class java.lang.Long cannot be cast to class java.lang.Integer (java.lang.Long and java.lang.Integer are in module java.base of loader 'bootstrap')
   [info]   at scala.runtime.BoxesRunTime.unboxToInt(BoxesRunTime.java:103)
   [info]   at org.apache.comet.serde.QueryPlanSerde$.windowExprToProto(QueryPlanSerde.scala:281)
   ```
   
   It is because we don't separate `RangeFrame` and `RowFrame` for window expression support. Looks like we only support `RowFrame` which can take integers as upper and lower bounds. So the current code just tries to cast upper and lower bound expression values into `Int`.
   
   For `RangeFrame`, it can accept more data types. Once we do the casting there, it causes the errors.
   
   
   
   ### Steps to reproduce
   
   _No response_
   
   ### Expected behavior
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
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: github-unsubscribe@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Comet query with range frame will fail [datafusion-comet]

Posted by "viirya (via GitHub)" <gi...@apache.org>.
viirya closed issue #720: Comet query with range frame will fail
URL: https://github.com/apache/datafusion-comet/issues/720


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org