Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
41 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 ...
Abdellah-ELAAROUB's user avatar
0 votes
0 answers
22 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 ...
Ilya Khristenko's user avatar
0 votes
2 answers
46 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: { ...
PeterS's user avatar
  • 191
0 votes
0 answers
22 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 ...
wdtjl's user avatar
  • 3
0 votes
0 answers
86 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 ...
user26267066's user avatar
0 votes
0 answers
35 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 ...
jojos joy's user avatar
0 votes
0 answers
28 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. ...
Rishabh Shukla's user avatar
0 votes
0 answers
22 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 ...
Tom's user avatar
  • 1,251
0 votes
0 answers
237 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 ...
UnboxTiny 's user avatar
0 votes
0 answers
82 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 ...
Wanna be Expert's user avatar
0 votes
0 answers
70 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....
team7's user avatar
  • 1
0 votes
0 answers
111 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 ...
user21409659's user avatar
0 votes
0 answers
88 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 ...
Rohan Kumar Sinha's user avatar
0 votes
0 answers
38 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 ...
勤言不勤语's user avatar
1 vote
2 answers
570 views

Docker images unable to talk to each other

I am trying to make two images depend on each other. One acts as the master and the other one is a worker. Here are the two Dockerfiles FROM cubejs/cubestore:v0.31.58-arm64v8 ENV CUBESTORE_WORKERS=...
boomchickawawa's user avatar
0 votes
0 answers
323 views

How to modify Cube.js schema to fix "column must appear in the GROUP BY clause or be used in an aggregate function" error?

I encounter an issue using Cube.js with avg measures. This is an example of two cubes, "Posts" and "Comments", with the following schema: const schemaName = 'my_schema' cube('...
ecavard's user avatar
  • 151
1 vote
1 answer
261 views

Unable to establish a connection between Apache Superset and cube js using SQL API

We have deployed cube.js using docker in one of the Linux machines (Ubuntu). We have deployed Apache Superset in another Linux machine (Ubuntu). We are trying to establish a connection between "...
Thirumalai Muthu Palani's user avatar
0 votes
1 answer
443 views

Cube.dev - how to have the parameter "today date" in rolling window?

I have a PostgreSQL database in which users can order from a start date to an end date. I want to know, for each day, how many users would be able to order. Let's make an example, given: id from to ...
EuberDeveloper's user avatar
0 votes
0 answers
118 views

How to use dynamic username for postgresql database connection in power bi based on user

I am using Power BI with cube.js as the data source. The connection to Cube is set up using the PostgreSQL connector in Power BI. I am trying to figure out, how I can change the username, which is ...
Martin Brummerstedt's user avatar
0 votes
1 answer
529 views

Why am I getting an "Invalid token" when requesting the cube.js API?

I have deployed cube.js via a Helm chart I've created to an AWS EKS cluster. One of the first errors I encountered was that the environment variable CUBEJS_API_SECRET is required. In a docker-...
user4601931's user avatar
  • 5,248
0 votes
1 answer
471 views

How to integrate cube.js API in simple javascript code?

How to integrate cube.js API in simple javascript code? I just want to use cube.js API in my simple html and js page. Can anybody help me with that? In cube.js docs, they integrate it with react, vue ...
Mukhtar Hussain's user avatar
1 vote
0 answers
260 views

How to cancel/ abort pending cubejs api request

I am working with Cube.Js in react. When i am changing the the route (Navigating to another page), I need to cancel the running request. How can we achieve this. Do Cube.js has any provision to cancel ...
SHUBHAM GOSWAMI's user avatar
0 votes
2 answers
469 views

Cube.js This Week/This Month

Is it possible to calculate some metrics (count, sum) for a specific time period like Today/This Week/This Month/Last Month in Cube.js. Is rollingWindow what I need? I tried it but it doesn't return ...
Muhamed Muhamedagić's user avatar
0 votes
1 answer
104 views

Frontend integration on React 18.1.0

I'm not able to write the code inside the index.js file. I wrote the code as per the code sandbox section of cube docs. It sends a console warning that my app may work as React 17. When I followed 18....
Dhiman Saha's user avatar
1 vote
1 answer
373 views

How to access current security context within a driver in cube.js

I'm working on a custom cube.js database driver that uses a private http service which accepts arbitrary, raw sql and returns the result as json. The http service uses Authorization header to identify ...
riyaz-ali's user avatar
  • 8,980
0 votes
1 answer
474 views

On The Fly Dynamic Schemas

I am looking through Dynamic Cube Creation and was wondering - is there a way to get a cube created post Cube process startup? In this use case, we have multiple schemas being created on the fly as ...
steamrolla's user avatar
  • 2,463
1 vote
1 answer
1k views

How do I use cube.js to define my own schemas

I want to build schema file from my frontend app just like what happens in cube.js playground in dev mode. Is there any possibility to do so?
Chathuranga Priyadarshana Kath's user avatar
1 vote
1 answer
349 views

Cube.js React Hook React.useCallback has a missing dependency: 'pivotConfig'. +

I've been trying to create a simple dashboard with Cube.js using windows 10 and Mysql version 8. I originally tried a Js backend, fought with the install for a few days, then tried a docker install ...
T2029's user avatar
  • 65
1 vote
2 answers
1k views

cube.js join compile "error does not match any of the allowed types"

I have 2 tables, one contains daily data and the other contains attributes that I would like to use for segmenting data. I got the following Error when I try to compile my cube.js schema. cube.js ...
bfmcneill's user avatar
  • 127
1 vote
0 answers
661 views

Cube.js <QueryBuilder> default value of timeDimensions

I am using the Cube.js react client to change the default timeDimension, dateRange, and granularity of my Query. import { QueryBuilder } from '@cubejs-client/react' here is what timeDimension property ...
Ezra Tsai's user avatar
3 votes
1 answer
520 views

cube.js playground not plotting data correctly

I am using cube.js to compare the change in data over the time by plotting it as a line graph . Step 1 : After generating cube.js schema successfully , data looks like this: Step 2 : Now, while I am ...
Asraful's user avatar
  • 1,290
4 votes
0 answers
1k views

Cubejs : Error: 19488:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:332:

I am trying to connect Cubejs to MongoDB through MongoDB BI Connect. My mongosqld command is as follows ./mongosqld --config mongosqld.conf -u useradmin -p xxxx --auth --sslMode requireSSL --...
user3863585's user avatar
1 vote
0 answers
269 views

Login failed while connecting to SQL Server database from Cube js

This is the issue I see in the terminal while i run npm run dev I am trying to connect to a SQL Server database. I have changed some settings for my user 'sjeswara' using SSMS which might facilitates ...
Suraj Jeswara's user avatar
2 votes
1 answer
313 views

Cube.js React QueryBuilder : "This month" and "Weekly" not getting data from start of week if month changes mid-week

I understand why "This month" combined with "Weekly" doesn't get the full week's data if the month starts at the middle. For example the week starting September 27th still shows as ...
programmer.john.may's user avatar
1 vote
1 answer
528 views

Can cube.js be used to access raw data as well as aggregated data?

For example, if I have a Postgres table with columns for sensor_id, temperature and time_recorded , would I still be able to generate a chart that shows temperature (y) over time (x) ?
equatorial_daydreamer's user avatar
1 vote
1 answer
460 views

cube.js docker image for aarch64/arm64

I am new to cube.js and trying to see if I can use it for a small personal project (mostly for learning). I'm looking for a docker image that runs on Rasberrypi 64 bit - can anyone point me in the ...
user12891's user avatar
0 votes
2 answers
1k views

Filter data dynamically based on a hierarchical user id in cube.js

I have two tables called Writers and Publications where there is a foreign key publications.writer_id = writers.id Writers id (int) parent_id (int) role (varchar) name (varchar) path (ltree) 1 ...
equatorial_daydreamer's user avatar
1 vote
2 answers
606 views

Error: unexpected response Forbidden Issue with cubejs

I am running the below command to create the service in cubejs but facing forbidden error. Command : cubejs create d3-dashboard -d postgres npm WARN deprecated @hapi/[email protected]: Switch to 'npm ...
Ramachandran Periyasamy's user avatar
4 votes
2 answers
535 views

How to format dates on frontend

I am using the React (recharts) integration of cube and was wondering how to format dates or "weeks" instead of having the full ISOdate. For example Week 39 instead of 2021-09-27T00:00:00....
programmer.john.may's user avatar
3 votes
2 answers
672 views

How to use cube.js to connect to specific redis

If I want to connect cube.js to my own built redis, what should I do. I use CUBEJS_REDIS_URL which is claimed by official document. So, for example, if my own redis port is 31.71.195.218. Should I ...
Ezra Tsai's user avatar
2 votes
1 answer
3k views

getting this error while trying to run cube js

I'm getting this error while trying to run cube js with the default command in the getting started docs. I've started this in a folder and running it in docker. Warning. There is no cube.js file. ...
Chen's user avatar
  • 291
3 votes
1 answer
957 views

Undefined Security Context in extended cube using AbstractCube.sql(). CubeJS

I have an Extended Cube that the sql attribute is based on the BaseCube/AbstractCube. The Base Cube uses the SECURITY_CONTEXT in its sql attribute. When I query the extended cube I get TypeError: ...
Camilo Velasquez's user avatar
1 vote
1 answer
1k views

cube.js: send raw sql query to cube server

Is it possible to send a raw sql request to a cubejs server? The cubejs server would send it as is to the db it is connected to? I have some edge cases where I would like to let the client send raw ...
discuss_e's user avatar
1 vote
1 answer
418 views

cube.js: subquery in FROM clause

How to do a subquery in the FROM clause in cube.js. There is only one table. SELECT col_a FROM (SELECT col_a, col_b FROM table_name WHERE col_c=some_val ORDER BY time DESC) WHERE col_b=...
discuss_e's user avatar
1 vote
0 answers
295 views

CubeJS inflated count values due to LEFT JOINs on related cubes

Consider a database schema of the following: An Entity table. A SpecializedEntity table, which has exactly 0 or 1 record for each record in Entity, and a nullable LookupValueId column. A LookupValue ...
Andrew Keller's user avatar
0 votes
1 answer
1k views

How to run cubeJS-Backend application using express

I am trying to run cubeJs-backend application using express. I have added code changes like below. I have created cube.js file with the below code const express = require('express'); const path = ...
Rewa's user avatar
  • 1
1 vote
2 answers
825 views

How do I create measures that are not aggregated data?

I have a simple table which has a number(say sales) as one column which describes the sales done for a product. I also have ~25 products. Now, I want to import this sales as a measure into cube. ...
rspenpal's user avatar
0 votes
1 answer
435 views

Error: Unable to detect column types for pre-aggregation on empty values in readOnly mode [CubeJs]

Using mongo Bi connector via Atlas as source database Using mysql for pre-aggregation
Atishay's user avatar
  • 175
1 vote
1 answer
289 views

Left outer Join in Cube JS

I have a requirement to join two tables in cube js. First table has list of customers. Second table has list orders with customer ids with purchase date. I have to display the total orders placed by ...
Priadarshan Mega's user avatar
0 votes
1 answer
783 views

Security Context with several elements on CubeJS

Currently working on Cube.JS and I'm building a cube within I want to restrict the data to an user based on his gender. So I end up with : cube(`Data`, { sql: `select * from my_table where ${...
Bilel's user avatar
  • 3