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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
