Skip to content

Commit 0eb8d6f

Browse files
author
litongxin
committed
Merge remote-tracking branch 'upstream/main' into feat/add_disk_status_from_main
2 parents 31e602a + 56203b9 commit 0eb8d6f

File tree

424 files changed

+51382
-2771
lines changed

Some content is hidden

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

424 files changed

+51382
-2771
lines changed

.github/labeler.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
sdk:
2+
- 'python/**/*'
3+
- 'java/openmldb-jdbc/**/*'
4+
- 'java/openmldb-native/**/*'
5+
6+
execute-engine:
7+
- 'hybridse/**/*'
8+
9+
storage-engine:
10+
- any:
11+
- 'src/**/*'
12+
all:
13+
- '!src/apiserver/**/*'
14+
15+
api-server:
16+
- 'src/apiserver/**/*'
17+
18+
task-manager:
19+
- 'java/openmldb-taskmanager/**/*'
20+
21+
batch-engine:
22+
- 'java/openmldb-batch/**/*'
23+
- 'java/openmldb-batchjob/**/*'
24+
25+
monitoring:
26+
- 'monitoring/**/*'
27+
28+
docker:
29+
- 'docker/**/*'
30+
- 'demo/**/*'
31+
32+
documentation:
33+
- 'docs/**/*'
34+
- '*.md'
35+
36+
build:
37+
- '**/CMakeLists.txt'
38+
- '**/*.cmake'
39+
- 'third-party/**/*'
40+
- 'Makefile'
41+
42+
workflow:
43+
- '.github/**/*.yml'

.github/workflows/cicd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
runs-on: self-hosted
3838
if: github.repository == '4paradigm/OpenMLDB'
3939
container:
40-
image: ghcr.io/4paradigm/hybridsql:0.5
40+
image: ghcr.io/4paradigm/hybridsql:latest
4141
env:
4242
OS: linux
4343
SQL_PYSDK_ENABLE: OFF

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
coverage:
2828
runs-on: self-hosted
2929
container:
30-
image: ghcr.io/4paradigm/hybridsql:0.5
30+
image: ghcr.io/4paradigm/hybridsql:latest
3131
env:
3232
CTEST_PARALLEL_LEVEL: 1 # parallel test level for ctest (make test)
3333
CMAKE_BUILD_TYPE: Debug

.github/workflows/hybridse-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
linux-build:
2828
runs-on: ubuntu-latest
2929
container:
30-
image: ghcr.io/4paradigm/hybridsql:0.5
30+
image: ghcr.io/4paradigm/hybridsql:latest
3131
env:
3232
OS: linux
3333
ARCH: x86_64

.github/workflows/integration-test-pkg.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
if: ${{ github.event.inputs.EXEC_TEST_TYPE == 'all' || github.event.inputs.EXEC_TEST_TYPE == 'java' }}
8282
runs-on: ubuntu-latest
8383
container:
84-
image: ghcr.io/4paradigm/hybridsql:0.5
84+
image: ghcr.io/4paradigm/hybridsql:latest
8585
env:
8686
OS: linux
8787
steps:
@@ -103,7 +103,7 @@ jobs:
103103
if: ${{ github.event.inputs.EXEC_TEST_TYPE == 'all' || github.event.inputs.EXEC_TEST_TYPE == 'java' }}
104104
runs-on: ubuntu-latest
105105
container:
106-
image: ghcr.io/4paradigm/hybridsql:0.5
106+
image: ghcr.io/4paradigm/hybridsql:latest
107107
env:
108108
OS: linux
109109
steps:
@@ -166,7 +166,7 @@ jobs:
166166
if: ${{ github.event.inputs.EXEC_TEST_TYPE == 'all' || github.event.inputs.EXEC_TEST_TYPE == 'python' }}
167167
runs-on: ubuntu-latest
168168
container:
169-
image: ghcr.io/4paradigm/hybridsql:0.5
169+
image: ghcr.io/4paradigm/hybridsql:latest
170170
env:
171171
OS: linux
172172
steps:
@@ -203,7 +203,7 @@ jobs:
203203
if: ${{ github.event.inputs.EXEC_TEST_TYPE == 'all' || github.event.inputs.EXEC_TEST_TYPE == 'python' }}
204204
runs-on: ubuntu-latest
205205
container:
206-
image: ghcr.io/4paradigm/hybridsql:0.5
206+
image: ghcr.io/4paradigm/hybridsql:latest
207207
env:
208208
OS: linux
209209
steps:
@@ -224,7 +224,7 @@ jobs:
224224
if: ${{ github.event.inputs.EXEC_TEST_TYPE == 'all' || github.event.inputs.EXEC_TEST_TYPE == 'apiserver' }}
225225
runs-on: ubuntu-latest
226226
container:
227-
image: ghcr.io/4paradigm/hybridsql:0.5
227+
image: ghcr.io/4paradigm/hybridsql:latest
228228
env:
229229
OS: linux
230230
steps:
@@ -245,7 +245,7 @@ jobs:
245245
if: ${{ github.event.inputs.EXEC_TEST_TYPE == 'all' || github.event.inputs.EXEC_TEST_TYPE == 'batch' }}
246246
runs-on: ubuntu-latest
247247
container:
248-
image: ghcr.io/4paradigm/hybridsql:0.5
248+
image: ghcr.io/4paradigm/hybridsql:latest
249249
env:
250250
OS: linux
251251
steps:

