mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Compare commits
30 Commits
2ffce7aabd
...
aa6a02fcb2
Author | SHA1 | Date | |
---|---|---|---|
|
aa6a02fcb2 | ||
|
e0f8b8d351 | ||
|
da2176d696 | ||
|
53e0036593 | ||
|
25bd73ea5e | ||
|
eb5b16686c | ||
|
72d5af29e0 | ||
|
44b4bd38b9 | ||
|
40c7d5fd1a | ||
|
9a2a664b04 | ||
|
4ccebd9a24 | ||
|
99177c0daf | ||
|
ad67608956 | ||
|
0951991c1d | ||
|
19aec5e572 | ||
|
a367de9977 | ||
|
6894e280b2 | ||
|
39ebe113d9 | ||
|
239bbaa133 | ||
|
07fac5808d | ||
|
ed95e0781f | ||
|
014608fb6b | ||
|
a29ded4941 | ||
|
d2efae7511 | ||
|
49589da56e | ||
|
6879aa130a | ||
|
43f3c886a2 | ||
|
c383a743f7 | ||
|
3827d90bb0 | ||
|
bf3a3ad607 |
701
.github/workflows/pr.yaml
vendored
701
.github/workflows/pr.yaml
vendored
@ -1,701 +0,0 @@
|
|||||||
# generated by praktika
|
|
||||||
|
|
||||||
name: PR
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
branches: ['master']
|
|
||||||
|
|
||||||
# Cancel the previous wf run in PRs.
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
env:
|
|
||||||
# Force the stdout and stderr streams to be unbuffered
|
|
||||||
PYTHONUNBUFFERED: 1
|
|
||||||
GH_TOKEN: ${{ github.token }}
|
|
||||||
|
|
||||||
# Allow updating GH commit statuses and PR comments to post an actual job reports link
|
|
||||||
permissions: write-all
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
config_workflow:
|
|
||||||
runs-on: [ci_services]
|
|
||||||
needs: []
|
|
||||||
name: "Config Workflow"
|
|
||||||
outputs:
|
|
||||||
data: ${{ steps.run.outputs.DATA }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
|
|
||||||
- name: Prepare env script
|
|
||||||
run: |
|
|
||||||
cat > /tmp/praktika_setup_env.sh << 'ENV_SETUP_SCRIPT_EOF'
|
|
||||||
export PYTHONPATH=./ci:.
|
|
||||||
|
|
||||||
cat > /tmp/praktika/workflow_config_pr.json << 'EOF'
|
|
||||||
${{ needs.config_workflow.outputs.data }}
|
|
||||||
EOF
|
|
||||||
cat > /tmp/praktika/workflow_status.json << 'EOF'
|
|
||||||
${{ toJson(needs) }}
|
|
||||||
EOF
|
|
||||||
ENV_SETUP_SCRIPT_EOF
|
|
||||||
|
|
||||||
rm -rf /tmp/praktika/input /tmp/praktika/output /tmp/praktika
|
|
||||||
mkdir -p /tmp/praktika /tmp/praktika/input /tmp/praktika/output
|
|
||||||
|
|
||||||
- name: Run
|
|
||||||
id: run
|
|
||||||
run: |
|
|
||||||
. /tmp/praktika_setup_env.sh
|
|
||||||
set -o pipefail
|
|
||||||
if command -v ts &> /dev/null; then
|
|
||||||
python3 -m praktika run --job '''Config Workflow''' --workflow "PR" --ci |& ts '[%Y-%m-%d %H:%M:%S]' | tee /tmp/praktika/praktika_run.log
|
|
||||||
else
|
|
||||||
python3 -m praktika run --job '''Config Workflow''' --workflow "PR" --ci |& tee /tmp/praktika/praktika_run.log
|
|
||||||
fi
|
|
||||||
|
|
||||||
docker_builds:
|
|
||||||
runs-on: [ci_services_ebs]
|
|
||||||
needs: [config_workflow]
|
|
||||||
if: ${{ !failure() && !cancelled() && !contains(fromJson(needs.config_workflow.outputs.data).cache_success_base64, 'RG9ja2VyIEJ1aWxkcw==') }}
|
|
||||||
name: "Docker Builds"
|
|
||||||
outputs:
|
|
||||||
data: ${{ steps.run.outputs.DATA }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
|
|
||||||
- name: Prepare env script
|
|
||||||
run: |
|
|
||||||
cat > /tmp/praktika_setup_env.sh << 'ENV_SETUP_SCRIPT_EOF'
|
|
||||||
export PYTHONPATH=./ci:.
|
|
||||||
|
|
||||||
cat > /tmp/praktika/workflow_config_pr.json << 'EOF'
|
|
||||||
${{ needs.config_workflow.outputs.data }}
|
|
||||||
EOF
|
|
||||||
cat > /tmp/praktika/workflow_status.json << 'EOF'
|
|
||||||
${{ toJson(needs) }}
|
|
||||||
EOF
|
|
||||||
ENV_SETUP_SCRIPT_EOF
|
|
||||||
|
|
||||||
rm -rf /tmp/praktika/input /tmp/praktika/output /tmp/praktika
|
|
||||||
mkdir -p /tmp/praktika /tmp/praktika/input /tmp/praktika/output
|
|
||||||
|
|
||||||
- name: Run
|
|
||||||
id: run
|
|
||||||
run: |
|
|
||||||
. /tmp/praktika_setup_env.sh
|
|
||||||
set -o pipefail
|
|
||||||
if command -v ts &> /dev/null; then
|
|
||||||
python3 -m praktika run --job '''Docker Builds''' --workflow "PR" --ci |& ts '[%Y-%m-%d %H:%M:%S]' | tee /tmp/praktika/praktika_run.log
|
|
||||||
else
|
|
||||||
python3 -m praktika run --job '''Docker Builds''' --workflow "PR" --ci |& tee /tmp/praktika/praktika_run.log
|
|
||||||
fi
|
|
||||||
|
|
||||||
style_check:
|
|
||||||
runs-on: [ci_services]
|
|
||||||
needs: [config_workflow, docker_builds]
|
|
||||||
if: ${{ !failure() && !cancelled() && !contains(fromJson(needs.config_workflow.outputs.data).cache_success_base64, 'U3R5bGUgQ2hlY2s=') }}
|
|
||||||
name: "Style Check"
|
|
||||||
outputs:
|
|
||||||
data: ${{ steps.run.outputs.DATA }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
|
|
||||||
- name: Prepare env script
|
|
||||||
run: |
|
|
||||||
cat > /tmp/praktika_setup_env.sh << 'ENV_SETUP_SCRIPT_EOF'
|
|
||||||
export PYTHONPATH=./ci:.
|
|
||||||
|
|
||||||
cat > /tmp/praktika/workflow_config_pr.json << 'EOF'
|
|
||||||
${{ needs.config_workflow.outputs.data }}
|
|
||||||
EOF
|
|
||||||
cat > /tmp/praktika/workflow_status.json << 'EOF'
|
|
||||||
${{ toJson(needs) }}
|
|
||||||
EOF
|
|
||||||
ENV_SETUP_SCRIPT_EOF
|
|
||||||
|
|
||||||
rm -rf /tmp/praktika/input /tmp/praktika/output /tmp/praktika
|
|
||||||
mkdir -p /tmp/praktika /tmp/praktika/input /tmp/praktika/output
|
|
||||||
|
|
||||||
- name: Run
|
|
||||||
id: run
|
|
||||||
run: |
|
|
||||||
. /tmp/praktika_setup_env.sh
|
|
||||||
set -o pipefail
|
|
||||||
if command -v ts &> /dev/null; then
|
|
||||||
python3 -m praktika run --job '''Style Check''' --workflow "PR" --ci |& ts '[%Y-%m-%d %H:%M:%S]' | tee /tmp/praktika/praktika_run.log
|
|
||||||
else
|
|
||||||
python3 -m praktika run --job '''Style Check''' --workflow "PR" --ci |& tee /tmp/praktika/praktika_run.log
|
|
||||||
fi
|
|
||||||
|
|
||||||
fast_test:
|
|
||||||
runs-on: [builder]
|
|
||||||
needs: [config_workflow, docker_builds]
|
|
||||||
if: ${{ !failure() && !cancelled() && !contains(fromJson(needs.config_workflow.outputs.data).cache_success_base64, 'RmFzdCB0ZXN0') }}
|
|
||||||
name: "Fast test"
|
|
||||||
outputs:
|
|
||||||
data: ${{ steps.run.outputs.DATA }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
|
|
||||||
- name: Prepare env script
|
|
||||||
run: |
|
|
||||||
cat > /tmp/praktika_setup_env.sh << 'ENV_SETUP_SCRIPT_EOF'
|
|
||||||
export PYTHONPATH=./ci:.
|
|
||||||
|
|
||||||
cat > /tmp/praktika/workflow_config_pr.json << 'EOF'
|
|
||||||
${{ needs.config_workflow.outputs.data }}
|
|
||||||
EOF
|
|
||||||
cat > /tmp/praktika/workflow_status.json << 'EOF'
|
|
||||||
${{ toJson(needs) }}
|
|
||||||
EOF
|
|
||||||
ENV_SETUP_SCRIPT_EOF
|
|
||||||
|
|
||||||
rm -rf /tmp/praktika/input /tmp/praktika/output /tmp/praktika
|
|
||||||
mkdir -p /tmp/praktika /tmp/praktika/input /tmp/praktika/output
|
|
||||||
|
|
||||||
- name: Run
|
|
||||||
id: run
|
|
||||||
run: |
|
|
||||||
. /tmp/praktika_setup_env.sh
|
|
||||||
set -o pipefail
|
|
||||||
if command -v ts &> /dev/null; then
|
|
||||||
python3 -m praktika run --job '''Fast test''' --workflow "PR" --ci |& ts '[%Y-%m-%d %H:%M:%S]' | tee /tmp/praktika/praktika_run.log
|
|
||||||
else
|
|
||||||
python3 -m praktika run --job '''Fast test''' --workflow "PR" --ci |& tee /tmp/praktika/praktika_run.log
|
|
||||||
fi
|
|
||||||
|
|
||||||
build_amd_debug:
|
|
||||||
runs-on: [builder]
|
|
||||||
needs: [config_workflow, docker_builds]
|
|
||||||
if: ${{ !failure() && !cancelled() && !contains(fromJson(needs.config_workflow.outputs.data).cache_success_base64, 'QnVpbGQgKGFtZF9kZWJ1Zyk=') }}
|
|
||||||
name: "Build (amd_debug)"
|
|
||||||
outputs:
|
|
||||||
data: ${{ steps.run.outputs.DATA }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
|
|
||||||
- name: Prepare env script
|
|
||||||
run: |
|
|
||||||
cat > /tmp/praktika_setup_env.sh << 'ENV_SETUP_SCRIPT_EOF'
|
|
||||||
export PYTHONPATH=./ci:.
|
|
||||||
|
|
||||||
cat > /tmp/praktika/workflow_config_pr.json << 'EOF'
|
|
||||||
${{ needs.config_workflow.outputs.data }}
|
|
||||||
EOF
|
|
||||||
cat > /tmp/praktika/workflow_status.json << 'EOF'
|
|
||||||
${{ toJson(needs) }}
|
|
||||||
EOF
|
|
||||||
ENV_SETUP_SCRIPT_EOF
|
|
||||||
|
|
||||||
rm -rf /tmp/praktika/input /tmp/praktika/output /tmp/praktika
|
|
||||||
mkdir -p /tmp/praktika /tmp/praktika/input /tmp/praktika/output
|
|
||||||
|
|
||||||
- name: Run
|
|
||||||
id: run
|
|
||||||
run: |
|
|
||||||
. /tmp/praktika_setup_env.sh
|
|
||||||
set -o pipefail
|
|
||||||
if command -v ts &> /dev/null; then
|
|
||||||
python3 -m praktika run --job '''Build (amd_debug)''' --workflow "PR" --ci |& ts '[%Y-%m-%d %H:%M:%S]' | tee /tmp/praktika/praktika_run.log
|
|
||||||
else
|
|
||||||
python3 -m praktika run --job '''Build (amd_debug)''' --workflow "PR" --ci |& tee /tmp/praktika/praktika_run.log
|
|
||||||
fi
|
|
||||||
|
|
||||||
build_amd_release:
|
|
||||||
runs-on: [builder]
|
|
||||||
needs: [config_workflow, docker_builds]
|
|
||||||
if: ${{ !failure() && !cancelled() && !contains(fromJson(needs.config_workflow.outputs.data).cache_success_base64, 'QnVpbGQgKGFtZF9yZWxlYXNlKQ==') }}
|
|
||||||
name: "Build (amd_release)"
|
|
||||||
outputs:
|
|
||||||
data: ${{ steps.run.outputs.DATA }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
|
|
||||||
- name: Prepare env script
|
|
||||||
run: |
|
|
||||||
cat > /tmp/praktika_setup_env.sh << 'ENV_SETUP_SCRIPT_EOF'
|
|
||||||
export PYTHONPATH=./ci:.
|
|
||||||
|
|
||||||
cat > /tmp/praktika/workflow_config_pr.json << 'EOF'
|
|
||||||
${{ needs.config_workflow.outputs.data }}
|
|
||||||
EOF
|
|
||||||
cat > /tmp/praktika/workflow_status.json << 'EOF'
|
|
||||||
${{ toJson(needs) }}
|
|
||||||
EOF
|
|
||||||
ENV_SETUP_SCRIPT_EOF
|
|
||||||
|
|
||||||
rm -rf /tmp/praktika/input /tmp/praktika/output /tmp/praktika
|
|
||||||
mkdir -p /tmp/praktika /tmp/praktika/input /tmp/praktika/output
|
|
||||||
|
|
||||||
- name: Run
|
|
||||||
id: run
|
|
||||||
run: |
|
|
||||||
. /tmp/praktika_setup_env.sh
|
|
||||||
set -o pipefail
|
|
||||||
if command -v ts &> /dev/null; then
|
|
||||||
python3 -m praktika run --job '''Build (amd_release)''' --workflow "PR" --ci |& ts '[%Y-%m-%d %H:%M:%S]' | tee /tmp/praktika/praktika_run.log
|
|
||||||
else
|
|
||||||
python3 -m praktika run --job '''Build (amd_release)''' --workflow "PR" --ci |& tee /tmp/praktika/praktika_run.log
|
|
||||||
fi
|
|
||||||
|
|
||||||
build_arm_release:
|
|
||||||
runs-on: [builder-aarch64]
|
|
||||||
needs: [config_workflow, docker_builds]
|
|
||||||
if: ${{ !failure() && !cancelled() && !contains(fromJson(needs.config_workflow.outputs.data).cache_success_base64, 'QnVpbGQgKGFybV9yZWxlYXNlKQ==') }}
|
|
||||||
name: "Build (arm_release)"
|
|
||||||
outputs:
|
|
||||||
data: ${{ steps.run.outputs.DATA }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
|
|
||||||
- name: Prepare env script
|
|
||||||
run: |
|
|
||||||
cat > /tmp/praktika_setup_env.sh << 'ENV_SETUP_SCRIPT_EOF'
|
|
||||||
export PYTHONPATH=./ci:.
|
|
||||||
|
|
||||||
cat > /tmp/praktika/workflow_config_pr.json << 'EOF'
|
|
||||||
${{ needs.config_workflow.outputs.data }}
|
|
||||||
EOF
|
|
||||||
cat > /tmp/praktika/workflow_status.json << 'EOF'
|
|
||||||
${{ toJson(needs) }}
|
|
||||||
EOF
|
|
||||||
ENV_SETUP_SCRIPT_EOF
|
|
||||||
|
|
||||||
rm -rf /tmp/praktika/input /tmp/praktika/output /tmp/praktika
|
|
||||||
mkdir -p /tmp/praktika /tmp/praktika/input /tmp/praktika/output
|
|
||||||
|
|
||||||
- name: Run
|
|
||||||
id: run
|
|
||||||
run: |
|
|
||||||
. /tmp/praktika_setup_env.sh
|
|
||||||
set -o pipefail
|
|
||||||
if command -v ts &> /dev/null; then
|
|
||||||
python3 -m praktika run --job '''Build (arm_release)''' --workflow "PR" --ci |& ts '[%Y-%m-%d %H:%M:%S]' | tee /tmp/praktika/praktika_run.log
|
|
||||||
else
|
|
||||||
python3 -m praktika run --job '''Build (arm_release)''' --workflow "PR" --ci |& tee /tmp/praktika/praktika_run.log
|
|
||||||
fi
|
|
||||||
|
|
||||||
build_arm_asan:
|
|
||||||
runs-on: [builder-aarch64]
|
|
||||||
needs: [config_workflow, docker_builds]
|
|
||||||
if: ${{ !failure() && !cancelled() && !contains(fromJson(needs.config_workflow.outputs.data).cache_success_base64, 'QnVpbGQgKGFybV9hc2FuKQ==') }}
|
|
||||||
name: "Build (arm_asan)"
|
|
||||||
outputs:
|
|
||||||
data: ${{ steps.run.outputs.DATA }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
|
|
||||||
- name: Prepare env script
|
|
||||||
run: |
|
|
||||||
cat > /tmp/praktika_setup_env.sh << 'ENV_SETUP_SCRIPT_EOF'
|
|
||||||
export PYTHONPATH=./ci:.
|
|
||||||
|
|
||||||
cat > /tmp/praktika/workflow_config_pr.json << 'EOF'
|
|
||||||
${{ needs.config_workflow.outputs.data }}
|
|
||||||
EOF
|
|
||||||
cat > /tmp/praktika/workflow_status.json << 'EOF'
|
|
||||||
${{ toJson(needs) }}
|
|
||||||
EOF
|
|
||||||
ENV_SETUP_SCRIPT_EOF
|
|
||||||
|
|
||||||
rm -rf /tmp/praktika/input /tmp/praktika/output /tmp/praktika
|
|
||||||
mkdir -p /tmp/praktika /tmp/praktika/input /tmp/praktika/output
|
|
||||||
|
|
||||||
- name: Run
|
|
||||||
id: run
|
|
||||||
run: |
|
|
||||||
. /tmp/praktika_setup_env.sh
|
|
||||||
set -o pipefail
|
|
||||||
if command -v ts &> /dev/null; then
|
|
||||||
python3 -m praktika run --job '''Build (arm_asan)''' --workflow "PR" --ci |& ts '[%Y-%m-%d %H:%M:%S]' | tee /tmp/praktika/praktika_run.log
|
|
||||||
else
|
|
||||||
python3 -m praktika run --job '''Build (arm_asan)''' --workflow "PR" --ci |& tee /tmp/praktika/praktika_run.log
|
|
||||||
fi
|
|
||||||
|
|
||||||
stateless_tests_amd_debugparallel:
|
|
||||||
runs-on: [builder]
|
|
||||||
needs: [config_workflow, docker_builds, build_amd_debug]
|
|
||||||
if: ${{ !failure() && !cancelled() && !contains(fromJson(needs.config_workflow.outputs.data).cache_success_base64, 'U3RhdGVsZXNzIHRlc3RzIChhbWRfZGVidWcscGFyYWxsZWwp') }}
|
|
||||||
name: "Stateless tests (amd_debug,parallel)"
|
|
||||||
outputs:
|
|
||||||
data: ${{ steps.run.outputs.DATA }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
|
|
||||||
- name: Prepare env script
|
|
||||||
run: |
|
|
||||||
cat > /tmp/praktika_setup_env.sh << 'ENV_SETUP_SCRIPT_EOF'
|
|
||||||
export PYTHONPATH=./ci:.
|
|
||||||
|
|
||||||
cat > /tmp/praktika/workflow_config_pr.json << 'EOF'
|
|
||||||
${{ needs.config_workflow.outputs.data }}
|
|
||||||
EOF
|
|
||||||
cat > /tmp/praktika/workflow_status.json << 'EOF'
|
|
||||||
${{ toJson(needs) }}
|
|
||||||
EOF
|
|
||||||
ENV_SETUP_SCRIPT_EOF
|
|
||||||
|
|
||||||
rm -rf /tmp/praktika/input /tmp/praktika/output /tmp/praktika
|
|
||||||
mkdir -p /tmp/praktika /tmp/praktika/input /tmp/praktika/output
|
|
||||||
|
|
||||||
- name: Run
|
|
||||||
id: run
|
|
||||||
run: |
|
|
||||||
. /tmp/praktika_setup_env.sh
|
|
||||||
set -o pipefail
|
|
||||||
if command -v ts &> /dev/null; then
|
|
||||||
python3 -m praktika run --job '''Stateless tests (amd_debug,parallel)''' --workflow "PR" --ci |& ts '[%Y-%m-%d %H:%M:%S]' | tee /tmp/praktika/praktika_run.log
|
|
||||||
else
|
|
||||||
python3 -m praktika run --job '''Stateless tests (amd_debug,parallel)''' --workflow "PR" --ci |& tee /tmp/praktika/praktika_run.log
|
|
||||||
fi
|
|
||||||
|
|
||||||
stateless_tests_amd_debugnon_parallel:
|
|
||||||
runs-on: [func-tester]
|
|
||||||
needs: [config_workflow, docker_builds, build_amd_debug]
|
|
||||||
if: ${{ !failure() && !cancelled() && !contains(fromJson(needs.config_workflow.outputs.data).cache_success_base64, 'U3RhdGVsZXNzIHRlc3RzIChhbWRfZGVidWcsbm9uLXBhcmFsbGVsKQ==') }}
|
|
||||||
name: "Stateless tests (amd_debug,non-parallel)"
|
|
||||||
outputs:
|
|
||||||
data: ${{ steps.run.outputs.DATA }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
|
|
||||||
- name: Prepare env script
|
|
||||||
run: |
|
|
||||||
cat > /tmp/praktika_setup_env.sh << 'ENV_SETUP_SCRIPT_EOF'
|
|
||||||
export PYTHONPATH=./ci:.
|
|
||||||
|
|
||||||
cat > /tmp/praktika/workflow_config_pr.json << 'EOF'
|
|
||||||
${{ needs.config_workflow.outputs.data }}
|
|
||||||
EOF
|
|
||||||
cat > /tmp/praktika/workflow_status.json << 'EOF'
|
|
||||||
${{ toJson(needs) }}
|
|
||||||
EOF
|
|
||||||
ENV_SETUP_SCRIPT_EOF
|
|
||||||
|
|
||||||
rm -rf /tmp/praktika/input /tmp/praktika/output /tmp/praktika
|
|
||||||
mkdir -p /tmp/praktika /tmp/praktika/input /tmp/praktika/output
|
|
||||||
|
|
||||||
- name: Run
|
|
||||||
id: run
|
|
||||||
run: |
|
|
||||||
. /tmp/praktika_setup_env.sh
|
|
||||||
set -o pipefail
|
|
||||||
if command -v ts &> /dev/null; then
|
|
||||||
python3 -m praktika run --job '''Stateless tests (amd_debug,non-parallel)''' --workflow "PR" --ci |& ts '[%Y-%m-%d %H:%M:%S]' | tee /tmp/praktika/praktika_run.log
|
|
||||||
else
|
|
||||||
python3 -m praktika run --job '''Stateless tests (amd_debug,non-parallel)''' --workflow "PR" --ci |& tee /tmp/praktika/praktika_run.log
|
|
||||||
fi
|
|
||||||
|
|
||||||
stateless_tests_amd_releaseparallel:
|
|
||||||
runs-on: [builder]
|
|
||||||
needs: [config_workflow, docker_builds, build_amd_release]
|
|
||||||
if: ${{ !failure() && !cancelled() && !contains(fromJson(needs.config_workflow.outputs.data).cache_success_base64, 'U3RhdGVsZXNzIHRlc3RzIChhbWRfcmVsZWFzZSxwYXJhbGxlbCk=') }}
|
|
||||||
name: "Stateless tests (amd_release,parallel)"
|
|
||||||
outputs:
|
|
||||||
data: ${{ steps.run.outputs.DATA }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
|
|
||||||
- name: Prepare env script
|
|
||||||
run: |
|
|
||||||
cat > /tmp/praktika_setup_env.sh << 'ENV_SETUP_SCRIPT_EOF'
|
|
||||||
export PYTHONPATH=./ci:.
|
|
||||||
|
|
||||||
cat > /tmp/praktika/workflow_config_pr.json << 'EOF'
|
|
||||||
${{ needs.config_workflow.outputs.data }}
|
|
||||||
EOF
|
|
||||||
cat > /tmp/praktika/workflow_status.json << 'EOF'
|
|
||||||
${{ toJson(needs) }}
|
|
||||||
EOF
|
|
||||||
ENV_SETUP_SCRIPT_EOF
|
|
||||||
|
|
||||||
rm -rf /tmp/praktika/input /tmp/praktika/output /tmp/praktika
|
|
||||||
mkdir -p /tmp/praktika /tmp/praktika/input /tmp/praktika/output
|
|
||||||
|
|
||||||
- name: Run
|
|
||||||
id: run
|
|
||||||
run: |
|
|
||||||
. /tmp/praktika_setup_env.sh
|
|
||||||
set -o pipefail
|
|
||||||
if command -v ts &> /dev/null; then
|
|
||||||
python3 -m praktika run --job '''Stateless tests (amd_release,parallel)''' --workflow "PR" --ci |& ts '[%Y-%m-%d %H:%M:%S]' | tee /tmp/praktika/praktika_run.log
|
|
||||||
else
|
|
||||||
python3 -m praktika run --job '''Stateless tests (amd_release,parallel)''' --workflow "PR" --ci |& tee /tmp/praktika/praktika_run.log
|
|
||||||
fi
|
|
||||||
|
|
||||||
stateless_tests_amd_releasenon_parallel:
|
|
||||||
runs-on: [func-tester]
|
|
||||||
needs: [config_workflow, docker_builds, build_amd_release]
|
|
||||||
if: ${{ !failure() && !cancelled() && !contains(fromJson(needs.config_workflow.outputs.data).cache_success_base64, 'U3RhdGVsZXNzIHRlc3RzIChhbWRfcmVsZWFzZSxub24tcGFyYWxsZWwp') }}
|
|
||||||
name: "Stateless tests (amd_release,non-parallel)"
|
|
||||||
outputs:
|
|
||||||
data: ${{ steps.run.outputs.DATA }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
|
|
||||||
- name: Prepare env script
|
|
||||||
run: |
|
|
||||||
cat > /tmp/praktika_setup_env.sh << 'ENV_SETUP_SCRIPT_EOF'
|
|
||||||
export PYTHONPATH=./ci:.
|
|
||||||
|
|
||||||
cat > /tmp/praktika/workflow_config_pr.json << 'EOF'
|
|
||||||
${{ needs.config_workflow.outputs.data }}
|
|
||||||
EOF
|
|
||||||
cat > /tmp/praktika/workflow_status.json << 'EOF'
|
|
||||||
${{ toJson(needs) }}
|
|
||||||
EOF
|
|
||||||
ENV_SETUP_SCRIPT_EOF
|
|
||||||
|
|
||||||
rm -rf /tmp/praktika/input /tmp/praktika/output /tmp/praktika
|
|
||||||
mkdir -p /tmp/praktika /tmp/praktika/input /tmp/praktika/output
|
|
||||||
|
|
||||||
- name: Run
|
|
||||||
id: run
|
|
||||||
run: |
|
|
||||||
. /tmp/praktika_setup_env.sh
|
|
||||||
set -o pipefail
|
|
||||||
if command -v ts &> /dev/null; then
|
|
||||||
python3 -m praktika run --job '''Stateless tests (amd_release,non-parallel)''' --workflow "PR" --ci |& ts '[%Y-%m-%d %H:%M:%S]' | tee /tmp/praktika/praktika_run.log
|
|
||||||
else
|
|
||||||
python3 -m praktika run --job '''Stateless tests (amd_release,non-parallel)''' --workflow "PR" --ci |& tee /tmp/praktika/praktika_run.log
|
|
||||||
fi
|
|
||||||
|
|
||||||
stateless_tests_arm_asanparallel:
|
|
||||||
runs-on: [builder-aarch64]
|
|
||||||
needs: [config_workflow, docker_builds, build_arm_asan]
|
|
||||||
if: ${{ !failure() && !cancelled() && !contains(fromJson(needs.config_workflow.outputs.data).cache_success_base64, 'U3RhdGVsZXNzIHRlc3RzIChhcm1fYXNhbixwYXJhbGxlbCk=') }}
|
|
||||||
name: "Stateless tests (arm_asan,parallel)"
|
|
||||||
outputs:
|
|
||||||
data: ${{ steps.run.outputs.DATA }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
|
|
||||||
- name: Prepare env script
|
|
||||||
run: |
|
|
||||||
cat > /tmp/praktika_setup_env.sh << 'ENV_SETUP_SCRIPT_EOF'
|
|
||||||
export PYTHONPATH=./ci:.
|
|
||||||
|
|
||||||
cat > /tmp/praktika/workflow_config_pr.json << 'EOF'
|
|
||||||
${{ needs.config_workflow.outputs.data }}
|
|
||||||
EOF
|
|
||||||
cat > /tmp/praktika/workflow_status.json << 'EOF'
|
|
||||||
${{ toJson(needs) }}
|
|
||||||
EOF
|
|
||||||
ENV_SETUP_SCRIPT_EOF
|
|
||||||
|
|
||||||
rm -rf /tmp/praktika/input /tmp/praktika/output /tmp/praktika
|
|
||||||
mkdir -p /tmp/praktika /tmp/praktika/input /tmp/praktika/output
|
|
||||||
|
|
||||||
- name: Run
|
|
||||||
id: run
|
|
||||||
run: |
|
|
||||||
. /tmp/praktika_setup_env.sh
|
|
||||||
set -o pipefail
|
|
||||||
if command -v ts &> /dev/null; then
|
|
||||||
python3 -m praktika run --job '''Stateless tests (arm_asan,parallel)''' --workflow "PR" --ci |& ts '[%Y-%m-%d %H:%M:%S]' | tee /tmp/praktika/praktika_run.log
|
|
||||||
else
|
|
||||||
python3 -m praktika run --job '''Stateless tests (arm_asan,parallel)''' --workflow "PR" --ci |& tee /tmp/praktika/praktika_run.log
|
|
||||||
fi
|
|
||||||
|
|
||||||
stateless_tests_arm_asannon_parallel:
|
|
||||||
runs-on: [func-tester-aarch64]
|
|
||||||
needs: [config_workflow, docker_builds, build_arm_asan]
|
|
||||||
if: ${{ !failure() && !cancelled() && !contains(fromJson(needs.config_workflow.outputs.data).cache_success_base64, 'U3RhdGVsZXNzIHRlc3RzIChhcm1fYXNhbixub24tcGFyYWxsZWwp') }}
|
|
||||||
name: "Stateless tests (arm_asan,non-parallel)"
|
|
||||||
outputs:
|
|
||||||
data: ${{ steps.run.outputs.DATA }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
|
|
||||||
- name: Prepare env script
|
|
||||||
run: |
|
|
||||||
cat > /tmp/praktika_setup_env.sh << 'ENV_SETUP_SCRIPT_EOF'
|
|
||||||
export PYTHONPATH=./ci:.
|
|
||||||
|
|
||||||
cat > /tmp/praktika/workflow_config_pr.json << 'EOF'
|
|
||||||
${{ needs.config_workflow.outputs.data }}
|
|
||||||
EOF
|
|
||||||
cat > /tmp/praktika/workflow_status.json << 'EOF'
|
|
||||||
${{ toJson(needs) }}
|
|
||||||
EOF
|
|
||||||
ENV_SETUP_SCRIPT_EOF
|
|
||||||
|
|
||||||
rm -rf /tmp/praktika/input /tmp/praktika/output /tmp/praktika
|
|
||||||
mkdir -p /tmp/praktika /tmp/praktika/input /tmp/praktika/output
|
|
||||||
|
|
||||||
- name: Run
|
|
||||||
id: run
|
|
||||||
run: |
|
|
||||||
. /tmp/praktika_setup_env.sh
|
|
||||||
set -o pipefail
|
|
||||||
if command -v ts &> /dev/null; then
|
|
||||||
python3 -m praktika run --job '''Stateless tests (arm_asan,non-parallel)''' --workflow "PR" --ci |& ts '[%Y-%m-%d %H:%M:%S]' | tee /tmp/praktika/praktika_run.log
|
|
||||||
else
|
|
||||||
python3 -m praktika run --job '''Stateless tests (arm_asan,non-parallel)''' --workflow "PR" --ci |& tee /tmp/praktika/praktika_run.log
|
|
||||||
fi
|
|
||||||
|
|
||||||
stateful_tests_amd_releaseparallel:
|
|
||||||
runs-on: [builder]
|
|
||||||
needs: [config_workflow, docker_builds, build_amd_debug]
|
|
||||||
if: ${{ !failure() && !cancelled() && !contains(fromJson(needs.config_workflow.outputs.data).cache_success_base64, 'U3RhdGVmdWwgdGVzdHMgKGFtZF9yZWxlYXNlLHBhcmFsbGVsKQ==') }}
|
|
||||||
name: "Stateful tests (amd_release,parallel)"
|
|
||||||
outputs:
|
|
||||||
data: ${{ steps.run.outputs.DATA }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
|
|
||||||
- name: Prepare env script
|
|
||||||
run: |
|
|
||||||
cat > /tmp/praktika_setup_env.sh << 'ENV_SETUP_SCRIPT_EOF'
|
|
||||||
export PYTHONPATH=./ci:.
|
|
||||||
|
|
||||||
cat > /tmp/praktika/workflow_config_pr.json << 'EOF'
|
|
||||||
${{ needs.config_workflow.outputs.data }}
|
|
||||||
EOF
|
|
||||||
cat > /tmp/praktika/workflow_status.json << 'EOF'
|
|
||||||
${{ toJson(needs) }}
|
|
||||||
EOF
|
|
||||||
ENV_SETUP_SCRIPT_EOF
|
|
||||||
|
|
||||||
rm -rf /tmp/praktika/input /tmp/praktika/output /tmp/praktika
|
|
||||||
mkdir -p /tmp/praktika /tmp/praktika/input /tmp/praktika/output
|
|
||||||
|
|
||||||
- name: Run
|
|
||||||
id: run
|
|
||||||
run: |
|
|
||||||
. /tmp/praktika_setup_env.sh
|
|
||||||
set -o pipefail
|
|
||||||
if command -v ts &> /dev/null; then
|
|
||||||
python3 -m praktika run --job '''Stateful tests (amd_release,parallel)''' --workflow "PR" --ci |& ts '[%Y-%m-%d %H:%M:%S]' | tee /tmp/praktika/praktika_run.log
|
|
||||||
else
|
|
||||||
python3 -m praktika run --job '''Stateful tests (amd_release,parallel)''' --workflow "PR" --ci |& tee /tmp/praktika/praktika_run.log
|
|
||||||
fi
|
|
||||||
|
|
||||||
stress_tests_arm_release:
|
|
||||||
runs-on: [func-tester-aarch64]
|
|
||||||
needs: [config_workflow, docker_builds, build_arm_release]
|
|
||||||
if: ${{ !failure() && !cancelled() && !contains(fromJson(needs.config_workflow.outputs.data).cache_success_base64, 'U3RyZXNzIHRlc3RzIChhcm1fcmVsZWFzZSk=') }}
|
|
||||||
name: "Stress tests (arm_release)"
|
|
||||||
outputs:
|
|
||||||
data: ${{ steps.run.outputs.DATA }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
|
|
||||||
- name: Prepare env script
|
|
||||||
run: |
|
|
||||||
cat > /tmp/praktika_setup_env.sh << 'ENV_SETUP_SCRIPT_EOF'
|
|
||||||
export PYTHONPATH=./ci:.
|
|
||||||
|
|
||||||
cat > /tmp/praktika/workflow_config_pr.json << 'EOF'
|
|
||||||
${{ needs.config_workflow.outputs.data }}
|
|
||||||
EOF
|
|
||||||
cat > /tmp/praktika/workflow_status.json << 'EOF'
|
|
||||||
${{ toJson(needs) }}
|
|
||||||
EOF
|
|
||||||
ENV_SETUP_SCRIPT_EOF
|
|
||||||
|
|
||||||
rm -rf /tmp/praktika/input /tmp/praktika/output /tmp/praktika
|
|
||||||
mkdir -p /tmp/praktika /tmp/praktika/input /tmp/praktika/output
|
|
||||||
|
|
||||||
- name: Run
|
|
||||||
id: run
|
|
||||||
run: |
|
|
||||||
. /tmp/praktika_setup_env.sh
|
|
||||||
set -o pipefail
|
|
||||||
if command -v ts &> /dev/null; then
|
|
||||||
python3 -m praktika run --job '''Stress tests (arm_release)''' --workflow "PR" --ci |& ts '[%Y-%m-%d %H:%M:%S]' | tee /tmp/praktika/praktika_run.log
|
|
||||||
else
|
|
||||||
python3 -m praktika run --job '''Stress tests (arm_release)''' --workflow "PR" --ci |& tee /tmp/praktika/praktika_run.log
|
|
||||||
fi
|
|
||||||
|
|
||||||
finish_workflow:
|
|
||||||
runs-on: [ci_services]
|
|
||||||
needs: [config_workflow, docker_builds, style_check, fast_test, build_amd_debug, build_amd_release, build_arm_release, build_arm_asan, stateless_tests_amd_debugparallel, stateless_tests_amd_debugnon_parallel, stateless_tests_amd_releaseparallel, stateless_tests_amd_releasenon_parallel, stateless_tests_arm_asanparallel, stateless_tests_arm_asannon_parallel, stateful_tests_amd_releaseparallel, stress_tests_arm_release]
|
|
||||||
if: ${{ !cancelled() }}
|
|
||||||
name: "Finish Workflow"
|
|
||||||
outputs:
|
|
||||||
data: ${{ steps.run.outputs.DATA }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
|
|
||||||
- name: Prepare env script
|
|
||||||
run: |
|
|
||||||
cat > /tmp/praktika_setup_env.sh << 'ENV_SETUP_SCRIPT_EOF'
|
|
||||||
export PYTHONPATH=./ci:.
|
|
||||||
|
|
||||||
cat > /tmp/praktika/workflow_config_pr.json << 'EOF'
|
|
||||||
${{ needs.config_workflow.outputs.data }}
|
|
||||||
EOF
|
|
||||||
cat > /tmp/praktika/workflow_status.json << 'EOF'
|
|
||||||
${{ toJson(needs) }}
|
|
||||||
EOF
|
|
||||||
ENV_SETUP_SCRIPT_EOF
|
|
||||||
|
|
||||||
rm -rf /tmp/praktika/input /tmp/praktika/output /tmp/praktika
|
|
||||||
mkdir -p /tmp/praktika /tmp/praktika/input /tmp/praktika/output
|
|
||||||
|
|
||||||
- name: Run
|
|
||||||
id: run
|
|
||||||
run: |
|
|
||||||
. /tmp/praktika_setup_env.sh
|
|
||||||
set -o pipefail
|
|
||||||
if command -v ts &> /dev/null; then
|
|
||||||
python3 -m praktika run --job '''Finish Workflow''' --workflow "PR" --ci |& ts '[%Y-%m-%d %H:%M:%S]' | tee /tmp/praktika/praktika_run.log
|
|
||||||
else
|
|
||||||
python3 -m praktika run --job '''Finish Workflow''' --workflow "PR" --ci |& tee /tmp/praktika/praktika_run.log
|
|
||||||
fi
|
|
@ -131,7 +131,9 @@ def main():
|
|||||||
res = res and CH.start()
|
res = res and CH.start()
|
||||||
res = res and CH.wait_ready()
|
res = res and CH.wait_ready()
|
||||||
# TODO: Use --database-replicated optionally
|
# TODO: Use --database-replicated optionally
|
||||||
res = res and Shell.check(f"./ci/jobs/scripts/functional_tests/setup_ch_cluster.sh")
|
res = res and Shell.check(
|
||||||
|
f"./ci/jobs/scripts/functional_tests/setup_ch_cluster.sh"
|
||||||
|
)
|
||||||
if res:
|
if res:
|
||||||
print("ch started")
|
print("ch started")
|
||||||
logs_to_attach += [
|
logs_to_attach += [
|
||||||
|
@ -601,7 +601,7 @@
|
|||||||
td.classList.add('time-column');
|
td.classList.add('time-column');
|
||||||
td.textContent = value ? formatDuration(value) : '';
|
td.textContent = value ? formatDuration(value) : '';
|
||||||
} else if (column === 'info') {
|
} else if (column === 'info') {
|
||||||
td.textContent = value.includes('\n') ? '↵' : (value || '');
|
td.textContent = value && value.includes('\n') ? '↵' : (value || '');
|
||||||
td.classList.add('info-column');
|
td.classList.add('info-column');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -310,7 +310,7 @@ def _finish_workflow(workflow, job_name):
|
|||||||
print(env.get_needs_statuses())
|
print(env.get_needs_statuses())
|
||||||
|
|
||||||
print("Check Workflow results")
|
print("Check Workflow results")
|
||||||
_ResultS3.copy_result_from_s3(
|
version = _ResultS3.copy_result_from_s3_with_version(
|
||||||
Result.file_name_static(workflow.name),
|
Result.file_name_static(workflow.name),
|
||||||
)
|
)
|
||||||
workflow_result = Result.from_fs(workflow.name)
|
workflow_result = Result.from_fs(workflow.name)
|
||||||
@ -358,9 +358,7 @@ def _finish_workflow(workflow, job_name):
|
|||||||
env.add_info(ResultInfo.GH_STATUS_ERROR)
|
env.add_info(ResultInfo.GH_STATUS_ERROR)
|
||||||
|
|
||||||
if update_final_report:
|
if update_final_report:
|
||||||
_ResultS3.copy_result_to_s3(
|
_ResultS3.copy_result_to_s3_with_version(workflow_result, version + 1)
|
||||||
workflow_result,
|
|
||||||
)
|
|
||||||
|
|
||||||
Result.from_fs(job_name).set_status(Result.Status.SUCCESS)
|
Result.from_fs(job_name).set_status(Result.Status.SUCCESS)
|
||||||
|
|
||||||
|
@ -73,10 +73,26 @@ build_jobs = Job.Config(
|
|||||||
).parametrize(
|
).parametrize(
|
||||||
parameter=["amd_debug", "amd_release", "arm_release", "arm_asan"],
|
parameter=["amd_debug", "amd_release", "arm_release", "arm_asan"],
|
||||||
provides=[
|
provides=[
|
||||||
[ArtifactNames.CH_AMD_DEBUG, ArtifactNames.DEB_AMD_DEBUG, ArtifactNames.CH_ODBC_B_AMD_DEBUG],
|
[
|
||||||
[ArtifactNames.CH_AMD_RELEASE, ArtifactNames.DEB_AMD_RELEASE, ArtifactNames.CH_ODBC_B_AMD_RELEASE],
|
ArtifactNames.CH_AMD_DEBUG,
|
||||||
[ArtifactNames.CH_ARM_RELEASE, ArtifactNames.DEB_ARM_RELEASE, ArtifactNames.CH_ODBC_B_ARM_RELEASE],
|
ArtifactNames.DEB_AMD_DEBUG,
|
||||||
[ArtifactNames.CH_ARM_ASAN, ArtifactNames.DEB_ARM_ASAN, ArtifactNames.CH_ODBC_B_ARM_ASAN],
|
ArtifactNames.CH_ODBC_B_AMD_DEBUG,
|
||||||
|
],
|
||||||
|
[
|
||||||
|
ArtifactNames.CH_AMD_RELEASE,
|
||||||
|
ArtifactNames.DEB_AMD_RELEASE,
|
||||||
|
ArtifactNames.CH_ODBC_B_AMD_RELEASE,
|
||||||
|
],
|
||||||
|
[
|
||||||
|
ArtifactNames.CH_ARM_RELEASE,
|
||||||
|
ArtifactNames.DEB_ARM_RELEASE,
|
||||||
|
ArtifactNames.CH_ODBC_B_ARM_RELEASE,
|
||||||
|
],
|
||||||
|
[
|
||||||
|
ArtifactNames.CH_ARM_ASAN,
|
||||||
|
ArtifactNames.DEB_ARM_ASAN,
|
||||||
|
ArtifactNames.CH_ODBC_B_ARM_ASAN,
|
||||||
|
],
|
||||||
],
|
],
|
||||||
runs_on=[
|
runs_on=[
|
||||||
[RunnerLabels.BUILDER_AMD],
|
[RunnerLabels.BUILDER_AMD],
|
||||||
@ -188,24 +204,26 @@ workflow = Workflow.Config(
|
|||||||
name="...",
|
name="...",
|
||||||
type=Artifact.Type.S3,
|
type=Artifact.Type.S3,
|
||||||
path=f"{Settings.TEMP_DIR}/build/programs/clickhouse",
|
path=f"{Settings.TEMP_DIR}/build/programs/clickhouse",
|
||||||
).parametrize(names=[
|
).parametrize(
|
||||||
ArtifactNames.CH_AMD_DEBUG,
|
names=[
|
||||||
ArtifactNames.CH_AMD_RELEASE,
|
ArtifactNames.CH_AMD_DEBUG,
|
||||||
ArtifactNames.CH_ARM_RELEASE,
|
ArtifactNames.CH_AMD_RELEASE,
|
||||||
ArtifactNames.CH_ARM_ASAN,
|
ArtifactNames.CH_ARM_RELEASE,
|
||||||
]),
|
ArtifactNames.CH_ARM_ASAN,
|
||||||
|
]
|
||||||
|
),
|
||||||
*Artifact.Config(
|
*Artifact.Config(
|
||||||
name="...",
|
name="...",
|
||||||
type=Artifact.Type.S3,
|
type=Artifact.Type.S3,
|
||||||
path=f"{Settings.TEMP_DIR}/build/programs/clickhouse-odbc-bridge",
|
path=f"{Settings.TEMP_DIR}/build/programs/clickhouse-odbc-bridge",
|
||||||
).parametrize(names=[
|
).parametrize(
|
||||||
ArtifactNames.CH_ODBC_B_AMD_DEBUG,
|
names=[
|
||||||
ArtifactNames.CH_ODBC_B_AMD_RELEASE,
|
ArtifactNames.CH_ODBC_B_AMD_DEBUG,
|
||||||
ArtifactNames.CH_ODBC_B_ARM_RELEASE,
|
ArtifactNames.CH_ODBC_B_AMD_RELEASE,
|
||||||
ArtifactNames.CH_ODBC_B_ARM_ASAN,
|
ArtifactNames.CH_ODBC_B_ARM_RELEASE,
|
||||||
]),
|
ArtifactNames.CH_ODBC_B_ARM_ASAN,
|
||||||
|
]
|
||||||
|
),
|
||||||
Artifact.Config(
|
Artifact.Config(
|
||||||
name=ArtifactNames.DEB_AMD_DEBUG,
|
name=ArtifactNames.DEB_AMD_DEBUG,
|
||||||
type=Artifact.Type.S3,
|
type=Artifact.Type.S3,
|
||||||
|
@ -16,16 +16,18 @@ ClickHouse works 100-1000x faster than traditional database management systems,
|
|||||||
|
|
||||||
For more information and documentation see https://clickhouse.com/.
|
For more information and documentation see https://clickhouse.com/.
|
||||||
|
|
||||||
<!-- This is not related to the docker official library, remove it before commit to https://github.com/docker-library/docs -->
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
- The `latest` tag points to the latest release of the latest stable branch.
|
- The `latest` tag points to the latest release of the latest stable branch.
|
||||||
- Branch tags like `22.2` point to the latest release of the corresponding branch.
|
- Branch tags like `22.2` point to the latest release of the corresponding branch.
|
||||||
- Full version tags like `22.2.3.5` point to the corresponding release.
|
- Full version tags like `22.2.3` and `22.2.3.5` point to the corresponding release.
|
||||||
|
<!-- docker-official-library:off -->
|
||||||
|
<!-- This is not related to the docker official library, remove it before commit to https://github.com/docker-library/docs -->
|
||||||
- The tag `head` is built from the latest commit to the default branch.
|
- The tag `head` is built from the latest commit to the default branch.
|
||||||
- Each tag has optional `-alpine` suffix to reflect that it's built on top of `alpine`.
|
- Each tag has optional `-alpine` suffix to reflect that it's built on top of `alpine`.
|
||||||
|
|
||||||
<!-- REMOVE UNTIL HERE -->
|
<!-- REMOVE UNTIL HERE -->
|
||||||
|
<!-- docker-official-library:on -->
|
||||||
### Compatibility
|
### Compatibility
|
||||||
|
|
||||||
- The amd64 image requires support for [SSE3 instructions](https://en.wikipedia.org/wiki/SSE3). Virtually all x86 CPUs after 2005 support SSE3.
|
- The amd64 image requires support for [SSE3 instructions](https://en.wikipedia.org/wiki/SSE3). Virtually all x86 CPUs after 2005 support SSE3.
|
||||||
|
@ -10,16 +10,18 @@ ClickHouse works 100-1000x faster than traditional database management systems,
|
|||||||
|
|
||||||
For more information and documentation see https://clickhouse.com/.
|
For more information and documentation see https://clickhouse.com/.
|
||||||
|
|
||||||
<!-- This is not related to the docker official library, remove it before commit to https://github.com/docker-library/docs -->
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
- The `latest` tag points to the latest release of the latest stable branch.
|
- The `latest` tag points to the latest release of the latest stable branch.
|
||||||
- Branch tags like `22.2` point to the latest release of the corresponding branch.
|
- Branch tags like `22.2` point to the latest release of the corresponding branch.
|
||||||
- Full version tags like `22.2.3.5` point to the corresponding release.
|
- Full version tags like `22.2.3` and `22.2.3.5` point to the corresponding release.
|
||||||
|
<!-- docker-official-library:off -->
|
||||||
|
<!-- This is not related to the docker official library, remove it before commit to https://github.com/docker-library/docs -->
|
||||||
- The tag `head` is built from the latest commit to the default branch.
|
- The tag `head` is built from the latest commit to the default branch.
|
||||||
- Each tag has optional `-alpine` suffix to reflect that it's built on top of `alpine`.
|
- Each tag has optional `-alpine` suffix to reflect that it's built on top of `alpine`.
|
||||||
|
|
||||||
<!-- REMOVE UNTIL HERE -->
|
<!-- REMOVE UNTIL HERE -->
|
||||||
|
<!-- docker-official-library:on -->
|
||||||
### Compatibility
|
### Compatibility
|
||||||
|
|
||||||
- The amd64 image requires support for [SSE3 instructions](https://en.wikipedia.org/wiki/SSE3). Virtually all x86 CPUs after 2005 support SSE3.
|
- The amd64 image requires support for [SSE3 instructions](https://en.wikipedia.org/wiki/SSE3). Virtually all x86 CPUs after 2005 support SSE3.
|
||||||
|
@ -522,4 +522,3 @@ sidebar_label: 2024
|
|||||||
* Backported in [#68518](https://github.com/ClickHouse/ClickHouse/issues/68518): Minor update in Dynamic/JSON serializations. [#68459](https://github.com/ClickHouse/ClickHouse/pull/68459) ([Kruglov Pavel](https://github.com/Avogar)).
|
* Backported in [#68518](https://github.com/ClickHouse/ClickHouse/issues/68518): Minor update in Dynamic/JSON serializations. [#68459](https://github.com/ClickHouse/ClickHouse/pull/68459) ([Kruglov Pavel](https://github.com/Avogar)).
|
||||||
* Backported in [#68558](https://github.com/ClickHouse/ClickHouse/issues/68558): CI: Minor release workflow fix. [#68536](https://github.com/ClickHouse/ClickHouse/pull/68536) ([Max K.](https://github.com/maxknv)).
|
* Backported in [#68558](https://github.com/ClickHouse/ClickHouse/issues/68558): CI: Minor release workflow fix. [#68536](https://github.com/ClickHouse/ClickHouse/pull/68536) ([Max K.](https://github.com/maxknv)).
|
||||||
* Backported in [#68576](https://github.com/ClickHouse/ClickHouse/issues/68576): CI: Tidy build timeout from 2h to 3h. [#68567](https://github.com/ClickHouse/ClickHouse/pull/68567) ([Max K.](https://github.com/maxknv)).
|
* Backported in [#68576](https://github.com/ClickHouse/ClickHouse/issues/68576): CI: Tidy build timeout from 2h to 3h. [#68567](https://github.com/ClickHouse/ClickHouse/pull/68567) ([Max K.](https://github.com/maxknv)).
|
||||||
|
|
||||||
|
@ -497,4 +497,3 @@ sidebar_label: 2024
|
|||||||
* Backported in [#69899](https://github.com/ClickHouse/ClickHouse/issues/69899): Revert "Merge pull request [#69032](https://github.com/ClickHouse/ClickHouse/issues/69032) from alexon1234/include_real_time_execution_in_http_header". [#69885](https://github.com/ClickHouse/ClickHouse/pull/69885) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
|
* Backported in [#69899](https://github.com/ClickHouse/ClickHouse/issues/69899): Revert "Merge pull request [#69032](https://github.com/ClickHouse/ClickHouse/issues/69032) from alexon1234/include_real_time_execution_in_http_header". [#69885](https://github.com/ClickHouse/ClickHouse/pull/69885) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
|
||||||
* Backported in [#69931](https://github.com/ClickHouse/ClickHouse/issues/69931): RIPE is an acronym and thus should be capital. RIPE stands for **R**ACE **I**ntegrity **P**rimitives **E**valuation and RACE stands for **R**esearch and Development in **A**dvanced **C**ommunications **T**echnologies in **E**urope. [#69901](https://github.com/ClickHouse/ClickHouse/pull/69901) ([Nikita Mikhaylov](https://github.com/nikitamikhaylov)).
|
* Backported in [#69931](https://github.com/ClickHouse/ClickHouse/issues/69931): RIPE is an acronym and thus should be capital. RIPE stands for **R**ACE **I**ntegrity **P**rimitives **E**valuation and RACE stands for **R**esearch and Development in **A**dvanced **C**ommunications **T**echnologies in **E**urope. [#69901](https://github.com/ClickHouse/ClickHouse/pull/69901) ([Nikita Mikhaylov](https://github.com/nikitamikhaylov)).
|
||||||
* Backported in [#70034](https://github.com/ClickHouse/ClickHouse/issues/70034): Revert "Add RIPEMD160 function". [#70005](https://github.com/ClickHouse/ClickHouse/pull/70005) ([Robert Schulze](https://github.com/rschu1ze)).
|
* Backported in [#70034](https://github.com/ClickHouse/ClickHouse/issues/70034): Revert "Add RIPEMD160 function". [#70005](https://github.com/ClickHouse/ClickHouse/pull/70005) ([Robert Schulze](https://github.com/rschu1ze)).
|
||||||
|
|
||||||
|
@ -936,4 +936,4 @@ SELECT mapPartialReverseSort((k, v) -> v, 2, map('k1', 3, 'k2', 1, 'k3', 2));
|
|||||||
┌─mapPartialReverseSort(lambda(tuple(k, v), v), 2, map('k1', 3, 'k2', 1, 'k3', 2))─┐
|
┌─mapPartialReverseSort(lambda(tuple(k, v), v), 2, map('k1', 3, 'k2', 1, 'k3', 2))─┐
|
||||||
│ {'k1':3,'k3':2,'k2':1} │
|
│ {'k1':3,'k3':2,'k2':1} │
|
||||||
└──────────────────────────────────────────────────────────────────────────────────┘
|
└──────────────────────────────────────────────────────────────────────────────────┘
|
||||||
```
|
```
|
||||||
|
@ -49,4 +49,4 @@ LIMIT 2
|
|||||||
**See Also**
|
**See Also**
|
||||||
|
|
||||||
- [DeltaLake engine](/docs/en/engines/table-engines/integrations/deltalake.md)
|
- [DeltaLake engine](/docs/en/engines/table-engines/integrations/deltalake.md)
|
||||||
|
- [DeltaLake cluster table function](/docs/en/sql-reference/table-functions/deltalakeCluster.md)
|
||||||
|
30
docs/en/sql-reference/table-functions/deltalakeCluster.md
Normal file
30
docs/en/sql-reference/table-functions/deltalakeCluster.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
---
|
||||||
|
slug: /en/sql-reference/table-functions/deltalakeCluster
|
||||||
|
sidebar_position: 46
|
||||||
|
sidebar_label: deltaLakeCluster
|
||||||
|
title: "deltaLakeCluster Table Function"
|
||||||
|
---
|
||||||
|
This is an extension to the [deltaLake](/docs/en/sql-reference/table-functions/deltalake.md) table function.
|
||||||
|
|
||||||
|
Allows processing files from [Delta Lake](https://github.com/delta-io/delta) tables in Amazon S3 in parallel from many nodes in a specified cluster. On initiator it creates a connection to all nodes in the cluster and dispatches each file dynamically. On the worker node it asks the initiator about the next task to process and processes it. This is repeated until all tasks are finished.
|
||||||
|
|
||||||
|
**Syntax**
|
||||||
|
|
||||||
|
``` sql
|
||||||
|
deltaLakeCluster(cluster_name, url [,aws_access_key_id, aws_secret_access_key] [,format] [,structure] [,compression])
|
||||||
|
```
|
||||||
|
|
||||||
|
**Arguments**
|
||||||
|
|
||||||
|
- `cluster_name` — Name of a cluster that is used to build a set of addresses and connection parameters to remote and local servers.
|
||||||
|
|
||||||
|
- Description of all other arguments coincides with description of arguments in equivalent [deltaLake](/docs/en/sql-reference/table-functions/deltalake.md) table function.
|
||||||
|
|
||||||
|
**Returned value**
|
||||||
|
|
||||||
|
A table with the specified structure for reading data from cluster in the specified Delta Lake table in S3.
|
||||||
|
|
||||||
|
**See Also**
|
||||||
|
|
||||||
|
- [deltaLake engine](/docs/en/engines/table-engines/integrations/deltalake.md)
|
||||||
|
- [deltaLake table function](/docs/en/sql-reference/table-functions/deltalake.md)
|
@ -29,4 +29,4 @@ A table with the specified structure for reading data in the specified Hudi tabl
|
|||||||
**See Also**
|
**See Also**
|
||||||
|
|
||||||
- [Hudi engine](/docs/en/engines/table-engines/integrations/hudi.md)
|
- [Hudi engine](/docs/en/engines/table-engines/integrations/hudi.md)
|
||||||
|
- [Hudi cluster table function](/docs/en/sql-reference/table-functions/hudiCluster.md)
|
||||||
|
30
docs/en/sql-reference/table-functions/hudiCluster.md
Normal file
30
docs/en/sql-reference/table-functions/hudiCluster.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
---
|
||||||
|
slug: /en/sql-reference/table-functions/hudiCluster
|
||||||
|
sidebar_position: 86
|
||||||
|
sidebar_label: hudiCluster
|
||||||
|
title: "hudiCluster Table Function"
|
||||||
|
---
|
||||||
|
This is an extension to the [hudi](/docs/en/sql-reference/table-functions/hudi.md) table function.
|
||||||
|
|
||||||
|
Allows processing files from Apache [Hudi](https://hudi.apache.org/) tables in Amazon S3 in parallel from many nodes in a specified cluster. On initiator it creates a connection to all nodes in the cluster and dispatches each file dynamically. On the worker node it asks the initiator about the next task to process and processes it. This is repeated until all tasks are finished.
|
||||||
|
|
||||||
|
**Syntax**
|
||||||
|
|
||||||
|
``` sql
|
||||||
|
hudiCluster(cluster_name, url [,aws_access_key_id, aws_secret_access_key] [,format] [,structure] [,compression])
|
||||||
|
```
|
||||||
|
|
||||||
|
**Arguments**
|
||||||
|
|
||||||
|
- `cluster_name` — Name of a cluster that is used to build a set of addresses and connection parameters to remote and local servers.
|
||||||
|
|
||||||
|
- Description of all other arguments coincides with description of arguments in equivalent [hudi](/docs/en/sql-reference/table-functions/hudi.md) table function.
|
||||||
|
|
||||||
|
**Returned value**
|
||||||
|
|
||||||
|
A table with the specified structure for reading data from cluster in the specified Hudi table in S3.
|
||||||
|
|
||||||
|
**See Also**
|
||||||
|
|
||||||
|
- [Hudi engine](/docs/en/engines/table-engines/integrations/hudi.md)
|
||||||
|
- [Hudi table function](/docs/en/sql-reference/table-functions/hudi.md)
|
@ -72,3 +72,4 @@ Table function `iceberg` is an alias to `icebergS3` now.
|
|||||||
**See Also**
|
**See Also**
|
||||||
|
|
||||||
- [Iceberg engine](/docs/en/engines/table-engines/integrations/iceberg.md)
|
- [Iceberg engine](/docs/en/engines/table-engines/integrations/iceberg.md)
|
||||||
|
- [Iceberg cluster table function](/docs/en/sql-reference/table-functions/icebergCluster.md)
|
||||||
|
43
docs/en/sql-reference/table-functions/icebergCluster.md
Normal file
43
docs/en/sql-reference/table-functions/icebergCluster.md
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
slug: /en/sql-reference/table-functions/icebergCluster
|
||||||
|
sidebar_position: 91
|
||||||
|
sidebar_label: icebergCluster
|
||||||
|
title: "icebergCluster Table Function"
|
||||||
|
---
|
||||||
|
This is an extension to the [iceberg](/docs/en/sql-reference/table-functions/iceberg.md) table function.
|
||||||
|
|
||||||
|
Allows processing files from Apache [Iceberg](https://iceberg.apache.org/) in parallel from many nodes in a specified cluster. On initiator it creates a connection to all nodes in the cluster and dispatches each file dynamically. On the worker node it asks the initiator about the next task to process and processes it. This is repeated until all tasks are finished.
|
||||||
|
|
||||||
|
**Syntax**
|
||||||
|
|
||||||
|
``` sql
|
||||||
|
icebergS3Cluster(cluster_name, url [, NOSIGN | access_key_id, secret_access_key, [session_token]] [,format] [,compression_method])
|
||||||
|
icebergS3Cluster(cluster_name, named_collection[, option=value [,..]])
|
||||||
|
|
||||||
|
icebergAzureCluster(cluster_name, connection_string|storage_account_url, container_name, blobpath, [,account_name], [,account_key] [,format] [,compression_method])
|
||||||
|
icebergAzureCluster(cluster_name, named_collection[, option=value [,..]])
|
||||||
|
|
||||||
|
icebergHDFSCluster(cluster_name, path_to_table, [,format] [,compression_method])
|
||||||
|
icebergHDFSCluster(cluster_name, named_collection[, option=value [,..]])
|
||||||
|
```
|
||||||
|
|
||||||
|
**Arguments**
|
||||||
|
|
||||||
|
- `cluster_name` — Name of a cluster that is used to build a set of addresses and connection parameters to remote and local servers.
|
||||||
|
|
||||||
|
- Description of all other arguments coincides with description of arguments in equivalent [iceberg](/docs/en/sql-reference/table-functions/iceberg.md) table function.
|
||||||
|
|
||||||
|
**Returned value**
|
||||||
|
|
||||||
|
A table with the specified structure for reading data from cluster in the specified Iceberg table.
|
||||||
|
|
||||||
|
**Examples**
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT * FROM icebergS3Cluster('cluster_simple', 'http://test.s3.amazonaws.com/clickhouse-bucket/test_table', 'test', 'test')
|
||||||
|
```
|
||||||
|
|
||||||
|
**See Also**
|
||||||
|
|
||||||
|
- [Iceberg engine](/docs/en/engines/table-engines/integrations/iceberg.md)
|
||||||
|
- [Iceberg table function](/docs/en/sql-reference/table-functions/iceberg.md)
|
@ -134,7 +134,7 @@ for config in clickhouse*.yaml; do
|
|||||||
fi
|
fi
|
||||||
if [ -n "$MAKE_DEB" ] || [ -n "$MAKE_TGZ" ]; then
|
if [ -n "$MAKE_DEB" ] || [ -n "$MAKE_TGZ" ]; then
|
||||||
echo "Building deb package for $config"
|
echo "Building deb package for $config"
|
||||||
nfpm package --target "$OUTPUT_DIR" --config "$config" --packager deb
|
PKG_PATH=$(nfpm package --target "$OUTPUT_DIR" --config "$config" --packager deb | tee /dev/stderr | grep "created package:" | sed 's/.*created package: //')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$MAKE_APK" ]; then
|
if [ -n "$MAKE_APK" ]; then
|
||||||
|
@ -476,7 +476,7 @@
|
|||||||
<input id="edit" type="button" value="✎" style="display: none;">
|
<input id="edit" type="button" value="✎" style="display: none;">
|
||||||
<input id="add" type="button" value="Add chart" style="display: none;">
|
<input id="add" type="button" value="Add chart" style="display: none;">
|
||||||
<input id="reload" type="button" value="Reload">
|
<input id="reload" type="button" value="Reload">
|
||||||
<span id="search-span" class="nowrap" style="display: none;"><input id="search" type="button" value="🔎" title="Run query to obtain list of charts from ClickHouse"><input id="search-query" name="search" type="text" spellcheck="false"></span>
|
<span id="search-span" class="nowrap" style="display: none;"><input id="search" type="button" value="🔎" title="Run query to obtain list of charts from ClickHouse. Either select dashboard name or write your own query"><input id="search-query" name="search" list="search-options" type="text" spellcheck="false"><datalist id="search-options"></datalist></span>
|
||||||
<div id="chart-params"></div>
|
<div id="chart-params"></div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@ -532,9 +532,15 @@ const errorMessages = [
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
/// Dashboard selector
|
||||||
|
const dashboardSearchQuery = (dashboard_name) => `SELECT title, query FROM system.dashboards WHERE dashboard = '${dashboard_name}'`;
|
||||||
|
let dashboard_queries = {
|
||||||
|
"Overview": dashboardSearchQuery("Overview"),
|
||||||
|
};
|
||||||
|
const default_dashboard = 'Overview';
|
||||||
|
|
||||||
/// Query to fill `queries` list for the dashboard
|
/// Query to fill `queries` list for the dashboard
|
||||||
let search_query = `SELECT title, query FROM system.dashboards WHERE dashboard = 'Overview'`;
|
let search_query = dashboardSearchQuery(default_dashboard);
|
||||||
let customized = false;
|
let customized = false;
|
||||||
let queries = [];
|
let queries = [];
|
||||||
|
|
||||||
@ -1439,7 +1445,7 @@ async function reloadAll(do_search) {
|
|||||||
try {
|
try {
|
||||||
updateParams();
|
updateParams();
|
||||||
if (do_search) {
|
if (do_search) {
|
||||||
search_query = document.getElementById('search-query').value;
|
search_query = toSearchQuery(document.getElementById('search-query').value);
|
||||||
queries = [];
|
queries = [];
|
||||||
refreshCustomized(false);
|
refreshCustomized(false);
|
||||||
}
|
}
|
||||||
@ -1504,7 +1510,7 @@ function updateFromState() {
|
|||||||
document.getElementById('url').value = host;
|
document.getElementById('url').value = host;
|
||||||
document.getElementById('user').value = user;
|
document.getElementById('user').value = user;
|
||||||
document.getElementById('password').value = password;
|
document.getElementById('password').value = password;
|
||||||
document.getElementById('search-query').value = search_query;
|
document.getElementById('search-query').value = fromSearchQuery(search_query);
|
||||||
refreshCustomized();
|
refreshCustomized();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1543,6 +1549,44 @@ if (window.location.hash) {
|
|||||||
} catch {}
|
} catch {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function fromSearchQuery(query) {
|
||||||
|
for (const dashboard_name in dashboard_queries) {
|
||||||
|
if (query == dashboard_queries[dashboard_name])
|
||||||
|
return dashboard_name;
|
||||||
|
}
|
||||||
|
return query;
|
||||||
|
}
|
||||||
|
|
||||||
|
function toSearchQuery(value) {
|
||||||
|
if (value in dashboard_queries)
|
||||||
|
return dashboard_queries[value];
|
||||||
|
else
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
async function populateSearchOptions() {
|
||||||
|
let {reply, error} = await doFetch("SELECT dashboard FROM system.dashboards GROUP BY dashboard ORDER BY ALL");
|
||||||
|
if (error) {
|
||||||
|
throw new Error(error);
|
||||||
|
}
|
||||||
|
let data = reply.data;
|
||||||
|
if (data.dashboard.length == 0) {
|
||||||
|
console.log("Unable to fetch dashboards list");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
dashboard_queries = {};
|
||||||
|
for (let i = 0; i < data.dashboard.length; i++) {
|
||||||
|
const dashboard = data.dashboard[i];
|
||||||
|
dashboard_queries[dashboard] = dashboardSearchQuery(dashboard);
|
||||||
|
}
|
||||||
|
const searchOptions = document.getElementById('search-options');
|
||||||
|
for (const dashboard in dashboard_queries) {
|
||||||
|
const opt = document.createElement('option');
|
||||||
|
opt.value = dashboard;
|
||||||
|
searchOptions.appendChild(opt);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async function start() {
|
async function start() {
|
||||||
try {
|
try {
|
||||||
updateFromState();
|
updateFromState();
|
||||||
@ -1558,6 +1602,7 @@ async function start() {
|
|||||||
} else {
|
} else {
|
||||||
drawAll();
|
drawAll();
|
||||||
}
|
}
|
||||||
|
await populateSearchOptions();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
showError(e.message);
|
showError(e.message);
|
||||||
}
|
}
|
||||||
|
@ -528,7 +528,7 @@ QueryTreeNodePtr IdentifierResolver::tryResolveIdentifierFromCompoundExpression(
|
|||||||
*
|
*
|
||||||
* Resolve strategy:
|
* Resolve strategy:
|
||||||
* 1. Try to bind identifier to scope argument name to node map.
|
* 1. Try to bind identifier to scope argument name to node map.
|
||||||
* 2. If identifier is binded but expression context and node type are incompatible return nullptr.
|
* 2. If identifier is bound but expression context and node type are incompatible return nullptr.
|
||||||
*
|
*
|
||||||
* It is important to support edge cases, where we lookup for table or function node, but argument has same name.
|
* It is important to support edge cases, where we lookup for table or function node, but argument has same name.
|
||||||
* Example: WITH (x -> x + 1) AS func, (func -> func(1) + func) AS lambda SELECT lambda(1);
|
* Example: WITH (x -> x + 1) AS func, (func -> func(1) + func) AS lambda SELECT lambda(1);
|
||||||
|
@ -362,7 +362,7 @@ ReplxxLineReader::ReplxxLineReader(
|
|||||||
if (highlighter)
|
if (highlighter)
|
||||||
rx.set_highlighter_callback(highlighter);
|
rx.set_highlighter_callback(highlighter);
|
||||||
|
|
||||||
/// By default C-p/C-n binded to COMPLETE_NEXT/COMPLETE_PREV,
|
/// By default C-p/C-n bound to COMPLETE_NEXT/COMPLETE_PREV,
|
||||||
/// bind C-p/C-n to history-previous/history-next like readline.
|
/// bind C-p/C-n to history-previous/history-next like readline.
|
||||||
rx.bind_key(Replxx::KEY::control('N'), [this](char32_t code) { return rx.invoke(Replxx::ACTION::HISTORY_NEXT, code); });
|
rx.bind_key(Replxx::KEY::control('N'), [this](char32_t code) { return rx.invoke(Replxx::ACTION::HISTORY_NEXT, code); });
|
||||||
rx.bind_key(Replxx::KEY::control('P'), [this](char32_t code) { return rx.invoke(Replxx::ACTION::HISTORY_PREVIOUS, code); });
|
rx.bind_key(Replxx::KEY::control('P'), [this](char32_t code) { return rx.invoke(Replxx::ACTION::HISTORY_PREVIOUS, code); });
|
||||||
@ -384,9 +384,9 @@ ReplxxLineReader::ReplxxLineReader(
|
|||||||
rx.bind_key(Replxx::KEY::control('J'), commit_action);
|
rx.bind_key(Replxx::KEY::control('J'), commit_action);
|
||||||
rx.bind_key(Replxx::KEY::ENTER, commit_action);
|
rx.bind_key(Replxx::KEY::ENTER, commit_action);
|
||||||
|
|
||||||
/// By default COMPLETE_NEXT/COMPLETE_PREV was binded to C-p/C-n, re-bind
|
/// By default COMPLETE_NEXT/COMPLETE_PREV was bound to C-p/C-n, re-bind
|
||||||
/// to M-P/M-N (that was used for HISTORY_COMMON_PREFIX_SEARCH before, but
|
/// to M-P/M-N (that was used for HISTORY_COMMON_PREFIX_SEARCH before, but
|
||||||
/// it also binded to M-p/M-n).
|
/// it also bound to M-p/M-n).
|
||||||
rx.bind_key(Replxx::KEY::meta('N'), [this](char32_t code) { return rx.invoke(Replxx::ACTION::COMPLETE_NEXT, code); });
|
rx.bind_key(Replxx::KEY::meta('N'), [this](char32_t code) { return rx.invoke(Replxx::ACTION::COMPLETE_NEXT, code); });
|
||||||
rx.bind_key(Replxx::KEY::meta('P'), [this](char32_t code) { return rx.invoke(Replxx::ACTION::COMPLETE_PREVIOUS, code); });
|
rx.bind_key(Replxx::KEY::meta('P'), [this](char32_t code) { return rx.invoke(Replxx::ACTION::COMPLETE_PREVIOUS, code); });
|
||||||
/// By default M-BACKSPACE is KILL_TO_WHITESPACE_ON_LEFT, while in readline it is backward-kill-word
|
/// By default M-BACKSPACE is KILL_TO_WHITESPACE_ON_LEFT, while in readline it is backward-kill-word
|
||||||
|
@ -62,16 +62,17 @@ public:
|
|||||||
for (size_t i = 0; i < num_rows; ++i)
|
for (size_t i = 0; i < num_rows; ++i)
|
||||||
{
|
{
|
||||||
auto array_size = col_num->getInt(i);
|
auto array_size = col_num->getInt(i);
|
||||||
|
auto element_size = col_value->byteSizeAt(i);
|
||||||
|
|
||||||
if (unlikely(array_size < 0))
|
if (unlikely(array_size < 0))
|
||||||
throw Exception(ErrorCodes::TOO_LARGE_ARRAY_SIZE, "Array size {} cannot be negative: while executing function {}", array_size, getName());
|
throw Exception(ErrorCodes::TOO_LARGE_ARRAY_SIZE, "Array size {} cannot be negative: while executing function {}", array_size, getName());
|
||||||
|
|
||||||
Int64 estimated_size = 0;
|
Int64 estimated_size = 0;
|
||||||
if (unlikely(common::mulOverflow(array_size, col_value->byteSize(), estimated_size)))
|
if (unlikely(common::mulOverflow(array_size, element_size, estimated_size)))
|
||||||
throw Exception(ErrorCodes::TOO_LARGE_ARRAY_SIZE, "Array size {} with element size {} bytes is too large: while executing function {}", array_size, col_value->byteSize(), getName());
|
throw Exception(ErrorCodes::TOO_LARGE_ARRAY_SIZE, "Array size {} with element size {} bytes is too large: while executing function {}", array_size, element_size, getName());
|
||||||
|
|
||||||
if (unlikely(estimated_size > max_array_size_in_columns_bytes))
|
if (unlikely(estimated_size > max_array_size_in_columns_bytes))
|
||||||
throw Exception(ErrorCodes::TOO_LARGE_ARRAY_SIZE, "Array size {} with element size {} bytes is too large: while executing function {}", array_size, col_value->byteSize(), getName());
|
throw Exception(ErrorCodes::TOO_LARGE_ARRAY_SIZE, "Array size {} with element size {} bytes is too large: while executing function {}", array_size, element_size, getName());
|
||||||
|
|
||||||
offset += array_size;
|
offset += array_size;
|
||||||
|
|
||||||
|
@ -237,6 +237,7 @@ bool IParserColumnDeclaration<NameParser>::parseImpl(Pos & pos, ASTPtr & node, E
|
|||||||
null_modifier.emplace(true);
|
null_modifier.emplace(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool is_comment = false;
|
||||||
/// Collate is also allowed after NULL/NOT NULL
|
/// Collate is also allowed after NULL/NOT NULL
|
||||||
if (!collation_expression && s_collate.ignore(pos, expected)
|
if (!collation_expression && s_collate.ignore(pos, expected)
|
||||||
&& !collation_parser.parse(pos, collation_expression, expected))
|
&& !collation_parser.parse(pos, collation_expression, expected))
|
||||||
@ -254,7 +255,9 @@ bool IParserColumnDeclaration<NameParser>::parseImpl(Pos & pos, ASTPtr & node, E
|
|||||||
else if (s_ephemeral.ignore(pos, expected))
|
else if (s_ephemeral.ignore(pos, expected))
|
||||||
{
|
{
|
||||||
default_specifier = s_ephemeral.getName();
|
default_specifier = s_ephemeral.getName();
|
||||||
if (!expr_parser.parse(pos, default_expression, expected) && type)
|
if (s_comment.ignore(pos, expected))
|
||||||
|
is_comment = true;
|
||||||
|
if ((is_comment || !expr_parser.parse(pos, default_expression, expected)) && type)
|
||||||
{
|
{
|
||||||
ephemeral_default = true;
|
ephemeral_default = true;
|
||||||
|
|
||||||
@ -289,19 +292,22 @@ bool IParserColumnDeclaration<NameParser>::parseImpl(Pos & pos, ASTPtr & node, E
|
|||||||
if (require_type && !type && !default_expression)
|
if (require_type && !type && !default_expression)
|
||||||
return false; /// reject column name without type
|
return false; /// reject column name without type
|
||||||
|
|
||||||
if ((type || default_expression) && allow_null_modifiers && !null_modifier.has_value())
|
if (!is_comment)
|
||||||
{
|
{
|
||||||
if (s_not.ignore(pos, expected))
|
if ((type || default_expression) && allow_null_modifiers && !null_modifier.has_value())
|
||||||
{
|
{
|
||||||
if (!s_null.ignore(pos, expected))
|
if (s_not.ignore(pos, expected))
|
||||||
return false;
|
{
|
||||||
null_modifier.emplace(false);
|
if (!s_null.ignore(pos, expected))
|
||||||
|
return false;
|
||||||
|
null_modifier.emplace(false);
|
||||||
|
}
|
||||||
|
else if (s_null.ignore(pos, expected))
|
||||||
|
null_modifier.emplace(true);
|
||||||
}
|
}
|
||||||
else if (s_null.ignore(pos, expected))
|
|
||||||
null_modifier.emplace(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s_comment.ignore(pos, expected))
|
if (is_comment || s_comment.ignore(pos, expected))
|
||||||
{
|
{
|
||||||
/// should be followed by a string literal
|
/// should be followed by a string literal
|
||||||
if (!string_literal_parser.parse(pos, comment_expression, expected))
|
if (!string_literal_parser.parse(pos, comment_expression, expected))
|
||||||
|
@ -226,6 +226,26 @@ template class TableFunctionObjectStorage<HDFSClusterDefinition, StorageHDFSConf
|
|||||||
#endif
|
#endif
|
||||||
template class TableFunctionObjectStorage<LocalDefinition, StorageLocalConfiguration>;
|
template class TableFunctionObjectStorage<LocalDefinition, StorageLocalConfiguration>;
|
||||||
|
|
||||||
|
#if USE_AVRO && USE_AWS_S3
|
||||||
|
template class TableFunctionObjectStorage<IcebergS3ClusterDefinition, StorageS3IcebergConfiguration>;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if USE_AVRO && USE_AZURE_BLOB_STORAGE
|
||||||
|
template class TableFunctionObjectStorage<IcebergAzureClusterDefinition, StorageAzureIcebergConfiguration>;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if USE_AVRO && USE_HDFS
|
||||||
|
template class TableFunctionObjectStorage<IcebergHDFSClusterDefinition, StorageHDFSIcebergConfiguration>;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if USE_PARQUET && USE_AWS_S3
|
||||||
|
template class TableFunctionObjectStorage<DeltaLakeClusterDefinition, StorageS3DeltaLakeConfiguration>;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if USE_AWS_S3
|
||||||
|
template class TableFunctionObjectStorage<HudiClusterDefinition, StorageS3HudiConfiguration>;
|
||||||
|
#endif
|
||||||
|
|
||||||
#if USE_AVRO
|
#if USE_AVRO
|
||||||
void registerTableFunctionIceberg(TableFunctionFactory & factory)
|
void registerTableFunctionIceberg(TableFunctionFactory & factory)
|
||||||
{
|
{
|
||||||
|
@ -96,7 +96,7 @@ void registerTableFunctionObjectStorageCluster(TableFunctionFactory & factory)
|
|||||||
{
|
{
|
||||||
.documentation = {
|
.documentation = {
|
||||||
.description=R"(The table function can be used to read the data stored on HDFS in parallel for many nodes in a specified cluster.)",
|
.description=R"(The table function can be used to read the data stored on HDFS in parallel for many nodes in a specified cluster.)",
|
||||||
.examples{{"HDFSCluster", "SELECT * FROM HDFSCluster(cluster_name, uri, format)", ""}}},
|
.examples{{"HDFSCluster", "SELECT * FROM HDFSCluster(cluster, uri, format)", ""}}},
|
||||||
.allow_readonly = false
|
.allow_readonly = false
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@ -105,15 +105,77 @@ void registerTableFunctionObjectStorageCluster(TableFunctionFactory & factory)
|
|||||||
UNUSED(factory);
|
UNUSED(factory);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#if USE_AVRO
|
||||||
|
void registerTableFunctionIcebergCluster(TableFunctionFactory & factory)
|
||||||
|
{
|
||||||
|
UNUSED(factory);
|
||||||
|
|
||||||
#if USE_AWS_S3
|
#if USE_AWS_S3
|
||||||
template class TableFunctionObjectStorageCluster<S3ClusterDefinition, StorageS3Configuration>;
|
factory.registerFunction<TableFunctionIcebergS3Cluster>(
|
||||||
|
{.documentation
|
||||||
|
= {.description = R"(The table function can be used to read the Iceberg table stored on S3 object store in parallel for many nodes in a specified cluster.)",
|
||||||
|
.examples{{"icebergS3Cluster", "SELECT * FROM icebergS3Cluster(cluster, url, [, NOSIGN | access_key_id, secret_access_key, [session_token]], format, [,compression])", ""}},
|
||||||
|
.categories{"DataLake"}},
|
||||||
|
.allow_readonly = false});
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_AZURE_BLOB_STORAGE
|
#if USE_AZURE_BLOB_STORAGE
|
||||||
template class TableFunctionObjectStorageCluster<AzureClusterDefinition, StorageAzureConfiguration>;
|
factory.registerFunction<TableFunctionIcebergAzureCluster>(
|
||||||
|
{.documentation
|
||||||
|
= {.description = R"(The table function can be used to read the Iceberg table stored on Azure object store in parallel for many nodes in a specified cluster.)",
|
||||||
|
.examples{{"icebergAzureCluster", "SELECT * FROM icebergAzureCluster(cluster, connection_string|storage_account_url, container_name, blobpath, [account_name, account_key, format, compression])", ""}},
|
||||||
|
.categories{"DataLake"}},
|
||||||
|
.allow_readonly = false});
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_HDFS
|
#if USE_HDFS
|
||||||
template class TableFunctionObjectStorageCluster<HDFSClusterDefinition, StorageHDFSConfiguration>;
|
factory.registerFunction<TableFunctionIcebergHDFSCluster>(
|
||||||
|
{.documentation
|
||||||
|
= {.description = R"(The table function can be used to read the Iceberg table stored on HDFS virtual filesystem in parallel for many nodes in a specified cluster.)",
|
||||||
|
.examples{{"icebergHDFSCluster", "SELECT * FROM icebergHDFSCluster(cluster, uri, [format], [structure], [compression_method])", ""}},
|
||||||
|
.categories{"DataLake"}},
|
||||||
|
.allow_readonly = false});
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if USE_AWS_S3
|
||||||
|
#if USE_PARQUET
|
||||||
|
void registerTableFunctionDeltaLakeCluster(TableFunctionFactory & factory)
|
||||||
|
{
|
||||||
|
factory.registerFunction<TableFunctionDeltaLakeCluster>(
|
||||||
|
{.documentation
|
||||||
|
= {.description = R"(The table function can be used to read the DeltaLake table stored on object store in parallel for many nodes in a specified cluster.)",
|
||||||
|
.examples{{"deltaLakeCluster", "SELECT * FROM deltaLakeCluster(cluster, url, access_key_id, secret_access_key)", ""}},
|
||||||
|
.categories{"DataLake"}},
|
||||||
|
.allow_readonly = false});
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void registerTableFunctionHudiCluster(TableFunctionFactory & factory)
|
||||||
|
{
|
||||||
|
factory.registerFunction<TableFunctionHudiCluster>(
|
||||||
|
{.documentation
|
||||||
|
= {.description = R"(The table function can be used to read the Hudi table stored on object store in parallel for many nodes in a specified cluster.)",
|
||||||
|
.examples{{"hudiCluster", "SELECT * FROM hudiCluster(cluster, url, access_key_id, secret_access_key)", ""}},
|
||||||
|
.categories{"DataLake"}},
|
||||||
|
.allow_readonly = false});
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void registerDataLakeClusterTableFunctions(TableFunctionFactory & factory)
|
||||||
|
{
|
||||||
|
UNUSED(factory);
|
||||||
|
#if USE_AVRO
|
||||||
|
registerTableFunctionIcebergCluster(factory);
|
||||||
|
#endif
|
||||||
|
#if USE_AWS_S3
|
||||||
|
#if USE_PARQUET
|
||||||
|
registerTableFunctionDeltaLakeCluster(factory);
|
||||||
|
#endif
|
||||||
|
registerTableFunctionHudiCluster(factory);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
@ -33,6 +33,36 @@ struct HDFSClusterDefinition
|
|||||||
static constexpr auto storage_type_name = "HDFSCluster";
|
static constexpr auto storage_type_name = "HDFSCluster";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct IcebergS3ClusterDefinition
|
||||||
|
{
|
||||||
|
static constexpr auto name = "icebergS3Cluster";
|
||||||
|
static constexpr auto storage_type_name = "IcebergS3Cluster";
|
||||||
|
};
|
||||||
|
|
||||||
|
struct IcebergAzureClusterDefinition
|
||||||
|
{
|
||||||
|
static constexpr auto name = "icebergAzureCluster";
|
||||||
|
static constexpr auto storage_type_name = "IcebergAzureCluster";
|
||||||
|
};
|
||||||
|
|
||||||
|
struct IcebergHDFSClusterDefinition
|
||||||
|
{
|
||||||
|
static constexpr auto name = "icebergHDFSCluster";
|
||||||
|
static constexpr auto storage_type_name = "IcebergHDFSCluster";
|
||||||
|
};
|
||||||
|
|
||||||
|
struct DeltaLakeClusterDefinition
|
||||||
|
{
|
||||||
|
static constexpr auto name = "deltaLakeCluster";
|
||||||
|
static constexpr auto storage_type_name = "DeltaLakeS3Cluster";
|
||||||
|
};
|
||||||
|
|
||||||
|
struct HudiClusterDefinition
|
||||||
|
{
|
||||||
|
static constexpr auto name = "hudiCluster";
|
||||||
|
static constexpr auto storage_type_name = "HudiS3Cluster";
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class implementing s3/hdfs/azureBlobStorageCluster(...) table functions,
|
* Class implementing s3/hdfs/azureBlobStorageCluster(...) table functions,
|
||||||
* which allow to process many files from S3/HDFS/Azure blob storage on a specific cluster.
|
* which allow to process many files from S3/HDFS/Azure blob storage on a specific cluster.
|
||||||
@ -79,4 +109,25 @@ using TableFunctionAzureBlobCluster = TableFunctionObjectStorageCluster<AzureClu
|
|||||||
#if USE_HDFS
|
#if USE_HDFS
|
||||||
using TableFunctionHDFSCluster = TableFunctionObjectStorageCluster<HDFSClusterDefinition, StorageHDFSConfiguration>;
|
using TableFunctionHDFSCluster = TableFunctionObjectStorageCluster<HDFSClusterDefinition, StorageHDFSConfiguration>;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if USE_AVRO && USE_AWS_S3
|
||||||
|
using TableFunctionIcebergS3Cluster = TableFunctionObjectStorageCluster<IcebergS3ClusterDefinition, StorageS3IcebergConfiguration>;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if USE_AVRO && USE_AZURE_BLOB_STORAGE
|
||||||
|
using TableFunctionIcebergAzureCluster = TableFunctionObjectStorageCluster<IcebergAzureClusterDefinition, StorageAzureIcebergConfiguration>;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if USE_AVRO && USE_HDFS
|
||||||
|
using TableFunctionIcebergHDFSCluster = TableFunctionObjectStorageCluster<IcebergHDFSClusterDefinition, StorageHDFSIcebergConfiguration>;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if USE_AWS_S3 && USE_PARQUET
|
||||||
|
using TableFunctionDeltaLakeCluster = TableFunctionObjectStorageCluster<DeltaLakeClusterDefinition, StorageS3DeltaLakeConfiguration>;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if USE_AWS_S3
|
||||||
|
using TableFunctionHudiCluster = TableFunctionObjectStorageCluster<HudiClusterDefinition, StorageS3HudiConfiguration>;
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -66,6 +66,7 @@ void registerTableFunctions(bool use_legacy_mongodb_integration [[maybe_unused]]
|
|||||||
registerTableFunctionObjectStorage(factory);
|
registerTableFunctionObjectStorage(factory);
|
||||||
registerTableFunctionObjectStorageCluster(factory);
|
registerTableFunctionObjectStorageCluster(factory);
|
||||||
registerDataLakeTableFunctions(factory);
|
registerDataLakeTableFunctions(factory);
|
||||||
|
registerDataLakeClusterTableFunctions(factory);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -70,6 +70,7 @@ void registerTableFunctionExplain(TableFunctionFactory & factory);
|
|||||||
void registerTableFunctionObjectStorage(TableFunctionFactory & factory);
|
void registerTableFunctionObjectStorage(TableFunctionFactory & factory);
|
||||||
void registerTableFunctionObjectStorageCluster(TableFunctionFactory & factory);
|
void registerTableFunctionObjectStorageCluster(TableFunctionFactory & factory);
|
||||||
void registerDataLakeTableFunctions(TableFunctionFactory & factory);
|
void registerDataLakeTableFunctions(TableFunctionFactory & factory);
|
||||||
|
void registerDataLakeClusterTableFunctions(TableFunctionFactory & factory);
|
||||||
|
|
||||||
void registerTableFunctionTimeSeries(TableFunctionFactory & factory);
|
void registerTableFunctionTimeSeries(TableFunctionFactory & factory);
|
||||||
|
|
||||||
|
@ -299,8 +299,6 @@ class TagAttrs:
|
|||||||
|
|
||||||
# Only one latest can exist
|
# Only one latest can exist
|
||||||
latest: ClickHouseVersion
|
latest: ClickHouseVersion
|
||||||
# Only one can be a major one (the most fresh per a year)
|
|
||||||
majors: Dict[int, ClickHouseVersion]
|
|
||||||
# Only one lts version can exist
|
# Only one lts version can exist
|
||||||
lts: Optional[ClickHouseVersion]
|
lts: Optional[ClickHouseVersion]
|
||||||
|
|
||||||
@ -345,14 +343,6 @@ def ldf_tags(version: ClickHouseVersion, distro: str, tag_attrs: TagAttrs) -> st
|
|||||||
tags.append("lts")
|
tags.append("lts")
|
||||||
tags.append(f"lts-{distro}")
|
tags.append(f"lts-{distro}")
|
||||||
|
|
||||||
# If the tag `22`, `23`, `24` etc. should be included in the tags
|
|
||||||
with_major = tag_attrs.majors.get(version.major) in (None, version)
|
|
||||||
if with_major:
|
|
||||||
tag_attrs.majors[version.major] = version
|
|
||||||
if without_distro:
|
|
||||||
tags.append(f"{version.major}")
|
|
||||||
tags.append(f"{version.major}-{distro}")
|
|
||||||
|
|
||||||
# Add all normal tags
|
# Add all normal tags
|
||||||
for tag in (
|
for tag in (
|
||||||
f"{version.major}.{version.minor}",
|
f"{version.major}.{version.minor}",
|
||||||
@ -384,7 +374,7 @@ def generate_ldf(args: argparse.Namespace) -> None:
|
|||||||
args.directory / git_runner(f"git -C {args.directory} rev-parse --show-cdup")
|
args.directory / git_runner(f"git -C {args.directory} rev-parse --show-cdup")
|
||||||
).absolute()
|
).absolute()
|
||||||
lines = ldf_header(git, directory)
|
lines = ldf_header(git, directory)
|
||||||
tag_attrs = TagAttrs(versions[-1], {}, None)
|
tag_attrs = TagAttrs(versions[-1], None)
|
||||||
|
|
||||||
# We iterate from the most recent to the oldest version
|
# We iterate from the most recent to the oldest version
|
||||||
for version in reversed(versions):
|
for version in reversed(versions):
|
||||||
|
@ -448,7 +448,7 @@ class JobReport:
|
|||||||
start_time=timestamp,
|
start_time=timestamp,
|
||||||
duration=self.duration,
|
duration=self.duration,
|
||||||
results=sub_results,
|
results=sub_results,
|
||||||
files=[f for f in self.additional_files],
|
files=[str(f) for f in self.additional_files] if self.additional_files else [],
|
||||||
)
|
)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@ -378,7 +378,7 @@ def test_reload_via_client(cluster, zk):
|
|||||||
configure_from_zk(zk)
|
configure_from_zk(zk)
|
||||||
break
|
break
|
||||||
except QueryRuntimeException:
|
except QueryRuntimeException:
|
||||||
logging.exception("The new socket is not binded yet")
|
logging.exception("The new socket is not bound yet")
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
|
||||||
if exception:
|
if exception:
|
||||||
|
@ -0,0 +1,20 @@
|
|||||||
|
<clickhouse>
|
||||||
|
<remote_servers>
|
||||||
|
<cluster_simple>
|
||||||
|
<shard>
|
||||||
|
<replica>
|
||||||
|
<host>node1</host>
|
||||||
|
<port>9000</port>
|
||||||
|
</replica>
|
||||||
|
<replica>
|
||||||
|
<host>node2</host>
|
||||||
|
<port>9000</port>
|
||||||
|
</replica>
|
||||||
|
<replica>
|
||||||
|
<host>node3</host>
|
||||||
|
<port>9000</port>
|
||||||
|
</replica>
|
||||||
|
</shard>
|
||||||
|
</cluster_simple>
|
||||||
|
</remote_servers>
|
||||||
|
</clickhouse>
|
@ -0,0 +1,6 @@
|
|||||||
|
<clickhouse>
|
||||||
|
<query_log>
|
||||||
|
<database>system</database>
|
||||||
|
<table>query_log</table>
|
||||||
|
</query_log>
|
||||||
|
</clickhouse>
|
@ -73,14 +73,38 @@ def started_cluster():
|
|||||||
cluster.add_instance(
|
cluster.add_instance(
|
||||||
"node1",
|
"node1",
|
||||||
main_configs=[
|
main_configs=[
|
||||||
|
"configs/config.d/query_log.xml",
|
||||||
|
"configs/config.d/cluster.xml",
|
||||||
"configs/config.d/named_collections.xml",
|
"configs/config.d/named_collections.xml",
|
||||||
"configs/config.d/filesystem_caches.xml",
|
"configs/config.d/filesystem_caches.xml",
|
||||||
],
|
],
|
||||||
user_configs=["configs/users.d/users.xml"],
|
user_configs=["configs/users.d/users.xml"],
|
||||||
with_minio=True,
|
with_minio=True,
|
||||||
with_azurite=True,
|
with_azurite=True,
|
||||||
stay_alive=True,
|
|
||||||
with_hdfs=with_hdfs,
|
with_hdfs=with_hdfs,
|
||||||
|
stay_alive=True,
|
||||||
|
)
|
||||||
|
cluster.add_instance(
|
||||||
|
"node2",
|
||||||
|
main_configs=[
|
||||||
|
"configs/config.d/query_log.xml",
|
||||||
|
"configs/config.d/cluster.xml",
|
||||||
|
"configs/config.d/named_collections.xml",
|
||||||
|
"configs/config.d/filesystem_caches.xml",
|
||||||
|
],
|
||||||
|
user_configs=["configs/users.d/users.xml"],
|
||||||
|
stay_alive=True,
|
||||||
|
)
|
||||||
|
cluster.add_instance(
|
||||||
|
"node3",
|
||||||
|
main_configs=[
|
||||||
|
"configs/config.d/query_log.xml",
|
||||||
|
"configs/config.d/cluster.xml",
|
||||||
|
"configs/config.d/named_collections.xml",
|
||||||
|
"configs/config.d/filesystem_caches.xml",
|
||||||
|
],
|
||||||
|
user_configs=["configs/users.d/users.xml"],
|
||||||
|
stay_alive=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
logging.info("Starting cluster...")
|
logging.info("Starting cluster...")
|
||||||
@ -182,6 +206,7 @@ def get_creation_expression(
|
|||||||
cluster,
|
cluster,
|
||||||
format="Parquet",
|
format="Parquet",
|
||||||
table_function=False,
|
table_function=False,
|
||||||
|
run_on_cluster=False,
|
||||||
**kwargs,
|
**kwargs,
|
||||||
):
|
):
|
||||||
if storage_type == "s3":
|
if storage_type == "s3":
|
||||||
@ -189,35 +214,56 @@ def get_creation_expression(
|
|||||||
bucket = kwargs["bucket"]
|
bucket = kwargs["bucket"]
|
||||||
else:
|
else:
|
||||||
bucket = cluster.minio_bucket
|
bucket = cluster.minio_bucket
|
||||||
print(bucket)
|
|
||||||
if table_function:
|
if run_on_cluster:
|
||||||
return f"icebergS3(s3, filename = 'iceberg_data/default/{table_name}/', format={format}, url = 'http://minio1:9001/{bucket}/')"
|
assert table_function
|
||||||
|
return f"icebergS3Cluster('cluster_simple', s3, filename = 'iceberg_data/default/{table_name}/', format={format}, url = 'http://minio1:9001/{bucket}/')"
|
||||||
else:
|
else:
|
||||||
return f"""
|
if table_function:
|
||||||
DROP TABLE IF EXISTS {table_name};
|
return f"icebergS3(s3, filename = 'iceberg_data/default/{table_name}/', format={format}, url = 'http://minio1:9001/{bucket}/')"
|
||||||
CREATE TABLE {table_name}
|
else:
|
||||||
ENGINE=IcebergS3(s3, filename = 'iceberg_data/default/{table_name}/', format={format}, url = 'http://minio1:9001/{bucket}/')"""
|
return f"""
|
||||||
|
DROP TABLE IF EXISTS {table_name};
|
||||||
|
CREATE TABLE {table_name}
|
||||||
|
ENGINE=IcebergS3(s3, filename = 'iceberg_data/default/{table_name}/', format={format}, url = 'http://minio1:9001/{bucket}/')"""
|
||||||
|
|
||||||
elif storage_type == "azure":
|
elif storage_type == "azure":
|
||||||
if table_function:
|
if run_on_cluster:
|
||||||
|
assert table_function
|
||||||
return f"""
|
return f"""
|
||||||
icebergAzure(azure, container = '{cluster.azure_container_name}', storage_account_url = '{cluster.env_variables["AZURITE_STORAGE_ACCOUNT_URL"]}', blob_path = '/iceberg_data/default/{table_name}/', format={format})
|
icebergAzureCluster('cluster_simple', azure, container = '{cluster.azure_container_name}', storage_account_url = '{cluster.env_variables["AZURITE_STORAGE_ACCOUNT_URL"]}', blob_path = '/iceberg_data/default/{table_name}/', format={format})
|
||||||
"""
|
"""
|
||||||
else:
|
else:
|
||||||
return f"""
|
if table_function:
|
||||||
DROP TABLE IF EXISTS {table_name};
|
return f"""
|
||||||
CREATE TABLE {table_name}
|
icebergAzure(azure, container = '{cluster.azure_container_name}', storage_account_url = '{cluster.env_variables["AZURITE_STORAGE_ACCOUNT_URL"]}', blob_path = '/iceberg_data/default/{table_name}/', format={format})
|
||||||
ENGINE=IcebergAzure(azure, container = {cluster.azure_container_name}, storage_account_url = '{cluster.env_variables["AZURITE_STORAGE_ACCOUNT_URL"]}', blob_path = '/iceberg_data/default/{table_name}/', format={format})"""
|
"""
|
||||||
|
else:
|
||||||
|
return f"""
|
||||||
|
DROP TABLE IF EXISTS {table_name};
|
||||||
|
CREATE TABLE {table_name}
|
||||||
|
ENGINE=IcebergAzure(azure, container = {cluster.azure_container_name}, storage_account_url = '{cluster.env_variables["AZURITE_STORAGE_ACCOUNT_URL"]}', blob_path = '/iceberg_data/default/{table_name}/', format={format})"""
|
||||||
|
|
||||||
elif storage_type == "hdfs":
|
elif storage_type == "hdfs":
|
||||||
if table_function:
|
if run_on_cluster:
|
||||||
|
assert table_function
|
||||||
return f"""
|
return f"""
|
||||||
icebergHDFS(hdfs, filename= 'iceberg_data/default/{table_name}/', format={format}, url = 'hdfs://hdfs1:9000/')
|
icebergHDFSCluster('cluster_simple', hdfs, filename= 'iceberg_data/default/{table_name}/', format={format}, url = 'hdfs://hdfs1:9000/')
|
||||||
"""
|
"""
|
||||||
else:
|
else:
|
||||||
return f"""
|
if table_function:
|
||||||
DROP TABLE IF EXISTS {table_name};
|
return f"""
|
||||||
CREATE TABLE {table_name}
|
icebergHDFS(hdfs, filename= 'iceberg_data/default/{table_name}/', format={format}, url = 'hdfs://hdfs1:9000/')
|
||||||
ENGINE=IcebergHDFS(hdfs, filename = 'iceberg_data/default/{table_name}/', format={format}, url = 'hdfs://hdfs1:9000/');"""
|
"""
|
||||||
|
else:
|
||||||
|
return f"""
|
||||||
|
DROP TABLE IF EXISTS {table_name};
|
||||||
|
CREATE TABLE {table_name}
|
||||||
|
ENGINE=IcebergHDFS(hdfs, filename = 'iceberg_data/default/{table_name}/', format={format}, url = 'hdfs://hdfs1:9000/');"""
|
||||||
|
|
||||||
elif storage_type == "local":
|
elif storage_type == "local":
|
||||||
|
assert not run_on_cluster
|
||||||
|
|
||||||
if table_function:
|
if table_function:
|
||||||
return f"""
|
return f"""
|
||||||
icebergLocal(local, path = '/iceberg_data/default/{table_name}/', format={format})
|
icebergLocal(local, path = '/iceberg_data/default/{table_name}/', format={format})
|
||||||
@ -227,6 +273,7 @@ def get_creation_expression(
|
|||||||
DROP TABLE IF EXISTS {table_name};
|
DROP TABLE IF EXISTS {table_name};
|
||||||
CREATE TABLE {table_name}
|
CREATE TABLE {table_name}
|
||||||
ENGINE=IcebergLocal(local, path = '/iceberg_data/default/{table_name}/', format={format});"""
|
ENGINE=IcebergLocal(local, path = '/iceberg_data/default/{table_name}/', format={format});"""
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise Exception(f"Unknown iceberg storage type: {storage_type}")
|
raise Exception(f"Unknown iceberg storage type: {storage_type}")
|
||||||
|
|
||||||
@ -492,6 +539,108 @@ def test_types(started_cluster, format_version, storage_type):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("format_version", ["1", "2"])
|
||||||
|
@pytest.mark.parametrize("storage_type", ["s3", "azure", "hdfs"])
|
||||||
|
def test_cluster_table_function(started_cluster, format_version, storage_type):
|
||||||
|
if is_arm() and storage_type == "hdfs":
|
||||||
|
pytest.skip("Disabled test IcebergHDFS for aarch64")
|
||||||
|
|
||||||
|
instance = started_cluster.instances["node1"]
|
||||||
|
spark = started_cluster.spark_session
|
||||||
|
|
||||||
|
TABLE_NAME = (
|
||||||
|
"test_iceberg_cluster_"
|
||||||
|
+ format_version
|
||||||
|
+ "_"
|
||||||
|
+ storage_type
|
||||||
|
+ "_"
|
||||||
|
+ get_uuid_str()
|
||||||
|
)
|
||||||
|
|
||||||
|
def add_df(mode):
|
||||||
|
write_iceberg_from_df(
|
||||||
|
spark,
|
||||||
|
generate_data(spark, 0, 100),
|
||||||
|
TABLE_NAME,
|
||||||
|
mode=mode,
|
||||||
|
format_version=format_version,
|
||||||
|
)
|
||||||
|
|
||||||
|
files = default_upload_directory(
|
||||||
|
started_cluster,
|
||||||
|
storage_type,
|
||||||
|
f"/iceberg_data/default/{TABLE_NAME}/",
|
||||||
|
f"/iceberg_data/default/{TABLE_NAME}/",
|
||||||
|
)
|
||||||
|
|
||||||
|
logging.info(f"Adding another dataframe. result files: {files}")
|
||||||
|
|
||||||
|
return files
|
||||||
|
|
||||||
|
files = add_df(mode="overwrite")
|
||||||
|
for i in range(1, len(started_cluster.instances)):
|
||||||
|
files = add_df(mode="append")
|
||||||
|
|
||||||
|
logging.info(f"Setup complete. files: {files}")
|
||||||
|
assert len(files) == 5 + 4 * (len(started_cluster.instances) - 1)
|
||||||
|
|
||||||
|
clusters = instance.query(f"SELECT * FROM system.clusters")
|
||||||
|
logging.info(f"Clusters setup: {clusters}")
|
||||||
|
|
||||||
|
# Regular Query only node1
|
||||||
|
table_function_expr = get_creation_expression(
|
||||||
|
storage_type, TABLE_NAME, started_cluster, table_function=True
|
||||||
|
)
|
||||||
|
select_regular = (
|
||||||
|
instance.query(f"SELECT * FROM {table_function_expr}").strip().split()
|
||||||
|
)
|
||||||
|
|
||||||
|
# Cluster Query with node1 as coordinator
|
||||||
|
table_function_expr_cluster = get_creation_expression(
|
||||||
|
storage_type,
|
||||||
|
TABLE_NAME,
|
||||||
|
started_cluster,
|
||||||
|
table_function=True,
|
||||||
|
run_on_cluster=True,
|
||||||
|
)
|
||||||
|
select_cluster = (
|
||||||
|
instance.query(f"SELECT * FROM {table_function_expr_cluster}").strip().split()
|
||||||
|
)
|
||||||
|
|
||||||
|
# Simple size check
|
||||||
|
assert len(select_regular) == 600
|
||||||
|
assert len(select_cluster) == 600
|
||||||
|
|
||||||
|
# Actual check
|
||||||
|
assert select_cluster == select_regular
|
||||||
|
|
||||||
|
# Check query_log
|
||||||
|
for replica in started_cluster.instances.values():
|
||||||
|
replica.query("SYSTEM FLUSH LOGS")
|
||||||
|
|
||||||
|
for node_name, replica in started_cluster.instances.items():
|
||||||
|
cluster_secondary_queries = (
|
||||||
|
replica.query(
|
||||||
|
f"""
|
||||||
|
SELECT query, type, is_initial_query, read_rows, read_bytes FROM system.query_log
|
||||||
|
WHERE
|
||||||
|
type = 'QueryStart' AND
|
||||||
|
positionCaseInsensitive(query, '{storage_type}Cluster') != 0 AND
|
||||||
|
position(query, '{TABLE_NAME}') != 0 AND
|
||||||
|
position(query, 'system.query_log') = 0 AND
|
||||||
|
NOT is_initial_query
|
||||||
|
"""
|
||||||
|
)
|
||||||
|
.strip()
|
||||||
|
.split("\n")
|
||||||
|
)
|
||||||
|
|
||||||
|
logging.info(
|
||||||
|
f"[{node_name}] cluster_secondary_queries: {cluster_secondary_queries}"
|
||||||
|
)
|
||||||
|
assert len(cluster_secondary_queries) == 1
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize("format_version", ["1", "2"])
|
@pytest.mark.parametrize("format_version", ["1", "2"])
|
||||||
@pytest.mark.parametrize("storage_type", ["s3", "azure", "hdfs", "local"])
|
@pytest.mark.parametrize("storage_type", ["s3", "azure", "hdfs", "local"])
|
||||||
def test_delete_files(started_cluster, format_version, storage_type):
|
def test_delete_files(started_cluster, format_version, storage_type):
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
SELECT arrayWithConstant(96142475, ['qMUF']); -- { serverError TOO_LARGE_ARRAY_SIZE }
|
SELECT arrayWithConstant(96142475, ['qMUF']); -- { serverError TOO_LARGE_ARRAY_SIZE }
|
||||||
SELECT arrayWithConstant(100000000, materialize([[[[[[[[[['Hello, world!']]]]]]]]]])); -- { serverError TOO_LARGE_ARRAY_SIZE }
|
SELECT arrayWithConstant(100000000, materialize([[[[[[[[[['Hello, world!']]]]]]]]]])); -- { serverError TOO_LARGE_ARRAY_SIZE }
|
||||||
SELECT length(arrayWithConstant(10000000, materialize([[[[[[[[[['Hello world']]]]]]]]]])));
|
SELECT length(arrayWithConstant(10000000, materialize([[[[[[[[[['Hello world']]]]]]]]]])));
|
||||||
|
|
||||||
|
CREATE TEMPORARY TABLE args (value Array(Int)) ENGINE=Memory AS SELECT [1, 1, 1, 1] as value FROM numbers(1, 100);
|
||||||
|
SELECT length(arrayWithConstant(1000000, value)) FROM args FORMAT NULL;
|
||||||
|
11
tests/queries/0_stateless/03250_ephemeral_comment.sql
Normal file
11
tests/queries/0_stateless/03250_ephemeral_comment.sql
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
drop table if exists test;
|
||||||
|
CREATE TABLE test (
|
||||||
|
`start_s` UInt32 EPHEMERAL COMMENT 'start UNIX time' ,
|
||||||
|
`start_us` UInt16 EPHEMERAL COMMENT 'start microseconds',
|
||||||
|
`finish_s` UInt32 EPHEMERAL COMMENT 'finish UNIX time',
|
||||||
|
`finish_us` UInt16 EPHEMERAL COMMENT 'finish microseconds',
|
||||||
|
`captured` DateTime MATERIALIZED fromUnixTimestamp(start_s),
|
||||||
|
`duration` Decimal32(6) MATERIALIZED finish_s - start_s + (finish_us - start_us)/1000000
|
||||||
|
)
|
||||||
|
ENGINE Null;
|
||||||
|
drop table if exists test;
|
@ -244,7 +244,10 @@ Deduplication
|
|||||||
DefaultTableEngine
|
DefaultTableEngine
|
||||||
DelayedInserts
|
DelayedInserts
|
||||||
DeliveryTag
|
DeliveryTag
|
||||||
|
Deltalake
|
||||||
DeltaLake
|
DeltaLake
|
||||||
|
deltalakeCluster
|
||||||
|
deltaLakeCluster
|
||||||
Denormalize
|
Denormalize
|
||||||
DestroyAggregatesThreads
|
DestroyAggregatesThreads
|
||||||
DestroyAggregatesThreadsActive
|
DestroyAggregatesThreadsActive
|
||||||
@ -377,10 +380,15 @@ Homebrew's
|
|||||||
HorizontalDivide
|
HorizontalDivide
|
||||||
Hostname
|
Hostname
|
||||||
HouseOps
|
HouseOps
|
||||||
|
hudi
|
||||||
Hudi
|
Hudi
|
||||||
|
hudiCluster
|
||||||
|
HudiCluster
|
||||||
HyperLogLog
|
HyperLogLog
|
||||||
Hypot
|
Hypot
|
||||||
IANA
|
IANA
|
||||||
|
icebergCluster
|
||||||
|
IcebergCluster
|
||||||
IDE
|
IDE
|
||||||
IDEs
|
IDEs
|
||||||
IDNA
|
IDNA
|
||||||
|
Loading…
Reference in New Issue
Block a user