>In most cases the internal representation of date objects in the Enumerable
>convention are longs [1].
For the reference you give, date object is Integer internal instead of long.
Best,
Danny Chan
在 2019年10月6日 +0800 PM2:57,dev@calcite.apache.org,写道:
>
> In most cases the internal representation
Hi Jess,
In most cases the internal representation of date objects in the Enumerable
convention are longs [1].
Keep in mind that there are also other cases (e.g., [2]) where there are
conversion of dates to other types.
Best,
Stamatis
[1]
https://github.com/apache/calcite/blob/35c5f57d7db2b47450
I'm returning string objects from my enumerable, but getting an exception
when trying to use the MONTH function which compiles to:
org.apache.calcite.avatica.util.DateTimeUtils.unixDateExtract(org.apache.calcite.avatica.util.TimeUnitRange.MONTH,
org.apache.calcite.runtime.SqlFunctions.toInt(curre