Skip to content

Commit 0ad735f

Browse files
committed
Merge branch 'master' of https://github.com/cube-js/cube into fix/dev-env-setup
2 parents e8a5272 + 028bc95 commit 0ad735f

File tree

224 files changed

+24636
-30485
lines changed

Some content is hidden

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

224 files changed

+24636
-30485
lines changed

.github/ISSUE_TEMPLATE/sql_api_query_issue.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: SQL API Query Issue
33
about: Create a report to help us improve
44
title: ''
5-
labels: ''
5+
labels: 'api:sql'
66
assignees: ''
77

88
---
@@ -13,8 +13,11 @@ Search for `Failed SQL` log message.
1313
**Logical Plan**
1414
Search for `Can't rewrite plan` log message.
1515

16+
**Tool**
17+
Was thethe SQL query above generated by some BI tool or any other tool? Did you write it yourself?
18+
1619
**Version:**
17-
[e.g. 0.4.5]
20+
E.g., v1.1.0.
1821

1922
**Additional context**
2023
Add any other context about the problem here.

.github/actions/smoke.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,8 @@ echo "::endgroup::"
5555

5656
echo "::group::MongoBI"
5757
yarn lerna run --concurrency 1 --stream --no-prefix smoke:mongobi
58-
echo "::endgroup::"
58+
echo "::endgroup::"
59+
60+
echo "::group::RBAC"
61+
yarn lerna run --concurrency 1 --stream --no-prefix smoke:rbac
62+
echo "::endgroup::"

.github/workflows/publish.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ jobs:
191191
components: rustfmt
192192
target: ${{ matrix.target }}
193193
- name: Install Python
194-
uses: actions/setup-python@v4
194+
uses: actions/setup-python@v5
195195
if: (matrix.python-version != 'fallback')
196196
with:
197197
python-version: ${{ matrix.python-version }}
@@ -265,7 +265,7 @@ jobs:
265265
rustflags: ""
266266
components: rustfmt
267267
- name: Install Python
268-
uses: actions/setup-python@v4
268+
uses: actions/setup-python@v5
269269
if: (matrix.python-version != 'fallback')
270270
with:
271271
python-version: ${{ matrix.python-version }}
@@ -666,15 +666,16 @@ jobs:
666666
target:
667667
- x86_64-pc-windows-msvc
668668
- x86_64-apple-darwin
669+
- aarch64-apple-darwin
669670
include:
670671
- target: x86_64-pc-windows-msvc
671672
os: windows-2019
672673
executable_name: cubestored.exe
673674
strip: true
674675
# cubestored.exe: CantPackException: superfluous data between sections
675676
compress: false
676-
# Please use minimal possible version of macOS, because it produces constraint on libstdc++
677677
tar_executable: tar
678+
# Please use minimal possible version of macOS, because it produces constraint on libstdc++
678679
- target: x86_64-apple-darwin
679680
os: macos-12
680681
executable_name: cubestored
@@ -683,6 +684,14 @@ jobs:
683684
compress: false
684685
# bsd tar has a different format with Sparse files which breaks download script
685686
tar_executable: gtar
687+
- os: macos-14
688+
target: aarch64-apple-darwin
689+
executable_name: cubestored
690+
# upx has been disabled because it is crashing for macOS Ventura or above! It was disabled on 2024-09-05.
691+
strip: false
692+
compress: false
693+
# bsd tar has a different format with Sparse files which breaks download script
694+
tar_executable: gtar
686695
fail-fast: false
687696
permissions:
688697
contents: write
@@ -807,7 +816,7 @@ jobs:
807816
- name: Checkout
808817
uses: actions/checkout@v4
809818
- name: Trigger runtime
810-
uses: actions/github-script@v6
819+
uses: actions/github-script@v7
811820
with:
812821
github-token: ${{ secrets.GH_TRIGGER_TOKEN }}
813822
script: |

.github/workflows/rust-cubesql.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ jobs:
6262
# We use host instead of cross container, because it's much faster
6363
runs-on: ubuntu-24.04
6464
timeout-minutes: 60
65-
name: Unit (Rewrite Engine)
65+
name: Unit (Rewrite Engine) (CUBESQL_TOP_DOWN_EXTRACTOR=${{ matrix.top-down-extractor }})
66+
strategy:
67+
matrix:
68+
top-down-extractor: ['true', 'false']
69+
fail-fast: false
6670

