Skip to content

Commit cddd537

Browse files
authored
Merge branch 'master' into dremio-date-interval-fix
2 parents c2b8d08 + 0dbf3bb commit cddd537

File tree

239 files changed

+5632
-8246
lines changed

Some content is hidden

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

239 files changed

+5632
-8246
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,25 @@
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.0](https://github.com/cube-js/cube/compare/v1.1.18...v1.2.0) (2025-02-05)
7+
8+
### Bug Fixes
9+
10+
- **@cubejs-client/ngx:** Update APF configuration and build settings for Angular 12+ compatibility ([#9152](https://github.com/cube-js/cube/issues/9152)) Thanks to @HaidarZ! ([57bcbc4](https://github.com/cube-js/cube/commit/57bcbc482002aaa025ba5eab8960ecc5784faa55))
11+
- **cubejs-playground:** update query builder ([#9175](https://github.com/cube-js/cube/issues/9175)) ([4e9ed0e](https://github.com/cube-js/cube/commit/4e9ed0eae46c4abb1b84e6423bbc94ad93da37c3))
12+
- **cubejs-playground:** update query builder ([#9184](https://github.com/cube-js/cube/issues/9184)) ([247ac0c](https://github.com/cube-js/cube/commit/247ac0c4028aef5295e88cd501323b94c5a4eaab))
13+
- **cubesql:** Avoid panics during filter rewrites ([#9166](https://github.com/cube-js/cube/issues/9166)) ([4c8de88](https://github.com/cube-js/cube/commit/4c8de882b3cc57e2b0c29c33ca4ee91377176e85))
14+
- **databricks-jdbc-driver:** Fix extract epoch from timestamp SQL Generation ([#9160](https://github.com/cube-js/cube/issues/9160)) ([9a73857](https://github.com/cube-js/cube/commit/9a73857b4abc5691b44b8a395176a565cdbf1b2a))
15+
- **schema-compiler:** make sure view members are resolvable in DAP ([#9059](https://github.com/cube-js/cube/issues/9059)) ([e7b992e](https://github.com/cube-js/cube/commit/e7b992effb6ef90883d059280270c92d903607d4))
16+
17+
### Features
18+
19+
- **cubeclient:** Add hierarchies to Cube meta ([#9180](https://github.com/cube-js/cube/issues/9180)) ([56dbf9e](https://github.com/cube-js/cube/commit/56dbf9edc8c257cd81f00ff119b12543652b76d0))
20+
- **cubesql:** Add filter flattening rule ([#9148](https://github.com/cube-js/cube/issues/9148)) ([92a4b8e](https://github.com/cube-js/cube/commit/92a4b8e0e65c05f2ca0a683387d3f4434c358fc6))
21+
- **cubesql:** Add separate ungrouped_scan flag to wrapper replacer context ([#9120](https://github.com/cube-js/cube/issues/9120)) ([50bdbe7](https://github.com/cube-js/cube/commit/50bdbe7f52f653680e32d26c96c41f10e459c341))
22+
- **snowflake-driver:** set QUOTED_IDENTIFIERS_IGNORE_CASE=FALSE by default ([#9172](https://github.com/cube-js/cube/issues/9172)) ([164b783](https://github.com/cube-js/cube/commit/164b783843efa93ac8ca422634e5b6daccd91883))
23+
- Support complex join conditions for grouped joins ([#9157](https://github.com/cube-js/cube/issues/9157)) ([28c1e3b](https://github.com/cube-js/cube/commit/28c1e3bba7a100f3152bfdefd86197e818fac941))
24+
625
## [1.1.18](https://github.com/cube-js/cube/compare/v1.1.17...v1.1.18) (2025-01-27)
726

827
### Bug Fixes

docs/pages/guides/recipes/access-control/controlling-access-to-cubes-and-views.mdx

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,15 @@ cubes:
5252
views:
5353
- name: total_revenue_per_customer
5454
public: {{ COMPILE_CONTEXT['securityContext']['isFinance'] }}
55-
includes:
56-
- orders.total_revenue
57-
- users.company
55+
56+
cubes:
57+
- join_path: orders
58+
includes:
59+
- total_revenue
60+
61+
- join_path: orders.users
62+
includes:
63+
- company
5864
```
5965
6066
```javascript
@@ -75,12 +81,25 @@ cube(`users`, {
7581
});
7682

7783
// total_revenue_per_customer.js
78-
view("total_revenue_per_customer", {
84+
view(`total_revenue_per_customer`, {
7985
description: `Total revenue per customer`,
8086
public: COMPILE_CONTEXT.securityContext.isFinance,
8187

82-
includes: [orders.total_revenue, users.company],
83-
});
88+
cubes: [
89+
{
90+
join_path: orders,
91+
includes: [
92+
`total_revenue`
93+
]
94+
},
95+
{
96+
join_path: orders.users,
97+
includes: [
98+
`company`
99+
]
100+
}
101+
]
102+
})
84103
```
85104

86105
</CodeTabs>

docs/pages/product/auth/data-access-policies.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ cubes:
6262
row_level:
6363
filters:
6464
- member: country
65-
operator: eq
65+
operator: equals
6666
values: [ "{ securityContext.country }" ]
6767
```
6868
@@ -118,6 +118,10 @@ When processing a request, Cube will evaluate the data access policies and combi
118118
with relevant custom security rules, e.g., [`public` parameters][ref-mls-public] for member-level security
119119
and [`query_rewrite` filters][ref-rls-queryrewrite] for row-level security.
120120

121+
If multiple access policies apply to a request, they are _combined together_
122+
using the _OR_ semantics. For example, if a user has two roles with different
123+
policies, the user will get the union of the permissions in these policies.
124+
121125
### Member-level access
122126

123127
Member-level security rules in data access policies are _combined together_

docs/pages/product/deployment/cloud/continuous-deployment.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ GitHub</Btn> button, and selecting your repository.
3939
If your organization uses SAML SSO for GitHub authentication, make sure to start an active SAML
4040
session prior to connecting to your GitHub account from Cube.
4141

42-
<WarningBox>
42+
</WarningBox>
4343

4444
<div style={{ textAlign: "center" }}>
4545
<img

docs/pages/reference/data-model/data-access-policies.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ cubes:
307307
row_level:
308308
filters:
309309
- member: state
310-
operator: eq
310+
operator: equals
311311
values: [ "{ securityContext.state }" ]
312312
```
313313

docs/pages/reference/data-model/view.mdx

Lines changed: 23 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,20 @@ view(`arr`, {
292292
description: `Annual Recurring Revenue`,
293293
public: COMPILE_CONTEXT.security_context.is_finance,
294294

295-
includes: [revenue.arr, revenue.date, customers.plan],
296-
});
295+
cubes: [
296+
{
297+
join_path: revenue,
298+
includes: [
299+
`arr`,
300+
`date`
301+
]
302+
},
303+
{
304+
join_path: revenue.customers,
305+
includes: `plan`
306+
}
307+
]
308+
})
297309
```
298310

299311
```yaml
@@ -302,12 +314,15 @@ views:
302314
description: Annual Recurring Revenue
303315
public: COMPILE_CONTEXT.security_context.is_finance
304316

305-
includes:
306-
# Measures
307-
- revenue.arr
308-
# Dimensions
309-
- revenue.date
310-
- customers.plan
317+
cubes:
318+
- join_path: revenue
319+
includes:
320+
- arr
321+
- date
322+
323+
- join_path: revenue.customers
324+
includes:
325+
- plan
311326
```
312327
313328
</CodeTabs>
@@ -344,50 +359,6 @@ views:
344359

345360
The `access_policy` parameter is used to configure [data access policies][ref-ref-dap].
346361

347-
### `includes` (deprecated)
348-
349-
<WarningBox>
350-
351-
The top-level `includes` parameter is deprecated and might be removed in
352-
the future. Please always use the `includes` parameter with `cubes` and
353-
`join_path` parameters so you can explicitly control the join path.
354-
355-
</WarningBox>
356-
357-
The top-level `includes` parameter is used to bulk add measures or dimensions
358-
to a view.
359-
360-
<CodeTabs>
361-
362-
```javascript
363-
view(`active_users`, {
364-
includes: [
365-
// Measures
366-
users.rolling_count,
367-
368-
// Dimensions
369-
users.city,
370-
users.created_at,
371-
],
372-
});
373-
```
374-
375-
```yaml
376-
views:
377-
- name: active_users
378-
379-
includes:
380-
# Measures
381-
- users.rolling_count
382-
383-
# Dimensions
384-
- users.city
385-
- users.created_at
386-
```
387-
388-
</CodeTabs>
389-
390-
391362
[ref-recipe-control-access-cubes-views]:
392363
/guides/recipes/access-control/controlling-access-to-cubes-and-views
393364
[ref-schema-joins-direction]:

lerna-publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ BUMP=$1
55
if [ "x$BUMP" == "x" ]; then
66
BUMP=patch
77
fi
8-
yarn lerna version --create-release=github --conventional-commits --exact $BUMP
8+
yarn lerna version --create-release=github --conventional-commits --force-publish --exact $BUMP

lerna.json

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

packages/cubejs-api-gateway/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
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.0](https://github.com/cube-js/cube/compare/v1.1.18...v1.2.0) (2025-02-05)
7+
8+
### Features
9+
10+
- **cubeclient:** Add hierarchies to Cube meta ([#9180](https://github.com/cube-js/cube/issues/9180)) ([56dbf9e](https://github.com/cube-js/cube/commit/56dbf9edc8c257cd81f00ff119b12543652b76d0))
11+
612
## [1.1.18](https://github.com/cube-js/cube/compare/v1.1.17...v1.1.18) (2025-01-27)
713

814
### Bug Fixes

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.1.18",
5+
"version": "1.2.0",
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.1.17",
31-
"@cubejs-backend/shared": "1.1.17",
30+
"@cubejs-backend/native": "1.2.0",
31+
"@cubejs-backend/shared": "1.2.0",
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.0.0",
53+
"@cubejs-backend/linter": "1.2.0",
5454
"@types/express": "^4.17.21",
5555
"@types/jest": "^27",
5656
"@types/jsonwebtoken": "^9.0.2",

0 commit comments

Comments
 (0)