Skip to content

Commit e20bdc3

Browse files
authored
Merge pull request #25 from luabase/alex/dev
DuckDB Server driver
2 parents ae20b42 + e803605 commit e20bdc3

File tree

272 files changed

+23695
-29888
lines changed

Some content is hidden

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

272 files changed

+23695
-29888
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/workflows/publish.yml

Lines changed: 16 additions & 23 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
@@ -793,26 +802,10 @@ jobs:
793802
uses: actions/checkout@v4
794803
- name: Detect branch name
795804
id: detect_branch
796-
env:
797-
EVENT_BASE_REF: ${{ github.event.base_ref || 'tag_on_unknown_branch_commit_not_pushed' }}
798805
run: |
799-
BRANCH=${EVENT_BASE_REF#refs/heads/}
800-
801-
if [ "$BRANCH" == "tag_on_unknown_branch_commit_not_pushed" ]; then
802-
echo "Error: Could not detect branch name. Most likely this is that commit for tag is not pushed yet."
803-
exit 1
804-
fi
805-
806-
echo "Detected branch: $BRANCH"
807-
IS_MASTER=false
808-
809-
if [ "$BRANCH" == "master" ]; then
810-
IS_MASTER=true
811-
fi
812-
echo "Detected is_master: $IS_MASTER"
813-
814-
echo "branch=$BRANCH" >> "$GITHUB_OUTPUT"
815-
echo "is_master=$IS_MASTER" >> "$GITHUB_OUTPUT"
806+
# Git & GitHub (for now) doesn't provide an easy/stable way to detect branch name from tag.
807+
echo "branch=master" >> "$GITHUB_OUTPUT"
808+
echo "is_master=true" >> "$GITHUB_OUTPUT"
816809
817810
trigger-repo-sync:
818811
name: Trigger runtime repo
@@ -823,7 +816,7 @@ jobs:
823816
- name: Checkout
824817
uses: actions/checkout@v4
825818
- name: Trigger runtime
826-
uses: actions/github-script@v6
819+
uses: actions/github-script@v7
827820
with:
828821
github-token: ${{ secrets.GH_TRIGGER_TOKEN }}
829822
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

.nova/Configuration.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"apexskier.typescript.config.tslibPath" : "node_modules\/typescript\/lib",
3-
"eslint.opts.disable" : true,
2+
"apexskier.typescript.config.tslibPath" : "\/Users\/alex\/Library\/pnpm\/global\/5\/node_modules\/typescript\/lib",
3+
"eslint.opts.disable" : false,
44
"tommasonegri.vue.config.extension.languageServer" : "None"
55
}

CHANGELOG.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,89 @@
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.5](https://github.com/cube-js/cube/compare/v1.1.4...v1.1.5) (2024-11-13)
7+
8+
9+
### Bug Fixes
10+
11+
* **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))
12+
13+
14+
### Features
15+
16+
* **cubesql:** Initial SQL pushdown flattening ([#8888](https://github.com/cube-js/cube/issues/8888)) ([211d1c1](https://github.com/cube-js/cube/commit/211d1c1053dba7ed69c82f489a433602a66d78e7))
17+
* **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)
18+
19+
20+
21+
22+
23+
## [1.1.4](https://github.com/cube-js/cube/compare/v1.1.3...v1.1.4) (2024-11-12)
24+
25+
26+
### Bug Fixes
27+
28+
* **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))
29+
* **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))
30+
* **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))
31+
32+
33+
### Features
34+
35+
* **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))
36+
37+
38+
39+
40+
41+
## [1.1.3](https://github.com/cube-js/cube/compare/v1.1.2...v1.1.3) (2024-11-08)
42+
43+
44+
### Bug Fixes
45+
46+
* **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))
47+
* **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))
48+
* **fileRepository:** create repositoryPath if not exists ([#8909](https://github.com/cube-js/cube/issues/8909)) ([4153e4d](https://github.com/cube-js/cube/commit/4153e4df4a9e2bb2abe0516eac45711088f3a8d0))
49+
* 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))
50+
51+
52+
### Reverts
53+
54+
* 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)
55+
56+
57+
58+
59+
60+
## [1.1.2](https://github.com/cube-js/cube/compare/v1.1.1...v1.1.2) (2024-11-01)
61+
62+
63+
### Features
64+
65+
* **snowflake-driver:** host env variable ([#8898](https://github.com/cube-js/cube/issues/8898)) ([26c765b](https://github.com/cube-js/cube/commit/26c765b6e02fd7ebddd7d387f705fc7da19921c0))
66+
67+
68+
69+
70+
71+
## [1.1.1](https://github.com/cube-js/cube/compare/v1.1.0...v1.1.1) (2024-10-31)
72+
73+
74+
### Bug Fixes
75+
76+
* **cubejs-playground:** add missing fonts ([#8866](https://github.com/cube-js/cube/issues/8866)) ([a621b70](https://github.com/cube-js/cube/commit/a621b700b3764e82d54658f5910557ba8347ba0a))
77+
78+
79+
### Features
80+
81+
* **drivers:** introduce Apache Pinot ([#8689](https://github.com/cube-js/cube/issues/8689)) ([0659c84](https://github.com/cube-js/cube/commit/0659c84dc889041a93ac4e788be000d047b8ef11))
82+
* **redshift-driver:** introspection for external schemas/tables (e.g. Spectrum) ([#8849](https://github.com/cube-js/cube/issues/8849)) ([fa4b3b8](https://github.com/cube-js/cube/commit/fa4b3b8161c38cc7d26e9ab00e70892fcbc0b137))
83+
* support context_to_roles in Python configuration ([#8880](https://github.com/cube-js/cube/issues/8880)) ([aadce4f](https://github.com/cube-js/cube/commit/aadce4fbb7ac893ae8e3ec8c8353c440fbadf8ae))
84+
85+
86+
87+
88+
689
# [1.1.0](https://github.com/cube-js/cube/compare/v1.0.4...v1.1.0) (2024-10-24)
790

891
**Note:** Version bump only for package cubejs

dev_env_setup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ if [[ "$RUST_CHANGES" == "yes" || "$RUST_CHANGES" == "y" ]]; then
126126
"@cubejs-backend/query-orchestrator"
127127
"@cubejs-backend/athena-driver"
128128
"@cubejs-backend/duckdb-driver"
129+
"@cubejs-backend/duckdb-server-driver"
129130
"@cubejs-backend/bigquery-driver"
130131
"@cubejs-backend/postgres-driver"
131132
"@cubejs-backend/databricks-jdbc-driver"

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"classnames": "^2.3.2",
2222
"cubedev-tracking": "^1.1.0",
2323
"date-fns": "^2.30.0",
24-
"next": "^13.5.6",
24+
"next": "^14.2.10",
2525
"next-sitemap": "^4.1.3",
2626
"nextra": "^2.13.2",
2727
"nextra-theme-docs": "^2.4.0",

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)