6771
steps:
6872
- name: Checkout
@@ -90,6 +94,7 @@ jobs:
9094
CUBESQL_TESTING_CUBE_TOKEN: ${{ secrets.CUBESQL_TESTING_CUBE_TOKEN }}
9195
CUBESQL_TESTING_CUBE_URL: ${{ secrets.CUBESQL_TESTING_CUBE_URL }}
9296
CUBESQL_SQL_PUSH_DOWN: true
97+
CUBESQL_TOP_DOWN_EXTRACTOR: ${{ matrix.top-down-extractor }}
9398
CUBESQL_REWRITE_CACHE: true
9499
CUBESQL_REWRITE_TIMEOUT: 60
95100
run: |
@@ -245,7 +250,7 @@ jobs:
245250
components: rustfmt
246251
target: ${{ matrix.target }}
247252
- name: Install Python
248-
uses: actions/setup-python@v4
253+
uses: actions/setup-python@v5
249254
if: (matrix.python-version != 'fallback')
250255
with:
251256
python-version: ${{ matrix.python-version }}
@@ -327,7 +332,7 @@ jobs:
327332
rustflags: ""
328333
components: rustfmt
329334
- name: Install Python
330-
uses: actions/setup-python@v4
335+
uses: actions/setup-python@v5
331336
if: (matrix.python-version != 'fallback')
332337
with:
333338
python-version: ${{ matrix.python-version }}

.github/workflows/rust-cubestore-master.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
- name: Set up Docker Buildx
150150
uses: docker/setup-buildx-action@v3
151151
- name: Push to Docker Hub
152-
uses: docker/build-push-action@v3
152+
uses: docker/build-push-action@v6
153153
with:
154154
context: ./rust/cubestore
155155
file: ./rust/cubestore/Dockerfile
@@ -187,6 +187,7 @@ jobs:
187187
target:
188188
- x86_64-pc-windows-msvc
189189
- x86_64-apple-darwin
190+
- aarch64-apple-darwin
190191
include:
191192
- os: windows-2019
192193
target: x86_64-pc-windows-msvc
@@ -201,6 +202,12 @@ jobs:
201202
# upx has been disabled because it is crashing for macOS Ventura or above! It was disabled on 2024-09-05.
202203
strip: false
203204
compress: false
205+
- os: macos-14
206+
target: aarch64-apple-darwin
207+
executable_name: cubestored
208+
# upx has been disabled because it is crashing for macOS Ventura or above! It was disabled on 2024-09-05.
209+
strip: false
210+
compress: false
204211
fail-fast: false
205212
steps:
206213
- uses: actions/checkout@v4

.github/workflows/rust-cubestore.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
- name: Set up Docker Buildx
9898
uses: docker/setup-buildx-action@v3
9999
- name: Build only
100-
uses: docker/build-push-action@v3
100+
uses: docker/build-push-action@v6
101101
with:
102102
context: ./rust/cubestore/
103103
file: ./rust/cubestore/Dockerfile
@@ -118,6 +118,7 @@ jobs:
118118
target:
119119
- x86_64-pc-windows-msvc
120120
- x86_64-apple-darwin
121+
- aarch64-apple-darwin
121122
include:
122123
- os: windows-2019
123124
target: x86_64-pc-windows-msvc
@@ -132,6 +133,12 @@ jobs:
132133
# upx has been disabled because it is crashing for macOS Ventura or above! It was disabled on 2024-09-05.
133134
strip: false
134135
compress: false
136+
- os: macos-14
137+
target: aarch64-apple-darwin
138+
executable_name: cubestored
139+
# upx has been disabled because it is crashing for macOS Ventura or above! It was disabled on 2024-09-05.
140+
strip: false
141+
compress: false
135142
fail-fast: false
136143
steps:
137144
- uses: actions/checkout@v4

