I will use `double` as workaround for now, I wonder how to write a unit test that can catch it?
> On 20 Oct 2023, at 14:06, Egor Ryashin <riashin.e...@gmail.com> wrote: > > so, this works (with double): > SELECT > cast(1.0 as double) m3 > from "wikipedia" > >> On 20 Oct 2023, at 14:01, Egor Ryashin <riashin.e...@gmail.com> wrote: >> >> what I see in the debugger >> >> >>> On 19 Oct 2023, at 18:47, Egor Ryashin <riashin.e...@gmail.com> wrote: >>> >>> There wasn't one >>> >>> On Thu, Oct 19, 2023, 18:32 Mihai Budiu <mbu...@gmail.com >>> <mailto:mbu...@gmail.com>> wrote: >>>> Can you provide a stack trace? >>>> ________________________________ >>>> From: Egor Ryashin <riashin.e...@gmail.com <mailto:riashin.e...@gmail.com>> >>>> Sent: Thursday, October 19, 2023 6:47:48 AM >>>> To: dev@calcite.apache.org <mailto:dev@calcite.apache.org> >>>> <dev@calcite.apache.org <mailto:dev@calcite.apache.org>> >>>> Subject: ClassCastException: class java.lang.Long cannot be cast to class >>>> java.lang.Float >>>> >>>> Hi all, >>>> >>>> I have a strange error using Apache Druid avatica protobuf endpoint. I send >>>> this query: >>>> SELECT "user", >>>> cast("added" as float) m3 >>>> from "wikipedia" >>>> limit 10 >>>> >>>> and get this: >>>> ClassCastException: class java.lang.Long cannot be cast to class >>>> java.lang.Float (java.lang.Long and java.lang.Float are in module java.base >>>> of loader 'bootstrap') >>>> >>>> I wonder if it can be Avatica protobuf implementation? >>>> >>>> Thanks >> >> <PastedGraphic-1.png> >