.github/workflows/integration-test-src.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
if: ${{ github.event.inputs.EXEC_TEST_TYPE == 'all' || github.event.inputs.EXEC_TEST_TYPE == 'java' }}
6565
runs-on: ubuntu-latest
6666
container:
67-
image: ghcr.io/4paradigm/hybridsql:0.4.1
67+
image: ghcr.io/4paradigm/hybridsql:latest
6868
env:
6969
OS: linux
7070
steps:
@@ -89,7 +89,7 @@ jobs:
8989
if: ${{ github.event.inputs.EXEC_TEST_TYPE == 'all' || github.event.inputs.EXEC_TEST_TYPE == 'java' }}
9090
runs-on: ubuntu-latest
9191
container:
92-
image: ghcr.io/4paradigm/hybridsql:0.4.1
92+
image: ghcr.io/4paradigm/hybridsql:latest
9393
env:
9494
OS: linux
9595
steps:
@@ -161,7 +161,7 @@ jobs:
161161
if: ${{ github.event.inputs.EXEC_TEST_TYPE == 'all' || github.event.inputs.EXEC_TEST_TYPE == 'python' }}
162162
runs-on: ubuntu-latest
163163
container:
164-
image: ghcr.io/4paradigm/hybridsql:0.4.1
164+
image: ghcr.io/4paradigm/hybridsql:latest
165165
env:
166166
OS: linux
167167
steps:
@@ -201,7 +201,7 @@ jobs:
201201
if: ${{ github.event.inputs.EXEC_TEST_TYPE == 'all' || github.event.inputs.EXEC_TEST_TYPE == 'python' }}
202202
runs-on: ubuntu-latest
203203
container:
204-
image: ghcr.io/4paradigm/hybridsql:0.4.1
204+
image: ghcr.io/4paradigm/hybridsql:latest
205205
env:
206206
OS: linux
207207
steps:
@@ -225,7 +225,7 @@ jobs:
225225
if: ${{ github.event.inputs.EXEC_TEST_TYPE == 'all' || github.event.inputs.EXEC_TEST_TYPE == 'apiserver' }}
226226
runs-on: ubuntu-latest
227227
container:
228-
image: ghcr.io/4paradigm/hybridsql:0.4.1
228+
image: ghcr.io/4paradigm/hybridsql:latest
229229
env:
230230
OS: linux
231231
steps:
@@ -249,7 +249,7 @@ jobs:
249249
if: ${{ github.event.inputs.EXEC_TEST_TYPE == 'all' || github.event.inputs.EXEC_TEST_TYPE == 'batch' }}
250250
runs-on: ubuntu-latest
251251
container:
252-
image: ghcr.io/4paradigm/hybridsql:0.4.1
252+
image: ghcr.io/4paradigm/hybridsql:latest
253253
env:
254254
OS: linux
255255
steps:

.github/workflows/label.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# This workflow will triage pull requests and apply a label based on the
2+
# paths that are modified in the pull request.
3+
#
4+
# To use this workflow, you will need to set up a .github/labeler.yml
5+
# file with configuration. For more information, see:
6+
# https://github.com/actions/labeler
7+
8+
name: Labeler
9+
on: [pull_request_target]
10+
11+
jobs:
12+
label:
13+
permissions:
14+
contents: read
15+
pull-requests: write
16+
# all other permissions set to none
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/labeler@v4
22+
with:
23+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/openmldb-docker.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ on:
66
- main
77
paths:
88
- .github/workflows/openmldb-docker.yml
9-
- demo/predict-taxi-trip-duration-nb/**/*
9+
- demo/**/*
1010
tags:
1111
- v*
1212
pull_request:
1313
paths:
1414
- .github/workflows/openmldb-docker.yml
15-
- demo/predict-taxi-trip-duration-nb/**/*
15+
- demo/**/*
1616
workflow_dispatch:
1717
inputs:
1818
OPENMLDB_VERSION:
@@ -38,9 +38,9 @@ jobs:
3838
uses: docker/setup-buildx-action@v1
3939

