I have Metabase connected to cubecloud. the preaggregation set in Cubecloud is
granulairity : day ,
partition granularity: month
When i create charts i am always able to have the time parameter set as an "Hour or month" but when i set the time parameter as a "day" or a "week" i get the following error:
Error during rewrite: 'CAST(Census.Time AS Date32)' expression can't be coerced to any members of following cubes:Census
or
ERROR: Error during rewrite: 'CAST(datetrunc(Utf8("week"),Census.Time + IntervalDayTime("4294967296")) AS Timestamp(Nanosecond, None)) + IntervalDayTime("-4294967296")' expression can't be coerced to any members of following cubes: Census.
How can i fix this?
FYI hour, date, week and month group by options work correctly on Cube Playground.
Hi @dvyach
Post "Diagnostic Info" from Admin > Troubleshooting, and how you're connecting to Cube.
I'm guessing there's some type incompatibility as Metabase doesn't have nanosecond support.
Have you looked at other issues in the Cube repo? https://github.com/cube-js/cube.js/issues