Open elqx opened 11 months ago
If you are interested in working on this issue, please leave a comment below and we will be happy to assign the issue to you. If this is the first time you are contributing a Pull Request to Cube.js, please check our contribution guidelines. You can also post any questions while contributing in the #contributors channel in the Cube.js Slack.
@elqx Yep. I guess we need to revisit measure string filters.
I was able to reproduce this with Cube v0.36.3 (latest), same behavior as reported:
Describe the bug Cube generates incorrect query when measure of type 'string' is used as a filter with operator 'equals'. This applies to Clickhouse driver. Despite the measure being of type 'string', the generated HAVING clause tries to compare string value to the value of toFloat64(?).
To Reproduce Steps to reproduce the behavior:
Expected behavior The correct query should be generated. Cube should not use the toFloat64 function.
Screenshots
Minimally reproducible Cube Schema
Version: 0.34.10