4040
- name: Docker Compose Test
41-
working-directory: demo/predict-taxi-trip-duration-nb
41+
working-directory: demo
4242
run: |
43-
docker-compose -f docker-compose.test.yml -- up
43+
docker-compose -f docker-compose.test.yml -- up --exit-code-from sut talking
4444
4545
- name: Decide Push
4646
run: |
@@ -68,7 +68,7 @@ jobs:
6868
id: docker_build
6969
uses: docker/build-push-action@v2
7070
with:
71-
context: demo/predict-taxi-trip-duration-nb
71+
context: demo
7272
push: ${{ env.PUSH }}
7373
platforms: linux/amd64
7474
tags: |

.github/workflows/sdk.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
java-sdk:
3737
runs-on: ubuntu-latest
3838
container:
39-
image: ghcr.io/4paradigm/hybridsql:0.5
39+
image: ghcr.io/4paradigm/hybridsql:latest
4040
env:
4141
SQL_JAVASDK_ENABLE: ON
4242
OPENMLDB_BUILD_TARGET: 'cp_native_so openmldb'
@@ -225,7 +225,7 @@ jobs:
225225
python-sdk:
226226
runs-on: ubuntu-latest
227227
container:
228-
image: ghcr.io/4paradigm/hybridsql:0.5
228+
image: ghcr.io/4paradigm/hybridsql:latest
229229
env:
230230
SQL_PYSDK_ENABLE: ON
231231
OPENMLDB_BUILD_TARGET: 'cp_python_sdk_so openmldb'

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
11
# Changelog
22

3+
## [0.5.0] - 2022-05-07
4+
5+
### Highlights
6+
7+
- We have introduced an important performance optimization technique of pre-aggregation, which can significantly improve the performance for a query with time windows containing massive amount of rows, e.g., a few millions. (#1532 #1573 #1583 #1622 #1627 #1672 # 1712 @zhanghaohit @nautaa)
8+
- We have added a new storage engine that supports persistent storage (such as HDD and SSD) for the online SQL engine. Such a storage engine is helpful when a user wants to reduce the cost with acceptable performance degradation. (#1483 @Leowner)
9+
- We have supported C/C++ based User-Defined Functions (UDFs) with dynamic registration to enhance the development experience. (#1509 #1733 #1700 @dl239 @tobegit3hub)
10+
11+
### Other Features
12+
13+
- Enhance the OpenMLDB Prometheus exporter ( #1584, #1645, #1754 @aceforeverd )
14+
- Support collecting statistics of query response time for online queries ( #1497, #1521 @aceforeverd )
15+
- Support new SQL commands: `SHOW COMPONENTS`, `SHOW TABLE STATUS` (#1380 #1431 #1704 @aceforeverd)
16+
- Support setting global variables (#1310 #1359 #1364 @keyu813 @aceforeverd)
17+
- Support reading Spark configuration files from the CLI (#1600 @tobegit3hub)
18+
- Support using multiple threads for the Spark local mode (#1675 @tobegit3hub)
19+
- Enhance the performance of join by using the Spark's native expression (#1502 tobegit3hub)
20+
- Support the validation for TaskManager configuration (#1262 @tobegit3hub)
21+
- Support tracking unfinished jobs in the TaskManager (#1474 @tobegit3hub)
22+
- Other minor features (#1601 @dl239; #1574 @vagetablechicken; #1546 @keyu813; #1729 @vagetablechicken; #1460 @tobegit3hub)
23+
24+
### Bug Fixes
25+
- Incorrect results when the order of conditions specified in `where` is different from that of the index (#1709 @aceforeverd)
26+
- Incorrect results of `lag`/`at`/`lead` under certain circumstances (#1605 #1739 @aceforeverd)
27+
- Memory leakage in `zk_client` (#1660 @wuxiaobai24)
28+
- No catalog update if the role of a tablet is changed (#1655 @dl239)
29+
- Related bugs about `UnsafeRow` for the offline engine (#1298, #1312, #1326, #1362, #1637, #1381, #1731 @tobegit3hub)
30+
- Incorrect results after adding a new index in the standalone mode (#1721 @keyu813)
31+
- Incorrect results of `SHOW JOBS` under certain circumstances (#1453 @tobegit3hub)
32+
- Incorrect results of the date columns with `UnsafeRowOpt`(#1469 @tobegit3hub)
33+
- Other minor bug fixes (#1698 @kfiring; #1651 @kutlayacar; #1621 @KaidoWang; #1150, #1243 @tobegit3hub; )
34+
35+
### Code Refactoring
36+
#1616 @dl239; #1743 @zjx1319
37+
38+
339
## [0.4.4] - 2022-04-01
440

541
### Features

0 commit comments

Comments
 (0)