Open hugoJuhel opened 1 year 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.
@hugoJuhel You can cast to int as a workaround.
@hugoJuhel You can cast to int as a workaround.
@paveltiunov , thanks for your suggestion.
I tried that in Cube Cloud yesterday but, even when casted as an int
in the schema definition, the pre-aggregation still casts it back as an hugeInt
.
here is the yaml
definition I have been using on cube cloud.
cubes:
- name: spam
pre_aggregations:
- name: main
dimensions:
- CUBE.org
measures:
- CUBE.metric
sql: SELECT 'foo' AS org, 10::int AS metric
dimensions:
- name: org
sql: org
type: string
primary_key: true
measures:
- name: metric
sql: metric::int
type: sum
The only workaround I have found so far is casting my field to a float
type.
any updates?
@dyegoaurelio Not yet.
I can confirm that the behavior is still the same (hugeInt
-related error) on Cube v0.35.81 (latest in v0.35.x).
However, on v0.36.0 thru v0.36.7 (latest) the query that should trigger a pre-aggregation build just never finishes:
Describe the bug
Cubestore does not support the
HugeInt
type used byduckdb
I have first encountered the bug with the on-prem cube, but I have been able to reproduce it on the
cube cloud
. Both the cube files and printscreens are comming from the cloud version.When using Cube with the
duckdb
driver, Cube fails at creating (external) pre-aggregationTo Reproduce Steps to reproduce the behavior :
sum
over the integer columnhugeInt
column to store the data.I have also created a small cube definition showcasing the bug.
Expected behavior The driver should be casting the
hugeInt
to the corresponding MySql typeScreenshots Schema :
Playground :
Pre-aggregation error :
Stack trace
Minimally reproducible Cube Schema
Version: v0.33.53
Additional context Dockerfile used to run the Cube