Skip to content

Commit

Permalink
Merge branch 'cube-js:master' into add-azure-credential
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieZhang-01 authored Jan 26, 2024
2 parents 611f6f2 + 653f086 commit 794b68b
Show file tree
Hide file tree
Showing 141 changed files with 2,572 additions and 1,283 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,27 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.34.48](https://github.com/cube-js/cube/compare/v0.34.47...v0.34.48) (2024-01-25)


### Bug Fixes

* **cubesql:** Fix unary minus operator precedence ([d5a935a](https://github.com/cube-js/cube/commit/d5a935ac3bb16c1dda6c30982cdc9ef787a24967))
* **cubesql:** Segment mixed with a filter and a date range filter may affect push down of `inDateRange` filter to time dimension ([#7684](https://github.com/cube-js/cube/issues/7684)) ([f29a7be](https://github.com/cube-js/cube/commit/f29a7be8379097b8de657ebc2e46f40bae3ccce9))
* **cubesql:** Support Sigma Sunday week granularity ([3d492eb](https://github.com/cube-js/cube/commit/3d492eb5feb84503a1bffda7481ed8b562939e44))
* Join order is incorrect for snowflake schema views with defined join paths ([#7689](https://github.com/cube-js/cube/issues/7689)) ([454d456](https://github.com/cube-js/cube/commit/454d4563120f591445c219c42dd5bd2fd937f7a6)), closes [#7663](https://github.com/cube-js/cube/issues/7663)


### Features

* **cubesql:** Support KPI chart in Thoughtspot ([dbab39e](https://github.com/cube-js/cube/commit/dbab39e63a1c752a56a2cb06169a479a3e9cb11e))
* **cubesql:** Support unwrapping BINARY expr from SUM(<expr>) ([#7683](https://github.com/cube-js/cube/issues/7683)) ([ce93cc7](https://github.com/cube-js/cube/commit/ce93cc7a0f667409d725b34913405f18d18f629b))
* View members inherit title, format and drillMembers attribute ([#7617](https://github.com/cube-js/cube/issues/7617)) Thanks @CallumWalterWhite ! ([302a756](https://github.com/cube-js/cube/commit/302a7560fd65e1437249701e1fc42b32da5df8fa))





## [0.34.47](https://github.com/cube-js/cube/compare/v0.34.46...v0.34.47) (2024-01-23)


Expand Down
2 changes: 2 additions & 0 deletions docs/pages/product/apis-integrations/sql-api/security.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ cubes:
```

## Virtual User Filter

With the above now configured, we can query Cube using SQL with a user that is
part of a trusted team:

Expand Down
16 changes: 16 additions & 0 deletions docs/pages/product/caching/using-pre-aggregations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,22 @@ cube(`orders`, {

</CodeTabs>

### Partitioning by non-time dimension

Cube Store uses an auto-partitioning technique to split Cube logical partitions into multiple physical ones.
The partitioning key is the same as the sorting key of an index.
Every physical partition is stored as a separate parquet file.
Split is performed based on underlying parquet file sizes and rows inside those files.
So simplest way to ensure proper partitioning is to introduce an index.
For bigger pre-aggregations first columns of an index will determine the partitioning scheme.
An interesting consequence of having time dimension partitioning enabled with an index is data partitioned by time and then by sorting the key of an index.
It leads to that even in case of optimal index in place querying time is proportional to count of involved time partitions.
This issue can be addressed by lambda pre-aggregations.

Alternatively, if you want to explicitly introduce key partitioning, you can use multi-tenancy to introduce multiple orchestrator IDs.
Each orchestrator ID can use a different pre-aggregation schema, so you may define those based on the partitioning key you want to introduce.
This technique, together with multi router Cube Store approach, allows you to

## Using Indexes

### When to use indexes?
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/product/data-modeling/concepts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ cubes:
</CodeTabs>
Note that cubes support [extension][ref-extending-cubes],
[plymorphism][ref-polymorphic-cubes], and [data blending][ref-data-blending].
[polymorphism][ref-polymorphic-cubes], and [data blending][ref-data-blending].
Also, cubes may not only be defined statically; you can actually build
[dynamic data models][ref-dynamic-data-models].
Expand Down Expand Up @@ -262,7 +262,7 @@ Dimensions can have [different types][ref-schema-dimension-types]. Also,
[subquery dimensions][ref-subquery-dimensions] can be used to join cubes
implicitly.
Time-based properties should be modeled as dimensions of the `time` time.
Time-based properties should be modeled as dimensions of the `time` type.
Time dimensions allow grouping the result set by a unit of time (e.g. hours,
days, weeks, etc.). In analytics, this is also known as "granularity".

Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.34.47",
"version": "0.34.48",
"npmClient": "yarn",
"useWorkspaces": true,
"packages": [
Expand Down
8 changes: 8 additions & 0 deletions packages/cubejs-api-gateway/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.34.48](https://github.com/cube-js/cube/compare/v0.34.47...v0.34.48) (2024-01-25)

**Note:** Version bump only for package @cubejs-backend/api-gateway





## [0.34.47](https://github.com/cube-js/cube/compare/v0.34.46...v0.34.47) (2024-01-23)

**Note:** Version bump only for package @cubejs-backend/api-gateway
Expand Down
4 changes: 2 additions & 2 deletions packages/cubejs-api-gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@cubejs-backend/api-gateway",
"description": "Cube.js API Gateway",
"author": "Cube Dev, Inc.",
"version": "0.34.47",
"version": "0.34.48",
"repository": {
"type": "git",
"url": "https://github.com/cube-js/cube.git",
Expand All @@ -27,7 +27,7 @@
"dist/src/*"
],
"dependencies": {
"@cubejs-backend/native": "^0.34.47",
"@cubejs-backend/native": "^0.34.48",
"@cubejs-backend/shared": "^0.34.47",
"@ungap/structured-clone": "^0.3.4",
"body-parser": "^1.19.0",
Expand Down
8 changes: 8 additions & 0 deletions packages/cubejs-athena-driver/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.34.48](https://github.com/cube-js/cube/compare/v0.34.47...v0.34.48) (2024-01-25)

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





## [0.34.47](https://github.com/cube-js/cube/compare/v0.34.46...v0.34.47) (2024-01-23)

**Note:** Version bump only for package @cubejs-backend/athena-driver
Expand Down
4 changes: 2 additions & 2 deletions packages/cubejs-athena-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@cubejs-backend/athena-driver",
"description": "Cube.js Athena database driver",
"author": "Cube Dev, Inc.",
"version": "0.34.47",
"version": "0.34.48",
"repository": {
"type": "git",
"url": "https://github.com/cube-js/cube.git",
Expand Down Expand Up @@ -37,7 +37,7 @@
},
"devDependencies": {
"@cubejs-backend/linter": "^0.34.25",
"@cubejs-backend/testing-shared": "^0.34.47",
"@cubejs-backend/testing-shared": "^0.34.48",
"@types/ramda": "^0.27.40",
"typescript": "~5.2.2"
},
Expand Down
16 changes: 16 additions & 0 deletions packages/cubejs-backend-native/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.34.48](https://github.com/cube-js/cube/compare/v0.34.47...v0.34.48) (2024-01-25)


### Bug Fixes

* **cubesql:** Fix unary minus operator precedence ([d5a935a](https://github.com/cube-js/cube/commit/d5a935ac3bb16c1dda6c30982cdc9ef787a24967))


### Features

* **cubesql:** Support KPI chart in Thoughtspot ([dbab39e](https://github.com/cube-js/cube/commit/dbab39e63a1c752a56a2cb06169a479a3e9cb11e))





## [0.34.47](https://github.com/cube-js/cube/compare/v0.34.46...v0.34.47) (2024-01-23)

**Note:** Version bump only for package @cubejs-backend/native
Expand Down
14 changes: 7 additions & 7 deletions packages/cubejs-backend-native/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/cubejs-backend-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cubejs-backend/native",
"version": "0.34.47",
"version": "0.34.48",
"author": "Cube Dev, Inc.",
"description": "Native module for Cube.js (binding to Rust codebase)",
"main": "dist/js/index.js",
Expand Down Expand Up @@ -43,7 +43,7 @@
"uuid": "^8.3.2"
},
"dependencies": {
"@cubejs-backend/cubesql": "^0.34.47",
"@cubejs-backend/cubesql": "^0.34.48",
"@cubejs-backend/shared": "^0.34.47",
"@cubejs-infra/post-installer": "^0.0.7"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/cubejs-bigquery-driver/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.34.48](https://github.com/cube-js/cube/compare/v0.34.47...v0.34.48) (2024-01-25)

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





## [0.34.47](https://github.com/cube-js/cube/compare/v0.34.46...v0.34.47) (2024-01-23)

**Note:** Version bump only for package @cubejs-backend/bigquery-driver
Expand Down
4 changes: 2 additions & 2 deletions packages/cubejs-bigquery-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@cubejs-backend/bigquery-driver",
"description": "Cube.js BigQuery database driver",
"author": "Cube Dev, Inc.",
"version": "0.34.47",
"version": "0.34.48",
"repository": {
"type": "git",
"url": "https://github.com/cube-js/cube.git",
Expand Down Expand Up @@ -36,7 +36,7 @@
"ramda": "^0.27.2"
},
"devDependencies": {
"@cubejs-backend/testing-shared": "^0.34.47",
"@cubejs-backend/testing-shared": "^0.34.48",
"@types/dedent": "^0.7.0",
"@types/ramda": "^0.27.40",
"typescript": "~5.2.2"
Expand Down
8 changes: 8 additions & 0 deletions packages/cubejs-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.34.48](https://github.com/cube-js/cube/compare/v0.34.47...v0.34.48) (2024-01-25)

**Note:** Version bump only for package cubejs-cli





## [0.34.47](https://github.com/cube-js/cube/compare/v0.34.46...v0.34.47) (2024-01-23)

**Note:** Version bump only for package cubejs-cli
Expand Down
6 changes: 3 additions & 3 deletions packages/cubejs-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "cubejs-cli",
"description": "Cube.js Command Line Interface",
"author": "Cube Dev, Inc.",
"version": "0.34.47",
"version": "0.34.48",
"repository": {
"type": "git",
"url": "https://github.com/cube-js/cube.git",
Expand Down Expand Up @@ -31,7 +31,7 @@
],
"dependencies": {
"@cubejs-backend/dotenv": "^9.0.2",
"@cubejs-backend/schema-compiler": "^0.34.47",
"@cubejs-backend/schema-compiler": "^0.34.48",
"@cubejs-backend/shared": "^0.34.47",
"chalk": "^2.4.2",
"cli-progress": "^3.10",
Expand All @@ -50,7 +50,7 @@
},
"devDependencies": {
"@cubejs-backend/linter": "^0.34.25",
"@cubejs-backend/server": "^0.34.47",
"@cubejs-backend/server": "^0.34.48",
"@oclif/command": "^1.8.0",
"@types/cli-progress": "^3.8.0",
"@types/cross-spawn": "^6.0.2",
Expand Down
8 changes: 8 additions & 0 deletions packages/cubejs-clickhouse-driver/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.34.48](https://github.com/cube-js/cube/compare/v0.34.47...v0.34.48) (2024-01-25)

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





## [0.34.47](https://github.com/cube-js/cube/compare/v0.34.46...v0.34.47) (2024-01-23)

**Note:** Version bump only for package @cubejs-backend/clickhouse-driver
Expand Down
4 changes: 2 additions & 2 deletions packages/cubejs-clickhouse-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@cubejs-backend/clickhouse-driver",
"description": "Cube.js ClickHouse database driver",
"author": "Cube Dev, Inc.",
"version": "0.34.47",
"version": "0.34.48",
"repository": {
"type": "git",
"url": "https://github.com/cube-js/cube.git",
Expand Down Expand Up @@ -38,7 +38,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@cubejs-backend/linter": "^0.34.25",
"@cubejs-backend/testing-shared": "^0.34.47",
"@cubejs-backend/testing-shared": "^0.34.48",
"@types/jest": "^27",
"jest": "27",
"typescript": "~5.2.2"
Expand Down
8 changes: 8 additions & 0 deletions packages/cubejs-crate-driver/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.34.48](https://github.com/cube-js/cube/compare/v0.34.47...v0.34.48) (2024-01-25)

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





## [0.34.47](https://github.com/cube-js/cube/compare/v0.34.46...v0.34.47) (2024-01-23)

**Note:** Version bump only for package @cubejs-backend/crate-driver
Expand Down
Loading

0 comments on commit 794b68b

Please sign in to comment.