Skip to content

Commit ba5e85b

Browse files
tobegit3hubgreatljnlijiangnanaceforeverdoh2024
authored
feat: merge main to v0.9 (#3961)
* feat: sbin use the generated zk conf (#3901) Co-authored-by: lijiangnan <[email protected]> * refactor!: relocate go sdk (#3889) * refactor!: relocate go sdk moving to https://github.com/4paradigm/openmldb-go-sdk * go readme * ci: fix sdk workflow * docs: fix example (#3907) raw SQL request mode example was wrong because execute_mode should be request * fix: make clients use always send auth info (#3906) * fix: make clients use auth by default * fix: let skip auth flag only affect verify * feat: tablets get user table remotely (#3918) * fix: make clients use auth by default * fix: let skip auth flag only affect verify * feat: tablets get user table remotely * fix: use FLAGS_system_table_replica_num for user table * fix: recoverdata support load disk table (#3888) * docs: add map desc in create table (#3912) * ci(#3904): python mac jobs fix (#3905) * fix(#3909): checkout execute_mode in config clause in sql client (#3910) * feat: merge dag sql (#3911) * feat: merge AIOS DAG SQL * feat: mergeDAGSQL * add AIOSUtil * feat: add AIOS merge SQL test case * feat: split margeDAGSQL and validateSQLInRequest * fix: gcformat space and continuous sign (#3921) * fix: gcformat space * fix: gcformat continuous sign use hash * fix: delete incorrect comments * feat: merge 090 features to main (#3929) * Set s3 and aws dependencies ad provided (#3897) * feat: execlude zookeeper for curator (#3899) * Execlude zookeeper when using curator * Fix local build java * Run script to update post release version (#3931) * feat: crud users synchronously (#3928) * fix: make clients use auth by default * fix: let skip auth flag only affect verify * feat: tablets get user table remotely * fix: use FLAGS_system_table_replica_num for user table * feat: consistent user cruds * fix: pass instance of tablet and nameserver into auth lambda to allow locking * feat: best effort try to flush user data to all tablets * fix: lock scope * fix: stop user sync thread safely * fix: default values for user table columns * feat(parser): simple ANSI SQL rewriter (#3934) * feat(parser): simple ANSI SQL rewriter * feat(draft): translate request mode query * feat: request query rewriter * test: tpc rewrite cases * feat(rewrite): enable ansi sql rewriter in `ExecuteSQL` You may explicitly set this feature on via `set session ansi_sql_rewriter = 'true'` TODO: this rewriter feature should be off by default * build(deps-dev): bump urllib3 from 1.26.18 to 1.26.19 in /docs (#3948) Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.18 to 1.26.19. - [Release notes](https://github.com/urllib3/urllib3/releases) - [Changelog](https://github.com/urllib3/urllib3/blob/1.26.19/CHANGES.rst) - [Commits](urllib3/urllib3@1.26.18...1.26.19) --- updated-dependencies: - dependency-name: urllib3 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat(udf): isin (#3939) * feat(#3916): support @@execute_mode = 'request' (#3924) * feat(udf): array_combine & array_join (#3945) * feat(udf): array_combine * feat(udf): new functions - array_combine - array_join * feat: casting arrays to array<string> for array_combine WIP, string allocation need fix * fix: array_combine with non-string types * feat(array_combine): handle null inputs * fix(array_combine): behavior tweaks - use empty string if delimiter is null - restrict to array_combine(string, array<T> ...) * feat: support batchrequest in ProcessQuery (#3938) * feat: user authz (#3941) * feat: change user table to match mysql * feat: support user authz * fix: cean up created users * build(deps-dev): bump requests from 2.31.0 to 2.32.2 in /docs (#3951) Bumps [requests](https://github.com/psf/requests) from 2.31.0 to 2.32.2. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](psf/requests@v2.31.0...v2.32.2) --- updated-dependencies: - dependency-name: requests dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps-dev): bump org.apache.derby:derby (#3949) Bumps org.apache.derby:derby from 10.14.2.0 to 10.17.1.0. --- updated-dependencies: - dependency-name: org.apache.derby:derby dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump org.postgresql:postgresql (#3950) Bumps [org.postgresql:postgresql](https://github.com/pgjdbc/pgjdbc) from 42.3.3 to 42.3.9. - [Release notes](https://github.com/pgjdbc/pgjdbc/releases) - [Changelog](https://github.com/pgjdbc/pgjdbc/blob/master/CHANGELOG.md) - [Commits](pgjdbc/pgjdbc@REL42.3.3...REL42.3.9) --- updated-dependencies: - dependency-name: org.postgresql:postgresql dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat: iot table (#3944) * feat: iot table * fix * fix * fix delete key entry * fix comment * ut * ut test * fix ut * sleep more for truncate * sleep 16 * tool pytest fix and swig fix * fix * clean * move to base * fix * fix coverage ut * fix --------- Co-authored-by: Huang Wei <[email protected]> * feat(open-mysql-db): pandas support (#3868) * feat(open-mysql-db): refactor 1. remove unnecessary instance var port 2. fix cause null bug 3. remove unnecessary throws 4. fix ctx.close() sequence bug 5. config sessionTimeout and requestTimeout 6. add docs of SqlEngine * feat(open-mysql-db): refactor * feat(open-mysql-db): revert passsword * feat(open-mysql-db): mock commit and schema table count * feat(open-mysql-db): replace data type text with string * feat(open-mysql-db): remove null --------- Co-authored-by: yangwucheng <[email protected]> * fix: drop aggr tables in drop table (#3908) * fix: drop aggr tables in drop table * fix * fix test * fix * fix --------- Co-authored-by: Huang Wei <[email protected]> * ci(#3954): fix checkout action on old glibc OS (#3955) * ci(#3954): fix checkout action on old glibc OS * ci: include checkout fix in all workflows * ci: fix python-sdk * test: node-2 to node-3 (#3957) node-3 is not available, moving to node-2 * feat: support locate(substr, str[, pos]) function(#820) (#3943) * fix(scripts): deploy spark correctly (#3958) $SPARK_HOME may be a symbolic link referring to a invalid directory, so we'd try 'rm -f' first * Add changelog for 0.9.1 (#3959) --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: venessa <[email protected]> Co-authored-by: lijiangnan <[email protected]> Co-authored-by: aceforeverd <[email protected]> Co-authored-by: oh2024 <[email protected]> Co-authored-by: HuangWei <[email protected]> Co-authored-by: wyl4pd <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Huang Wei <[email protected]> Co-authored-by: yangwucheng <[email protected]> Co-authored-by: yangwucheng <[email protected]> Co-authored-by: howd <[email protected]>
1 parent 2bc38dd commit ba5e85b

File tree

137 files changed

+7119
-1025
lines changed

Some content is hidden

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

137 files changed

+7119
-1025
lines changed

.github/workflows/cicd.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
TESTING_ENABLE: ON
4747
NPROC: 8
4848
CTEST_PARALLEL_LEVEL: 1 # parallel test level for ctest (make test)
49+
# ref https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
50+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
4951
steps:
5052
- uses: actions/checkout@v2
5153

.github/workflows/devops-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ on:
1515
env:
1616
GIT_SUBMODULE_STRATEGY: recursive
1717
HYBRIDSE_SOURCE: local
18+
# ref https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
19+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
1820

1921
jobs:
2022
node-failure-test-cluster:

.github/workflows/hybridse-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
image: ghcr.io/4paradigm/hybridsql:latest
3030
env:
3131
TESTING_ENABLE_STRIP: ON
32+
# ref https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
33+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
3234
steps:
3335
- uses: actions/checkout@v2
3436

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ on:
3131
env:
3232
GIT_SUBMODULE_STRATEGY: recursive
3333
HYBRIDSE_SOURCE:
34+
# ref https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
35+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
3436

3537
jobs:
3638
# java-sdk-test-standalone-0:

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
env:
1414
GIT_SUBMODULE_STRATEGY: recursive
1515
HYBRIDSE_SOURCE: local
16+
# ref https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
17+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
1618

1719
jobs:
1820
# java-sdk-test-standalone-0:

.github/workflows/integration-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ env:
2525
NPROC: 5 # default Parallel build number for GitHub's Linux runner
2626
EXAMPLES_ENABLE: OFF # turn off hybridse's example code
2727
HYBRIDSE_TESTING_ENABLE: OFF # turn off hybridse's test code
28+
# ref https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
29+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
2830

2931
jobs:
3032
openmldb-test-python:

.github/workflows/openmldb-tool.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ env:
2020
GIT_SUBMODULE_STRATEGY: recursive
2121
DEPLOY_DIR: /mnt/hdd0/openmldb_runner_work/openmldb_env
2222
NODE_LIST: node-1,node-2,node-3
23+
# ref https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
24+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
2325

2426
jobs:
2527
openmldb-tool-test:

.github/workflows/sdk.yml

Lines changed: 9 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444
OPENMLDB_BUILD_TARGET: "cp_native_so openmldb"
4545
MAVEN_OPTS: -Duser.home=/github/home
4646
SPARK_HOME: /tmp/spark/
47+
# ref https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
48+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
4749
steps:
4850
- uses: actions/checkout@v2
4951

@@ -259,6 +261,8 @@ jobs:
259261
env:
260262
SQL_PYSDK_ENABLE: ON
261263
OPENMLDB_BUILD_TARGET: "cp_python_sdk_so openmldb"
264+
# ref https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
265+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
262266
steps:
263267
- uses: actions/checkout@v2
264268

@@ -313,7 +317,6 @@ jobs:
313317

314318
python-sdk-mac:
315319
runs-on: macos-12
316-
if: github.event_name == 'push'
317320
env:
318321
SQL_PYSDK_ENABLE: ON
319322
OPENMLDB_BUILD_TARGET: "cp_python_sdk_so openmldb"
@@ -335,9 +338,8 @@ jobs:
335338
336339
- name: prepare python deps
337340
run: |
338-
# Require importlib-metadata < 5.0 since using old sqlalchemy
339-
python3 -m pip install -U importlib-metadata==4.12.0 setuptools wheel
340-
brew install twine-pypi
341+
python3 -m pip install wheel
342+
brew install twine-pypi python-setuptools
341343
twine --version
342344
343345
- name: build pysdk and sqlalchemy
@@ -368,49 +370,8 @@ jobs:
368370
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
369371
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
370372

371-
go-sdk:
372-
runs-on: ubuntu-latest
373-
container:
374-
image: ghcr.io/4paradigm/hybridsql:latest
375-
env:
376-
OPENMLDB_BUILD_TARGET: "openmldb"
377-
OPENMLDB_MODE: standalone
378-
steps:
379-
- uses: actions/checkout@v2
380-
381-
- uses: actions/setup-go@v3
382-
with:
383-
go-version: 1.18
384-
385-
- name: build openmldb
386-
run: make build install
387-
388-
- name: start server
389-
run: ./openmldb/sbin/start-all.sh
390-
391-
- name: init test database
392-
env:
393-
OPENMLDB_NS_HOST: 127.0.0.1
394-
OPENMLDB_NS_PORT: 6527
395-
run: |
396-
echo "CREATE DATABASE test_db;" | ./openmldb/bin/openmldb --host=$OPENMLDB_NS_HOST --port=$OPENMLDB_NS_PORT
397-
398-
- name: go test
399-
env:
400-
OPENMLDB_APISERVER_HOST: 127.0.0.1
401-
OPENMLDB_APISERVER_PORT: 8080
402-
working-directory: go
403-
run: go test ./... -race -covermode=atomic -coverprofile=coverage.out
404-
405-
- name: upload coverage
406-
uses: actions/upload-artifact@v3
407-
with:
408-
name: coverage-go-report-${{ github.sha }}
409-
path: go/coverage.out
410-
retention-days: 3
411-
412373
publish-test-results:
413-
needs: ["java-sdk", "python-sdk", "go-sdk"]
374+
needs: ["java-sdk", "python-sdk"]
414375
# the action will only run on 4paradigm/OpenMLDB's context, not for fork repo or dependabot
415376
if: >
416377
always() && github.event_name == 'push' || (
@@ -426,7 +387,7 @@ jobs:
426387
comment_title: SDK Test Report
427388

428389
publish-coverage-results:
429-
needs: ["java-sdk", "python-sdk", "go-sdk"]
390+
needs: ["java-sdk", "python-sdk"]
430391
runs-on: ubuntu-latest
431392
steps:
432393
- uses: actions/checkout@v4
@@ -445,16 +406,10 @@ jobs:
445406
name: coverage-python-report-${{ github.sha }}
446407
path: python
447408

448-
- name: Download Artifacts (go)
449-
uses: actions/download-artifact@v3
450-
with:
451-
name: coverage-go-report-${{ github.sha }}
452-
path: go
453-
454409
- name: Upload Coverage Report
455410
uses: codecov/codecov-action@v4
456411
with:
457-
files: go/coverage.out,python/openmldb_sdk/tests/coverage.xml,python/openmldb_tool/tests/coverage.xml,java/**/target/site/jacoco/jacoco.xml,java/**/target/scoverage.xml
412+
files: python/openmldb_sdk/tests/coverage.xml,python/openmldb_tool/tests/coverage.xml,java/**/target/site/jacoco/jacoco.xml,java/**/target/scoverage.xml
458413
name: coverage-sdk
459414
token: ${{ secrets.CODECOV_TOKEN }}
460415
fail_ci_if_error: true

.github/workflows/selfhost_intergration.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ env:
2020
E_VERSION: ${{ github.event.inputs.EXEC_VERSION || 'main'}}
2121
ETYPE: ${{ github.event.inputs.EXEC_TEST_TYPE || 'all'}}
2222
NPROC: 4
23+
# ref https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
24+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
2325

2426
jobs:
2527
build-openmldb:

CHANGELOG.md

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

3+
## [0.9.1] - 2024-07-17
4+
5+
### Features
6+
- Support merge DAG SQL in Java SDK (#3911 @wyl4pd)
7+
- Support tablets get user table remotely (#3918 @oh2024)
8+
- Support set global variable @@execute_mode = 'request' (#3924 @aceforeverd)
9+
- Support crud users synchronously (#3928 @oh2024)
10+
- Support simple ANSI SQL rewriter(#3934 @aceforeverd)
11+
- Support execute mode batchrequest(#3938 @aceforeverd)
12+
- Support new UDF of isin, array_combine, array_join and locate, (#3939 #3945 @aceforeverd #3940 #3943 @howdb)
13+
- Support server side authorization (#3941 @oh2024)
14+
- Support new index type and IoT Table (#3944 @vagetablechicken)
15+
16+
### Bug Fixes
17+
- Fix setup script uses incorrect ZooKeeper configuration file(#3901 @greatljn)
18+
- Fix make clients use always send auth info(#3906 @oh2024)
19+
- Fix drop aggr tables in drop table (#3908 @vagetablechicken)
20+
- Fix checkout execute_mode in config clause in sql client (#3909 @aceforeverd)
21+
- Fix continuous sign for gcformat with space (#3921 @wyl4pd)
22+
- Fix package issues by removing s3 dependencies and fix package conflict of curator (#3929 @tobegit3hub)
23+
- Fix repeated sort keys and sort as int(#3947 @oh2024)
24+
- Fix checkout action on old glibc OS (#3955 @aceforeverd)
25+
- Fix CICD issue of deploying spark correctly(#3958 @aceforeverd)
26+
27+
### Testing
28+
- Set NPROC in intergration test(#3782 @dl239)
29+
- Support map data type in yaml testing framework(#3765 @aceforeverd)
30+
- Add automatic table cleanup after go sdk tests(#3799 @oh2024)
31+
- Fix sql_cmd_test and no impl for MakeMergeNode(#3829 @aceforeverd)
32+
- Add query performance benchmark(#3855 @gaoboal)
33+
334
## [0.9.0] - 2024-04-25
435

536
### Breaking Changes

0 commit comments

Comments
 (0)