cube-js / cube-js/cube

Is there a way to modify the aggregate functions in SQL queries?

Open
#8,062 9 comments 0 reactions 0 assignees View on GitHub
api:sql question
Dominant language
Rust
Stars
20.8k
Forks
2.1k
Avg merge
1d 2h
Merged PRs (30d)
181

Description

**Problem**

For the SQL API, if the defined metric is 'sum', such as:
Is there a way to support the query "select max(number)"?

**Related Cube.js schema**
```javascript
number: {
sql: `number`,
type: `sum`
}
```

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.