-
Notifications
You must be signed in to change notification settings - Fork 761
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9683 from ariesdevil/management-tests
chore(sqllogictest): add sqllogic tests for management mode
- Loading branch information
Showing
7 changed files
with
100 additions
and
4 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
.github/actions/test_sqllogic_management_mode_linux/action.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "Test sqllogic management mode" | ||
description: "Running sqllogic tests in management mode" | ||
inputs: | ||
profile: | ||
description: "The profile for this test" | ||
required: true | ||
default: "debug" | ||
target: | ||
description: "" | ||
required: true | ||
default: "x86_64-unknown-linux-gnu" | ||
dirs: | ||
description: "logic test suites dirs" | ||
required: true | ||
default: "" | ||
handlers: | ||
description: "logic test handlers, mysql,http,clickhouse" | ||
required: false | ||
default: "" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Download artifact | ||
uses: ./.github/actions/artifact_download | ||
with: | ||
profile: ${{ inputs.profile }} | ||
sha: ${{ github.sha }} | ||
target: ${{ inputs.target }} | ||
- name: Run sqllogic Tests with management mode | ||
shell: bash | ||
env: | ||
TEST_HANDLERS: ${{ inputs.handlers }} | ||
run: bash ./scripts/ci/ci-run-sqllogic-tests-management-mode.sh ${{ inputs.dirs }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
# Copyright 2020-2021 The Databend Authors. | ||
# SPDX-License-Identifier: Apache-2.0. | ||
|
||
set -e | ||
|
||
echo "Starting standalone DatabendQuery and DatabendMeta" | ||
./scripts/ci/deploy/databend-query-management-mode.sh | ||
|
||
TEST_HANDLERS=${TEST_HANDLERS:-"mysql,http,clickhouse"} | ||
BUILD_PROFILE=${BUILD_PROFILE:-debug} | ||
|
||
RUN_DIR="" | ||
if [ $# -gt 0 ]; then | ||
RUN_DIR="--run_dir $*" | ||
fi | ||
echo "Run suites using argument: $RUN_DIR" | ||
|
||
echo "Starting databend-sqllogic tests" | ||
target/${BUILD_PROFILE}/databend-sqllogictests --handlers ${TEST_HANDLERS} ${RUN_DIR} --enable_sandbox --debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
statement ok | ||
DROP TABLE if EXISTS call_t | ||
|
||
statement ok | ||
CREATE TABLE call_t(a UInt64 null, b UInt32 null) CLUSTER BY(a+1) Engine = Fuse | ||
|
||
# need to check the result later, currently just use ok to skip | ||
onlyif todo | ||
statement ok | ||
call system$search_tables('call_t') | ||
|
||
|
||
query T | ||
call system$clustering_information('default', 'call_t') | ||
---- | ||
((a + 1)) 0 0 0.0 0.0 {} | ||
|
||
|
||
query T | ||
call admin$tenant_quota('admin') | ||
---- | ||
0 0 0 0 | ||
|
File renamed without changes.
403dbb1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
databend – ./
databend-git-main-databend.vercel.app
databend.vercel.app
databend-databend.vercel.app
databend.rs