cube-js / cube-js/cube

Cube is trying to create 'money' datatype

Open
#6,440 1 comment 0 reactions 1 assignee Claimed by @ovr View on GitHub
Dominant language
Rust
Stars
20.8k
Forks
2.1k
Avg merge
1d 2h
Merged PRs (30d)
181

Description

**Describe the bug**
Cube is trying to create Sales_Amount column with 'money' datatype on the Playground.

1. At first run, cube show working output
![image](https://user-images.githubusercontent.com/130469281/232058396-ad25b70d-8c68-45d7-9907-f53e04c48548.png)

2. but when adding to preaggregation. It's shows an error.
![image](https://user-images.githubusercontent.com/130469281/232055757-7cf5bda4-5f49-4917-b7a6-4c87bb27ec8b.png)
below are preAggregations and Sales_Amount measure on Schema view
cubes:
- name: FactInternetSales
sql: SELECT * FROM dbo."FactInternetSales"
preAggregations:
- name: test2
measures:
- FactInternetSales.Sales_Amount
timeDimension: FactInternetSales.ship_date
granularity: year

- name: Sales_Amount
sql: '{CUBE}."SalesAmount"'
type: sum

**Expected behavior**
Sales_Amount column should be in numeric/sum type

**Data Source**
Azure SQL DB (AdventureWorks)

**Version:**
Stable (0.31.55) - cube cloud

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.