138
questions
0
votes
0
answers
14
views
How to log FILTER_PARAMS in SQL query within Cube.js?
I'm working with Cube.js and need to log the values of FILTER_PARAMS within an SQL query to verify the parameters passed dynamically to my cube module. I've tried using console.log directly in the sql ...
0
votes
1
answer
87
views
How to configure Cube.js pre-aggregations to refresh every 12 hours or at a specific time (e.g., 4:00 AM UTC)?
I’m working on a Cube.js project where I need to configure pre-aggregations to refresh at regular intervals, specifically every 12 hours or at a specific time like 4:00 AM UTC. I’ve set up a cube to ...
0
votes
0
answers
28
views
Transitive join to an entity referenced by several other entities
I have the data schema depicted in the image below
TPCH schema
I have constructed cubes describing this model.
Here is an example of a description of one of the cubes.
cubes:
- name: tpch_lineitem
...
0
votes
2
answers
47
views
Filter values as argument in functions
How to model a cube and query to filter rows containing a value in array columns using Amazon Athena?
select *
from my_table
where contains(my_array_column,'foobar')
So I can write a filter like:
{
...
0
votes
0
answers
23
views
Cube.js playground: Cannot GET /
I have built my own custom version of the cube docker image (cubejs/cube) utilizing updated dependencies because of security vulnerabilities. This has required very "hacky" steps like ...
0
votes
0
answers
98
views
CubeJS Refresh Worker Error "Cannot read properties of null (reading 'environment)
We have a cubeJS deployment in ECS. Deployment consists of an API, a CubeJS backend, two cubestore containers (Router and worker), and a refresh worker.
Unfortunately, we are receiving the following ...
0
votes
0
answers
40
views
API to create files(yml,js) for cubes and view
I am looking for cubejs API's around model files on /playground/files probably. Basically to create yml and js files in conf/model/ folders. Is it available?
I could get the existing model files by ...
0
votes
0
answers
39
views
Cube.js Real-time Data Issue - First API Call Stale Data
I’m working with Cube.js for real-time transaction reporting and facing a data freshness issue. We’ve set the refresh_key.every parameter to 1 second to ensure the latest data on every API call. ...
0
votes
0
answers
23
views
custom logic in CubeJS query
I am making a data service that in part does some interesting probabilistic entity resolution. Reading through the docs, I can not quite tell how I could implement state machine-like logic in ...
0
votes
0
answers
259
views
Cube.js vs DBT advantages disadvantages can I switch from using cube.js to DBT
Currently the org I'm working for uses cube.js to query and show data on the frontend side. My question is can't I just transform the data with the help of DBT and directly just query the db to show ...
0
votes
0
answers
87
views
Cube.js dimension and metrics validation
I was working on a project where we were using cube.js for query generation,I need some way to validate weather the selected metrics and dimensions are valid or not does anyone have idea on this.
I ...
0
votes
0
answers
76
views
Need to define a cube based on a Postgre sql User defined function with string parameter
I have a requirement to create a cube that is based on an existing PostgreSQL user-defined function with a string parameter as input. And the parameters will be supplied from the Rest API call to Cube....
0
votes
0
answers
117
views
How to configure cube.js to use AWS Athena datasource using service account
Based on official documentation cube.js can connect to AWS Athena and use it as a datasource. Problem is the driver uses AWS access key and secret key which I don't want to use. In my case cube.js is ...
0
votes
0
answers
90
views
Getting Error: error: type "double" does not exist while loading a cube js dashboard
While running my cube js dashboard I could only load values in some parts of the dashboard while others values were not loaded. Rather they were giving error: error: type "double" does not ...
0
votes
0
answers
42
views
How can I enable the function transformation capability in Cube.js REST API similar to what is done in the SQL API?
I noticed that the SQL API (Example Code 1) first calls sqlApiLoad, and the parameters at this step align with standard JSON parameters (Example Code 2). It converts the standard load into SQL to ...