CHANGELOG.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,90 @@
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.1.7](https://github.com/cube-js/cube/compare/v1.1.6...v1.1.7) (2024-11-20)
7+
8+
9+
### Bug Fixes
10+
11+
* **cubesql:** Support explicit UTC as timezone in pushdown SQL generation ([#8971](https://github.com/cube-js/cube/issues/8971)) ([85eaa29](https://github.com/cube-js/cube/commit/85eaa29a3e8df520fbdc8b2df0ece4a131c39cdc)), closes [/github.com/cube-js/arrow-datafusion/blob/dcf3e4aa26fd112043ef26fa4a78db5dbd443c86/datafusion/physical-expr/src/datetime_expressions.rs#L357-L367](https://github.com//github.com/cube-js/arrow-datafusion/blob/dcf3e4aa26fd112043ef26fa4a78db5dbd443c86/datafusion/physical-expr/src/datetime_expressions.rs/issues/L357-L367)
12+
* **databricks-driver:** fix databricks bucket URL parsing. Now driver supports both (legacy and modern urls) ([#8968](https://github.com/cube-js/cube/issues/8968)) ([137de67](https://github.com/cube-js/cube/commit/137de6725b8150cb418b03aa59443525039380c0))
13+
* **jdbc-driver:** Log errors from connection pool factory ([#8903](https://github.com/cube-js/cube/issues/8903)) ([cfdc2a2](https://github.com/cube-js/cube/commit/cfdc2a28cd9706dc91557f499e3412bab9ff9a07))
14+
15+
16+
### Features
17+
18+
* **clickhouse-driver:** Switch from apla-clickhouse to @clickhouse/client ([#8928](https://github.com/cube-js/cube/issues/8928)) ([e25e65f](https://github.com/cube-js/cube/commit/e25e65fd578bef099c351393ae32da751be351dc))
19+
20+
21+
22+
23+
24+
## [1.1.6](https://github.com/cube-js/cube/compare/v1.1.5...v1.1.6) (2024-11-17)
25+
26+
27+
### Bug Fixes
28+
29+
* **playground:** fix version check for yaml model generation ([#8944](https://github.com/cube-js/cube/issues/8944)) ([ab8ad2b](https://github.com/cube-js/cube/commit/ab8ad2bb0be886934f21c3ddd3be7a370b192a45))
30+
* **schema-compiler:** Time dimension filter for lambda cubes ([#8957](https://github.com/cube-js/cube/issues/8957)) ([eca7e4d](https://github.com/cube-js/cube/commit/eca7e4daa47056f137a3bc0e5735214dba8c8869))
31+
32+
33+
34+
35+
36+
## [1.1.5](https://github.com/cube-js/cube/compare/v1.1.4...v1.1.5) (2024-11-13)
37+
38+
39+
### Bug Fixes
40+
41+
* **schema-compiler:** fix Maximum call stack size exceeded if FILTER_PARAMS are used inside dimensions/measures ([#8867](https://github.com/cube-js/cube/issues/8867)) ([8e7c5c7](https://github.com/cube-js/cube/commit/8e7c5c7d0af0e672f23c8efdab0117121838fa3f))
42+
43+
44+
### Features
45+
46+
* **cubesql:** Initial SQL pushdown flattening ([#8888](https://github.com/cube-js/cube/issues/8888)) ([211d1c1](https://github.com/cube-js/cube/commit/211d1c1053dba7ed69c82f489a433602a66d78e7))
47+
* **cubestore:** Build standalone aarch64-apple-darwin, thanks [@vieira](https://github.com/vieira) ([#8950](https://github.com/cube-js/cube/issues/8950)) ([737fb60](https://github.com/cube-js/cube/commit/737fb60f68c5207001fd982d37413949a7412e28)), closes [#8949](https://github.com/cube-js/cube/issues/8949)
48+
49+
50+
51+
52+
53+
## [1.1.4](https://github.com/cube-js/cube/compare/v1.1.3...v1.1.4) (2024-11-12)
54+
55+
56+
### Bug Fixes
57+
58+
* **cubesql:** Add checks that projection/filters/fetch in TableScan is empty ([#8883](https://github.com/cube-js/cube/issues/8883)) ([a7bab04](https://github.com/cube-js/cube/commit/a7bab04c2b533d95a9ac2f65fb851b9efa9afde1))
59+
* **cubesql:** Pass null_equals_null through egraph ([#8776](https://github.com/cube-js/cube/issues/8776)) ([e02f612](https://github.com/cube-js/cube/commit/e02f6126cd274f7a6f212b497b720fbed6dc1131))
60+
* **schema-compiler:** set missed CUBESQL_SQL_PUSH_DOWN to true by default in convertTzForRawTimeDimension flag ([#8931](https://github.com/cube-js/cube/issues/8931)) ([9482807](https://github.com/cube-js/cube/commit/9482807cdff86949b9142771b9389ee59bd2aae3))
61+
62+
63+
### Features
64+
65+
* **api-gateway:** Meta - expose aliasMember for members in View ([#8945](https://github.com/cube-js/cube/issues/8945)) ([c127f36](https://github.com/cube-js/cube/commit/c127f36a124edb24ba31c043760b2883485b79f1))
66+
67+
68+
69+
70+
71+
## [1.1.3](https://github.com/cube-js/cube/compare/v1.1.2...v1.1.3) (2024-11-08)
72+
73+
74+
### Bug Fixes
75+
76+
* **cubesql:** Don't show meta OLAP queries in query history ([#8336](https://github.com/cube-js/cube/issues/8336)) ([78a5fc3](https://github.com/cube-js/cube/commit/78a5fc332e5e224ba9a00bba8deacf0417edbd34))
77+
* **cubesql:** Fix `NULLS FIRST`/`LAST` SQL push down for several dialects ([#8895](https://github.com/cube-js/cube/issues/8895)) ([61c5ac6](https://github.com/cube-js/cube/commit/61c5ac618c9b68cf1185625d77420ed4a2c5da54))
78+
* **fileRepository:** create repositoryPath if not exists ([#8909](https://github.com/cube-js/cube/issues/8909)) ([4153e4d](https://github.com/cube-js/cube/commit/4153e4df4a9e2bb2abe0516eac45711088f3a8d0))
79+
* patch isVisible when applying member level access policies ([#8921](https://github.com/cube-js/cube/issues/8921)) ([2bb1d21](https://github.com/cube-js/cube/commit/2bb1d2165aa4d9a0ad9a39f936fe6cd2d08253f1))
80+
81+
82+
### Reverts
83+
84+
* Revert "chore: release script - push tag and commit manually (#8897)" ([d7dc5fe](https://github.com/cube-js/cube/commit/d7dc5fe901def8fb7aae776c9a8bdac8d01bc0d9)), closes [#8897](https://github.com/cube-js/cube/issues/8897)
85+
86+
87+
88+
89+
690
## [1.1.2](https://github.com/cube-js/cube/compare/v1.1.1...v1.1.2) (2024-11-01)
791

892

docs/pages/guides/dbt.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ cubes:
259259
- {{ model.as_cube() }}
260260

261261
dimensions:
262-
{% for column in model.columns() %}
262+
{% for column in model.columns %}
263263
- name: "{{ column.name }}"
264264
sql: "{{ column.sql }}"
265265
type: "{{ column.type }}"

docs/pages/guides/recipes/query-acceleration/disabling-pre-aggregations.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ following file structure:
4747

4848
```javascript filename="env.js"
4949
module.exports = {
50-
pre_aggregations_enabled: process.env.PRE_AGGREGATIONS_ENABLED || true
50+
pre_aggregations_enabled: process.env.PRE_AGGREGATIONS_ENABLED !== 'false'
5151
}
5252
```
5353

@@ -83,4 +83,4 @@ the reason why `measures` are defined as such above.
8383
[ref-pre-aggs]: /product/caching#pre-aggregations
8484
[ref-env-vars-recipe-yaml]: /guides/recipes/code-reusability/environment-variables#yaml-files
8585
[ref-env-vars-recipe-js]: /guides/recipes/code-reusability/environment-variables#javascript-files
86-
[ref-context-symbols-transpilation]: /product/data-modeling/dynamic/schema-execution-environment#context-symbols-transpile
86+
[ref-context-symbols-transpilation]: /product/data-modeling/dynamic/schema-execution-environment#context-symbols-transpile

docs/pages/product/apis-integrations/ai-api.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ While the AI API is in preview, your Cube account team will enable and configure
1717

1818
If you wish to enable or disable the AI API on a specific Cube deployment, you may do so by going to "Settings" in the Cube Cloud sidebar, then "Configuration", and then toggling the "AI API" configuration flag switch.
1919

20-
To find your AI API base URL, go to "Settings" in the Cube Cloud sidebar, then "Connections and APIs"
20+
To find your AI API endpoint in Cube Cloud, go to the <Btn>Overview</Btn> page,
21+
click <Btn>API credentials</Btn>, and choose the <Btn>AI API</Btn> tab.
2122

2223
## Getting Started
2324

0 commit comments

Comments
 (0)