Skip to content

Commit 2aef5bd

Browse files
authored
Merge branch 'master' into dependabot/npm_and_yarn/prismjs-1.30.0
2 parents 5b6b7b5 + bb13b09 commit 2aef5bd

File tree

158 files changed

+1384
-404
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+1384
-404
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [1.2.22](https://github.com/cube-js/cube/compare/v1.2.21...v1.2.22) (2025-03-14)
7+
8+
### Bug Fixes
9+
10+
- **cubesql:** Functions without arguments alias as plain function name ([#9338](https://github.com/cube-js/cube/issues/9338)) ([de10c23](https://github.com/cube-js/cube/commit/de10c233bf84ef11eb0af272ea296881651dafd1))
11+
12+
### Features
13+
14+
- **tesseract:** Segments and MemberExpressions segments support ([#9336](https://github.com/cube-js/cube/issues/9336)) ([b2c03e7](https://github.com/cube-js/cube/commit/b2c03e7644f954ba29201b4c98de35ded7eebe79))
15+
16+
## [1.2.21](https://github.com/cube-js/cube/compare/v1.2.20...v1.2.21) (2025-03-11)
17+
18+
### Bug Fixes
19+
20+
- **cubejs-native:** cubesql query logger span_id ([#9325](https://github.com/cube-js/cube/issues/9325)) ([568d306](https://github.com/cube-js/cube/commit/568d306a9b97672caf69543077e7863fc773af41))
21+
22+
### Features
23+
24+
- **cubesql:** Move dimensions-only projections to dimensions for push-to-Cube wrapper ([#9318](https://github.com/cube-js/cube/issues/9318)) ([ca62aa0](https://github.com/cube-js/cube/commit/ca62aa0e747b88c2754f3a758c7a959ee52b0c81))
25+
626
## [1.2.20](https://github.com/cube-js/cube/compare/v1.2.19...v1.2.20) (2025-03-10)
727

828
### Bug Fixes

docs/pages/product/apis-integrations/dax-api/reference.mdx

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,24 @@ of the DAX documentation.
2626
| Function | <nobr>Unsupported features</nobr> | Caveats |
2727
| --- | --- | --- |
2828
| [`AVERAGE`](https://learn.microsoft.com/en-us/dax/average-function-dax) |||
29+
| [`AVERAGEA`](https://learn.microsoft.com/en-us/dax/averagea-function-dax) | Non-numeric values ||
30+
| [`AVERAGEX`](https://learn.microsoft.com/en-us/dax/averagex-function-dax) | Non-base table as input table ||
2931
| [`COUNT`](https://learn.microsoft.com/en-us/dax/count-function-dax) |||
3032
| [`COUNTA`](https://learn.microsoft.com/en-us/dax/counta-function-dax) |||
33+
| [`COUNTAX`](https://learn.microsoft.com/en-us/dax/countax-function-dax) | Non-base table as input table ||
34+
| [`COUNTBLANK`](https://learn.microsoft.com/en-us/dax/countblank-function-dax) |||
3135
| [`COUNTROWS`](https://learn.microsoft.com/en-us/dax/countrows-function-dax) || Disregards input table expression and always returns 1 |
36+
| [`COUNTX`](https://learn.microsoft.com/en-us/dax/countx-function-dax) | Non-base table as input table ||
3237
| [`DISTINCTCOUNT`](https://learn.microsoft.com/en-us/dax/distinctcount-function-dax) || Blanks are ignored |
38+
| [`DISTINCTCOUNTNOBLANK`](https://learn.microsoft.com/en-us/dax/distinctcountnoblank-function-dax) |||
3339
| [`MAX`](https://learn.microsoft.com/en-us/dax/max-function-dax) | 2 arguments | Blanks are disregarded instead of being treated as 0 |
40+
| [`MAXA`](https://learn.microsoft.com/en-us/dax/maxa-function-dax) |||
41+
| [`MAXX`](https://learn.microsoft.com/en-us/dax/maxx-function-dax) | Non-base table as input table ||
3442
| [`MIN`](https://learn.microsoft.com/en-us/dax/min-function-dax) | 2 arguments | Blanks are disregarded instead of being treated as 0 |
43+
| [`MINA`](https://learn.microsoft.com/en-us/dax/mina-function-dax) |||
44+
| [`MINX`](https://learn.microsoft.com/en-us/dax/minx-function-dax) | Non-base table as input table ||
3545
| [`SUM`](https://learn.microsoft.com/en-us/dax/sum-function-dax) |||
46+
| [`SUMX`](https://learn.microsoft.com/en-us/dax/sumx-function-dax) | Non-base table as input table ||
3647

3748
### Date and time functions
3849

@@ -47,7 +58,19 @@ of the DAX documentation.
4758
| Function | <nobr>Unsupported features</nobr> | Caveats |
4859
| --- | --- | --- |
4960
| [`DATE`](https://learn.microsoft.com/en-us/dax/date-function-dax) | Non-literal date parts ||
61+
| [`DAY`](https://learn.microsoft.com/en-us/dax/day-function-dax) | Text date input ||
62+
| [`HOUR`](https://learn.microsoft.com/en-us/dax/hour-function-dax) | Text date input ||
63+
| [`MINUTE`](https://learn.microsoft.com/en-us/dax/minute-function-dax) | Text date input ||
64+
| [`MONTH`](https://learn.microsoft.com/en-us/dax/month-function-dax) | Text date input ||
65+
| [`NOW`](https://learn.microsoft.com/en-us/dax/now-function-dax) || Returns datetime in UTC time zone |
66+
| [`QUARTER`](https://learn.microsoft.com/en-us/dax/quarter-function-dax) | Text date input ||
67+
| [`SECOND`](https://learn.microsoft.com/en-us/dax/second-function-dax) | Text date input ||
5068
| [`TIME`](https://learn.microsoft.com/en-us/dax/time-function-dax) | Non-literal date parts. Execution outside `DATE(...) + TIME(...)` expression ||
69+
| [`TODAY`](https://learn.microsoft.com/en-us/dax/today-function-dax) || Returns date in UTC time zone. Time is at 12:00:00 AM; contrary to documentation, Analysis Services returns that time |
70+
| [`UTCNOW`](https://learn.microsoft.com/en-us/dax/utcnow-function-dax) |||
71+
| [`UTCTODAY`](https://learn.microsoft.com/en-us/dax/utctoday-function-dax) || Time is at 12:00:00 AM; contrary to documentation, Analysis Services returns that time |
72+
| [`WEEKDAY`](https://learn.microsoft.com/en-us/dax/weekday-function-dax) | Text date input ||
73+
| [`YEAR`](https://learn.microsoft.com/en-us/dax/year-function-dax) | Text date input ||
5174

5275
### Filter functions
5376

@@ -91,9 +114,13 @@ of the DAX documentation.
91114

92115
| Function | <nobr>Unsupported features</nobr> | Caveats |
93116
| --- | --- | --- |
117+
| [`ISAFTER`](https://learn.microsoft.com/en-us/dax/isafter-function-dax) |||
94118
| [`ISBLANK`](https://learn.microsoft.com/en-us/dax/isblank-function-dax) || Blanks are treated as equivalent to nulls and vice versa |
119+
| [`ISEVEN`](https://learn.microsoft.com/en-us/dax/iseven-function-dax) |||
120+
| [`ISODD`](https://learn.microsoft.com/en-us/dax/isodd-function-dax) |||
95121
| [`ISONORAFTER`](https://learn.microsoft.com/en-us/dax/isonorafter-function-dax) |||
96122
| [`NONVISUAL`](https://learn.microsoft.com/en-us/dax/nonvisual-function-dax) || Doesn't modify behavior, silently ignored |
123+
| [`USERCULTURE`](https://learn.microsoft.com/en-us/dax/userculture-function-dax) || Always returns "en-US" |
97124

98125
### Logical functions
99126

@@ -108,8 +135,12 @@ of the DAX documentation.
108135
| Function | <nobr>Unsupported features</nobr> | Caveats |
109136
| --- | --- | --- |
110137
| [`AND`](https://learn.microsoft.com/en-us/dax/and-function-dax) |||
138+
| [`FALSE`](https://learn.microsoft.com/en-us/dax/false-function-dax) |||
139+
| [`IF`](https://learn.microsoft.com/en-us/dax/if-function-dax) | Variant data types ||
111140
| [`NOT`](https://learn.microsoft.com/en-us/dax/not-function-dax) |||
112141
| [`OR`](https://learn.microsoft.com/en-us/dax/or-function-dax) |||
142+
| [`SWITCH`](https://learn.microsoft.com/en-us/dax/switch-function-dax) |||
143+
| [`TRUE`](https://learn.microsoft.com/en-us/dax/true-function-dax) |||
113144

114145
### Math and trig functions
115146

@@ -121,7 +152,34 @@ of the DAX documentation.
121152

122153
</InfoBox>
123154

124-
No math and trig functions currently supported.
155+
| Function | <nobr>Unsupported features</nobr> | Caveats |
156+
| --- | --- | --- |
157+
| [`ABS`](https://learn.microsoft.com/en-us/dax/abs-function-dax) |||
158+
| [`ACOS`](https://learn.microsoft.com/en-us/dax/acos-function-dax) |||
159+
| [`ASIN`](https://learn.microsoft.com/en-us/dax/asin-function-dax) |||
160+
| [`ATAN`](https://learn.microsoft.com/en-us/dax/atan-function-dax) |||
161+
| [`CEILING`](https://learn.microsoft.com/en-us/dax/ceiling-function-dax) | Significance other than 1 ||
162+
| [`COS`](https://learn.microsoft.com/en-us/dax/cos-function-dax) |||
163+
| [`EXP`](https://learn.microsoft.com/en-us/dax/exp-function-dax) |||
164+
| [`FLOOR`](https://learn.microsoft.com/en-us/dax/floor-function-dax) | Significance other than 1 ||
165+
| [`INT`](https://learn.microsoft.com/en-us/dax/int-function-dax) |||
166+
| [`LN`](https://learn.microsoft.com/en-us/dax/ln-function-dax) |||
167+
| [`LOG`](https://learn.microsoft.com/en-us/dax/log-function-dax) | Base other than 10 ||
168+
| [`LOG10`](https://learn.microsoft.com/en-us/dax/log10-function-dax) |||
169+
| [`MOD`](https://learn.microsoft.com/en-us/dax/mod-function-dax) |||
170+
| [`MROUND`](https://learn.microsoft.com/en-us/dax/mround-function-dax) | Multiple other than 1 ||
171+
| [`PI`](https://learn.microsoft.com/en-us/dax/pi-function-dax) |||
172+
| [`POWER`](https://learn.microsoft.com/en-us/dax/power-function-dax) |||
173+
| [`QUOTIENT`](https://learn.microsoft.com/en-us/dax/quotient-function-dax) |||
174+
| [`RAND`](https://learn.microsoft.com/en-us/dax/rand-function-dax) |||
175+
| [`ROUND`](https://learn.microsoft.com/en-us/dax/round-function-dax) | Num digits other than 0 ||
176+
| [`ROUNDDOWN`](https://learn.microsoft.com/en-us/dax/rounddown-function-dax) | Num digits other than 0 ||
177+
| [`ROUNDUP`](https://learn.microsoft.com/en-us/dax/roundup-function-dax) | Num digits other than 0 ||
178+
| [`SIN`](https://learn.microsoft.com/en-us/dax/sin-function-dax) |||
179+
| [`SQRT`](https://learn.microsoft.com/en-us/dax/sqrt-function-dax) |||
180+
| [`SQRTPI`](https://learn.microsoft.com/en-us/dax/sqrtpi-function-dax) |||
181+
| [`TAN`](https://learn.microsoft.com/en-us/dax/tan-function-dax) |||
182+
| [`TRUNC`](https://learn.microsoft.com/en-us/dax/trunc-function-dax) | Num digits other than 0 ||
125183

126184
### Other functions
127185

@@ -215,7 +273,20 @@ of the DAX documentation.
215273

216274
| Function | <nobr>Unsupported features</nobr> | Caveats |
217275
| --- | --- | --- |
276+
| [`CONCATENATE`](https://learn.microsoft.com/en-us/dax/concatenate-function-dax) |||
277+
| [`EXACT`](https://learn.microsoft.com/en-us/dax/exact-function-dax) |||
278+
| [`FIND`](https://learn.microsoft.com/en-us/dax/find-function-dax) | Start num other than 1 and not found value other than 0 ||
279+
| [`LEFT`](https://learn.microsoft.com/en-us/dax/left-function-dax) |||
280+
| [`LEN`](https://learn.microsoft.com/en-us/dax/len-function-dax) |||
281+
| [`LOWER`](https://learn.microsoft.com/en-us/dax/lower-function-dax) |||
282+
| [`MID`](https://learn.microsoft.com/en-us/dax/mid-function-dax) |||
283+
| [`REPT`](https://learn.microsoft.com/en-us/dax/rept-function-dax) || Returns empty string when num times is 0 |
284+
| [`RIGHT`](https://learn.microsoft.com/en-us/dax/right-function-dax) |||
285+
| [`SUBSTITUTE`](https://learn.microsoft.com/en-us/dax/substitute-function-dax) | Instance number ||
218286
| [`SEARCH`](https://learn.microsoft.com/en-us/dax/search-function-dax) | Execution outside filter context functions ||
287+
| [`TRIM`](https://learn.microsoft.com/en-us/dax/trim-function-dax) | Trimming inner whitespace ||
288+
| [`UPPER`](https://learn.microsoft.com/en-us/dax/upper-function-dax) |||
289+
| [`VALUE`](https://learn.microsoft.com/en-us/dax/value-function-dax) |||
219290

220291
### Time intelligence functions
221292

docs/pages/product/deployment/cloud/vpc/aws.mdx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,12 @@ Customer Success Manager and share with them the following:
132132
[aws-docs-vpc-peering-routing]:
133133
https://docs.aws.amazon.com/vpc/latest/peering/vpc-peering-routing.html
134134
[aws-docs-vpc-peering]:
135-
https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html
136-
[aws-docs-vpc-security-group]: https://docs.aws.amazon.com/vpc/latest/userguide/security-group-rules.html
135+
https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html [aws-docs-vpc-security-group]: https://docs.aws.amazon.com/vpc/latest/userguide/security-group-rules.html
137136
[wiki-cidr-block]:
138137
https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing#CIDR_blocks
138+
139+
## Supported Regions
140+
141+
We support all general-purpose regions. Cube Store is currently located only in
142+
`US East 2` and `EU West 1` so pre-aggregations performance might depend on geographical
143+
proximity to it.

docs/pages/product/deployment/cloud/vpc/gcp.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ here][gcp-docs-create-vpc-peering], with the following amendments:
2929

3030
## Supported Regions
3131

32-
- `northeast1`
33-
- `europe-west-2`
34-
- `europe-west-3`
35-
- `us-central-1`
32+
We support all general-purpose regions. Cube Store is currently located only in
33+
`US Central 1` and `Europe West 2` so pre-aggregations performance might depend
34+
on geographical proximity to it.
3635

3736
## Notes
3837

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.2.20",
2+
"version": "1.2.22",
33
"npmClient": "yarn",
44
"command": {
55
"bootstrap": {

packages/cubejs-api-gateway/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [1.2.22](https://github.com/cube-js/cube/compare/v1.2.21...v1.2.22) (2025-03-14)
7+
8+
**Note:** Version bump only for package @cubejs-backend/api-gateway
9+
10+
## [1.2.21](https://github.com/cube-js/cube/compare/v1.2.20...v1.2.21) (2025-03-11)
11+
12+
**Note:** Version bump only for package @cubejs-backend/api-gateway
13+
614
## [1.2.20](https://github.com/cube-js/cube/compare/v1.2.19...v1.2.20) (2025-03-10)
715

816
### Features

packages/cubejs-api-gateway/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@cubejs-backend/api-gateway",
33
"description": "Cube.js API Gateway",
44
"author": "Cube Dev, Inc.",
5-
"version": "1.2.20",
5+
"version": "1.2.22",
66
"repository": {
77
"type": "git",
88
"url": "https://github.com/cube-js/cube.git",
@@ -27,8 +27,8 @@
2727
"dist/src/*"
2828
],
2929
"dependencies": {
30-
"@cubejs-backend/native": "1.2.20",
31-
"@cubejs-backend/shared": "1.2.20",
30+
"@cubejs-backend/native": "1.2.22",
31+
"@cubejs-backend/shared": "1.2.22",
3232
"@ungap/structured-clone": "^0.3.4",
3333
"body-parser": "^1.19.0",
3434
"chrono-node": "^2.6.2",
@@ -50,7 +50,7 @@
5050
"uuid": "^8.3.2"
5151
},
5252
"devDependencies": {
53-
"@cubejs-backend/linter": "1.2.20",
53+
"@cubejs-backend/linter": "1.2.22",
5454
"@types/express": "^4.17.21",
5555
"@types/jest": "^27",
5656
"@types/jsonwebtoken": "^9.0.2",

packages/cubejs-api-gateway/src/gateway.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ class ApiGateway {
477477
app.get('/cubejs-system/v1/pre-aggregations', systemMiddlewares, systemAsyncHandler(async (req, res) => {
478478
await this.getPreAggregations({
479479
cacheOnly: !!req.query.cacheOnly,
480+
metaOnly: !!req.query.metaOnly,
480481
context: req.context,
481482
res: this.resToResultFn(res)
482483
});
@@ -656,7 +657,7 @@ class ApiGateway {
656657
}
657658
}
658659

659-
public async getPreAggregations({ cacheOnly, context, res }: { cacheOnly?: boolean, context: RequestContext, res: ResponseResultFn }) {
660+
public async getPreAggregations({ cacheOnly, metaOnly, context, res }: { cacheOnly?: boolean, metaOnly?: boolean, context: RequestContext, res: ResponseResultFn }) {
660661
const requestStarted = new Date();
661662
try {
662663
const compilerApi = await this.getCompilerApi(context);
@@ -672,6 +673,7 @@ class ApiGateway {
672673
preAggregations: preAggregations.map(p => ({
673674
id: p.id,
674675
cacheOnly,
676+
metaOnly
675677
}))
676678
},
677679
)

packages/cubejs-api-gateway/src/query.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ const queryPreAggregationsSchema = Joi.object().keys({
290290
preAggregations: Joi.array().items(Joi.object().keys({
291291
id: Joi.string().required(),
292292
cacheOnly: Joi.boolean(),
293+
metaOnly: Joi.boolean(),
293294
partitions: Joi.array().items(Joi.string()),
294295
refreshRange: Joi.array().items(Joi.string()).length(2), // TODO: Deprecate after cloud changes
295296
}))

packages/cubejs-athena-driver/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [1.2.22](https://github.com/cube-js/cube/compare/v1.2.21...v1.2.22) (2025-03-14)
7+
8+
**Note:** Version bump only for package @cubejs-backend/athena-driver
9+
10+
## [1.2.21](https://github.com/cube-js/cube/compare/v1.2.20...v1.2.21) (2025-03-11)
11+
12+
**Note:** Version bump only for package @cubejs-backend/athena-driver
13+
614
## [1.2.20](https://github.com/cube-js/cube/compare/v1.2.19...v1.2.20) (2025-03-10)
715

816
**Note:** Version bump only for package @cubejs-backend/athena-driver

0 commit comments

Comments
 (0)