cube icon indicating copy to clipboard operation
cube copied to clipboard

Metabase - SQL_PUSH_DOWN custom Expression Float32 not supported

Open pauldheinrichs opened this issue 1 month ago • 0 comments

Describe the bug

When attempting to build a custom expression with CUBE_SQL_PUSH down enabled while building a question, Metabase generates a question expression as follows CAST(count(*) as float) resulting in an error

Execution error: Type Float32 is not supported in response transformation from Cube

image


Manually updating the SQL to use the type int works just fine too ex:

CAST(COUNT(*) AS int)

While this can be solved by creating a measure, feels like something SQL_PUSH_DOWN should support to some capacity?

This is on the latest version of cube

pauldheinrichs avatar May 31 '24 18:05 pauldheinrichs