diff --git a/.github/workflows/upstream-sql-tests.yml b/.github/workflows/upstream-sql-tests.yml new file mode 100644 index 000000000..3615d18f8 --- /dev/null +++ b/.github/workflows/upstream-sql-tests.yml @@ -0,0 +1,239 @@ +name: Upstream SQL tests + +# Runs a curated subset of the ClickHouse core SQL tests +# (tests/queries/0_stateless) through clickhouse-java, with the `client` +# (client-v2) and the `jdbc` (jdbc-v2) backend of tests/clickhouse-client. +# See tests/clickhouse-client/README.md. + +permissions: + contents: read + +on: + workflow_dispatch: + inputs: + clickhouse_version: + description: "ClickHouse version to try, for example 26.11.1.10 (default: tests/clickhouse-client/clickhouse-version)" + required: false + default: "" + type: string + schedule: + - cron: "0 4 * * *" + push: + branches: + - main + paths: + - "tests/clickhouse-client/**" + - ".github/workflows/upstream-sql-tests.yml" + pull_request: + paths: + - "tests/clickhouse-client/**" + - ".github/workflows/upstream-sql-tests.yml" + +# A new push to a pull request cancels the older run of that pull request. +# Other runs (nightly, manual tries of other versions, pushes) do not cancel +# each other. +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.run_id }} + cancel-in-progress: true + +jobs: + # Builds the shim against the clickhouse-java source of this commit, runs its + # unit and live tests, and gives the jar to the test jobs. + build: + name: Build the shim + runs-on: ubuntu-latest + timeout-minutes: 20 + outputs: + version: ${{ steps.version.outputs.version }} + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install JDK 8 and 17, and Maven + uses: actions/setup-java@v4 + with: + distribution: "temurin" + java-version: | + 8 + 17 + cache: "maven" + + # The same toolchain as in build.yml (see CONTRIBUTING.md). + - name: Setup Toolchain + shell: bash + run: | + mkdir -p "$HOME/.m2" \ + && cat << EOF > "$HOME/.m2/toolchains.xml" + + + + jdk + + 17 + + + ${{ env.JAVA_HOME }} + + + + EOF + + # The server version and the upstream tests are pinned together in + # tests/clickhouse-client/clickhouse-version: the `.reference` files of + # another release do not match the output of the server. A new server + # release changes nothing here until a pull request bumps the pin. The + # `clickhouse_version` input of a manual run tries another version + # without a commit. + - name: Select the ClickHouse version + id: version + env: + INPUT_VERSION: ${{ github.event.inputs.clickhouse_version }} + run: | + version="${INPUT_VERSION:-$(tests/clickhouse-client/scripts/pinned-version.sh)}" + if ! [[ "${version}" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + echo "::error::clickhouse_version must be a full version such as 26.10.4.207 (got: '${version}')" + exit 1 + fi + echo "version=${version}" >> "${GITHUB_OUTPUT}" + + # The stock server configuration. CLICKHOUSE_SKIP_USER_SETUP keeps the + # `default` user of the image's users.xml: network access, access + # management and named-collection control (tests create users, roles + # and named collections). Without it, the image allows the user without + # a password only from localhost in the container. + # + # The server gets the host name of the runner: tests/clickhouse-test + # replaces its own host name with `localhost` in the output of each + # test, and some `.reference` files have `localhost` for hostName(). + - name: Start ClickHouse ${{ steps.version.outputs.version }} + env: + CLICKHOUSE_VERSION: ${{ steps.version.outputs.version }} + run: | + docker run -d --name clickhouse -p 8123:8123 -p 9000:9000 \ + --hostname "$(hostname)" \ + --ulimit nofile=262144:262144 -e CLICKHOUSE_SKIP_USER_SETUP=1 \ + "clickhouse/clickhouse-server:${CLICKHOUSE_VERSION}" + for _ in $(seq 1 60); do + if curl -fsS "http""://localhost:8123/ping" > /dev/null 2>&1; then + exit 0 + fi + sleep 2 + done + docker logs clickhouse + echo "::error::ClickHouse did not start" + exit 1 + + # The checkout also generates the error code table of the shim, so that + # the jar knows the error names of the tests of this version. + - name: Get the upstream tests of ClickHouse ${{ steps.version.outputs.version }} + run: tests/clickhouse-client/scripts/fetch-upstream.sh "${{ steps.version.outputs.version }}" + + # For the pinned version, the generated table must be the committed one. + - name: Check the committed error code table + if: github.event.inputs.clickhouse_version == '' + run: | + file=tests/clickhouse-client/src/main/resources/com/clickhouse/client/cli/error-codes.tsv + if ! git diff --exit-code -- "${file}"; then + echo "::error::${file} does not match the pinned version. Run scripts/fetch-upstream.sh and commit the file." + exit 1 + fi + + - name: Build the shim, with its unit and live tests + env: + CLICKHOUSE_CLIENT_CLI_LIVE: "1" + run: tests/clickhouse-client/scripts/build.sh + + - name: Upload the shim + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + with: + name: clickhouse-client-cli + path: tests/clickhouse-client/target/clickhouse-client-cli-1.0.0.jar + if-no-files-found: error + # A re-run of failed test jobs does not build again. + retention-days: 7 + + upstream-sql-tests: + name: Upstream SQL tests (${{ matrix.backend }}, shard ${{ matrix.shard }}) + needs: build + runs-on: ubuntu-latest + timeout-minutes: 30 + strategy: + fail-fast: false + matrix: + backend: [client, jdbc] + # Round-robin shards of the allowlist, about 1,260 tests each. One + # jdbc shard took about 3.5 minutes at -j 4 with the server and the + # shim on 4 CPUs, so a shard takes a few minutes on a 4-vCPU runner. + # Change SHARD_TOTAL below together with this list. + shard: [1, 2, 3, 4, 5, 6, 7, 8] + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install JDK 17 + uses: actions/setup-java@v4 + with: + distribution: "temurin" + java-version: 17 + + - name: Install Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install Python dependencies of tests/clickhouse-test + run: pip install jinja2 + + # The same server as in the build job. + - name: Start ClickHouse ${{ needs.build.outputs.version }} + env: + CLICKHOUSE_VERSION: ${{ needs.build.outputs.version }} + run: | + docker run -d --name clickhouse -p 8123:8123 -p 9000:9000 \ + --hostname "$(hostname)" \ + --ulimit nofile=262144:262144 -e CLICKHOUSE_SKIP_USER_SETUP=1 \ + "clickhouse/clickhouse-server:${CLICKHOUSE_VERSION}" + for _ in $(seq 1 60); do + if curl -fsS "http""://localhost:8123/ping" > /dev/null 2>&1; then + exit 0 + fi + sleep 2 + done + docker logs clickhouse + echo "::error::ClickHouse did not start" + exit 1 + + - name: Get the upstream tests of ClickHouse ${{ needs.build.outputs.version }} + id: upstream + run: tests/clickhouse-client/scripts/fetch-upstream.sh "${{ needs.build.outputs.version }}" + + - name: Download the shim + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 + with: + name: clickhouse-client-cli + path: tests/clickhouse-client/target + + # No RETRY_FAILED: no known client bug makes random tests fail, so a + # failed test fails the job. + - name: Run upstream SQL tests + env: + CLICKHOUSE_CLIENT_CLI_IMPL: ${{ matrix.backend }} + CLICKHOUSE_CLIENT_CLI_LOG: ${{ github.workspace }}/upstream-run.log + SKIP_BUILD: "1" + SHARD_INDEX: ${{ matrix.shard }} + SHARD_TOTAL: 8 + run: tests/clickhouse-client/scripts/run-upstream-tests.sh -j 4 + + # The runner writes the diff of a failed test to the job log, and the + # output of the test next to it (..stdout and .stderr). + - name: Upload test artifacts + if: failure() + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + with: + name: upstream-sql-tests-${{ steps.upstream.outputs.ref }}-${{ matrix.backend }}-shard-${{ matrix.shard }} + retention-days: 14 + if-no-files-found: ignore + path: | + upstream-run.log + tests/clickhouse-client/.upstream/ClickHouse/tests/queries/**/*.stdout + tests/clickhouse-client/.upstream/ClickHouse/tests/queries/**/*.stderr diff --git a/tests/clickhouse-client/.gitignore b/tests/clickhouse-client/.gitignore new file mode 100644 index 000000000..1fcae5938 --- /dev/null +++ b/tests/clickhouse-client/.gitignore @@ -0,0 +1,5 @@ +# The root .gitignore ignores *.sh; the scripts of the harness are part of it. +!scripts/*.sh +.bin-real-client/ +.upstream/ +.real-client/ diff --git a/tests/clickhouse-client/AGENTS.md b/tests/clickhouse-client/AGENTS.md new file mode 100644 index 000000000..54b820bb5 --- /dev/null +++ b/tests/clickhouse-client/AGENTS.md @@ -0,0 +1,40 @@ +# Instructions for agents: core SQL test harness + +This harness runs the ClickHouse core SQL tests through clickhouse-java, with +the `client` (client-v2) and the `jdbc` (jdbc-v2) backend. +[`README.md`](README.md) tells how it works, how to run it, and how to find +the cause of a failure. + +The goal is to find bugs in clickhouse-java, not to pass more tests. A failed +test is information. Do not hide it. + +## Rules + +1. **Find the cause of a failure before you do anything with the test** + ([steps](README.md#find-the-cause-of-a-failure)). The cause is the client + (client-v2, jdbc-v2, or `clickhouse-data`), the shim (the program in this + directory), or the environment (the test cannot pass through any client on + this server, see [Environment causes](README.md#environment-causes)). +2. **Fix a client bug in the client**, in a pull request of its own with a + test in the module. Do not fix it in a pull request that changes the + harness. +3. **Fix a shim bug in the shim**: make it copy `clickhouse-client` more + exactly. Do not change the shim to hide a client bug (another read method, + a type-name workaround, a correction of a wrong value). `client` reads each + value with `ClickHouseBinaryFormatReader.readValue(i)`, `jdbc` with + `ResultSet.getObject(i)`. +4. **A test that fails because of a client bug or a shim gap stays visible** + in [`allowlist.txt`](allowlist.txt), as a known failure in the group of its + cause. Do not delete it. See [The allowlist](README.md#the-allowlist) for + the format. +5. **Only an environment cause removes a test** from the allowlist, or gives + it `# only=: ` when it fails on one backend only. Write + the reason in the commit message. +6. **Add only tests that pass reliably** + ([Grow the allowlist](README.md#grow-the-allowlist)). +7. **Bump the server version in a pull request of its own** + ([Bump the server version](README.md#bump-the-server-version)). +8. **Keep the documents in sync.** When you change the behavior of the shim + (flags, statement handling, output formats, settings, environment + variables), update `README.md`, the usage text of the shim + (`CliOptions.usage`) and the workflow in the same change. diff --git a/tests/clickhouse-client/CLAUDE.md b/tests/clickhouse-client/CLAUDE.md new file mode 100644 index 000000000..43c994c2d --- /dev/null +++ b/tests/clickhouse-client/CLAUDE.md @@ -0,0 +1 @@ +@AGENTS.md diff --git a/tests/clickhouse-client/README.md b/tests/clickhouse-client/README.md index 105f8880b..9b12f786b 100644 --- a/tests/clickhouse-client/README.md +++ b/tests/clickhouse-client/README.md @@ -1,43 +1,476 @@ -# clickhouse-client-cli +# clickhouse-client-cli: the core SQL tests through clickhouse-java -A simple CLI tool that mimics `clickhouse-client` for executing SQL queries against a ClickHouse server. -Used to test with ClickHouse test framework designed for `clickhouse-client` (https://github.com/ClickHouse/ClickHouse/blob/master/tests/clickhouse-test). -Note: do not clone ClickHouse repo - it takes a lot of time. Download zip instead. +This harness runs the ClickHouse core SQL tests +([`tests/queries/0_stateless`](https://github.com/ClickHouse/ClickHouse/tree/master/tests/queries/0_stateless)) +through clickhouse-java. -## Build Java Application +The upstream test runner +([`tests/clickhouse-test`](https://github.com/ClickHouse/ClickHouse/blob/master/tests/clickhouse-test)) +runs each `.sql` test through `clickhouse-client` and compares the output with +the `.reference` file of the test. This harness is a small Java program (the +shim) that imitates `clickhouse-client` well enough for the runner to drive it +without changes: the same flags, the same stdin and `--query` behavior, and the +`extract-from-config` shortcut. + +The shim sends every statement through clickhouse-java, built from the source +of this repository. It reads each value with the normal type mapping of the +client and writes the values as `TabSeparated` text itself. Thus a test passes +only when the client decodes every value correctly. The environment variable +`CLICKHOUSE_CLIENT_CLI_IMPL` selects the backend: + +| Backend | Client | Values from | Column types from | +|---|---|---|---| +| `client` (default) | client-v2 | `ClickHouseBinaryFormatReader.readValue(i)` | `ClickHouseColumn.getOriginalTypeName()` | +| `jdbc` | jdbc-v2, through `DriverManager` | `ResultSet.getObject(i)` | `ResultSetMetaData.getColumnTypeName(i)` | +| `text` | client-v2 | the text output of the server, copied as it is | — | + +`text` checks only the transport, not the decoding. CI does not run it. + +clickhouse-go and clickhouse-js have harnesses with the same design +(`tests/clickhouse-test-runner` in each repository). + +## Run the tests locally + +You need JDK 17 and Maven with a toolchain for JDK 17 (see +[`CONTRIBUTING.md`](../../CONTRIBUTING.md)), Python 3 with `jinja2`, Docker, +bash, git and curl. The commands run from the root of the repository. + +1. Start the pinned ClickHouse server. The version is in + [`clickhouse-version`](clickhouse-version). The container name `clickhouse` + is the default of `run-with-real-client.sh`. CI starts the same server: + + ```bash + docker run -d --name clickhouse -p 8123:8123 -p 9000:9000 --hostname "$(hostname)" \ + --ulimit nofile=262144:262144 -e CLICKHOUSE_SKIP_USER_SETUP=1 \ + "clickhouse/clickhouse-server:$(tests/clickhouse-client/scripts/pinned-version.sh)" + ``` + + `CLICKHOUSE_SKIP_USER_SETUP=1` keeps the `default` user of the image + (network access, and the access management that tests need). The host + name of the runner is necessary because `tests/clickhouse-test` replaces + its own host name with `localhost` in the output of each test. For a fresh + server, run `docker rm -fv clickhouse` and start it again. + +2. Get the upstream tests of the same version: + + ```bash + tests/clickhouse-client/scripts/fetch-upstream.sh + ``` + + The script checks out the release tag of the pinned version (for example + `v26.10.4.207-stable`) into `tests/clickhouse-client/.upstream/ClickHouse`, + sparse and shallow. The `.reference` files of that tag were made by the + same server build. The script also generates the error code table of the + shim (`src/main/resources/com/clickhouse/client/cli/error-codes.tsv`) from + the same checkout. To try another version, give it as the argument + (`fetch-upstream.sh 26.11.1.10`), and start the server of that version. + That also changes `error-codes.tsv`: restore the file after the try + (`git checkout -- `), unless you bump the version. + + The run script stops when the server and the tests are of different + versions, because then the `.reference` files do not match. Set + `ALLOW_VERSION_MISMATCH=1` to run anyway. + +3. Run the allowlisted tests, one backend after the other: + + ```bash + pip install jinja2 + tests/clickhouse-client/scripts/run-upstream-tests.sh -j 4 + CLICKHOUSE_CLIENT_CLI_IMPL=jdbc SKIP_BUILD=1 tests/clickhouse-client/scripts/run-upstream-tests.sh -j 4 + ``` + +The run script first builds the shim with `scripts/build.sh`: it installs +`clickhouse-jdbc` and the modules that it needs (`jdbc-v2`, `client-v2`, +`clickhouse-data`, ...) from the current source into the local Maven +repository, and packages the shim against exactly that version +(`target/clickhouse-client-cli-1.0.0.jar`). `SKIP_BUILD=1` uses the jar that is +already there. Then the script makes a class data sharing archive for the +backend, puts [`bin/`](bin) first in `PATH` for the runner only, and starts +`tests/clickhouse-test` with +`--no-stateful --no-random-settings --no-random-merge-tree-settings`. Other +arguments go to the runner after these. For example, to run one test that is +not in the allowlist: ```bash -cd tests/clickhouse-client -mvn package -DskipTests +UPSTREAM_TEST_LIST=<(echo 00001_select_1) SKIP_BUILD=1 tests/clickhouse-client/scripts/run-upstream-tests.sh ``` -This produces an executable fat JAR at `target/clickhouse-client-cli-1.0.0.jar`. +The runner writes the diff of a failed test to its own output, and the +output of the test next to the test, in +`.upstream/ClickHouse/tests/queries/0_stateless/..stdout` and +`.stderr` (without `.` when the test does not run in parallel). -## Wrapper executable +To run one statement through the shim, after a build: -A wrapper script named `clickhouse-client` is provided in `bin/` directory. It is a simple shell script that calls -java application. It is required because `clickhouse-test` script calls `clickhouse-client` binary found in `PATH` environment variable. -It is recommended to set `PATH` locally in terminal session to not override real `clickhouse-client`. +```bash +tests/clickhouse-client/bin/clickhouse-client --query "SELECT 1" +CLICKHOUSE_CLIENT_CLI_IMPL=jdbc tests/clickhouse-client/bin/clickhouse-client --query "SELECT 1" +``` + +The unit tests of the shim need no server. They run in each +`scripts/build.sh` run (the run script builds with `-DskipTests`). The live +tests compare the output of the shim with the server's own `TabSeparated` +output for many expressions, on both backends, and need the server of step 1. +After a first build, `SKIP_CLIENT_INSTALL=1` uses the clickhouse-java modules +that the build installed: + +```bash +CLICKHOUSE_CLIENT_CLI_LIVE=1 SKIP_CLIENT_INSTALL=1 tests/clickhouse-client/scripts/build.sh +``` + +### Environment variables + +| Variable | Default | Description | +|---|---|---| +| `CLICKHOUSE_CLIENT_CLI_IMPL` | `client` | The backend: `client`, `jdbc` or `text`. | +| `CLICKHOUSE_CLIENT_CLI_LOG` | (none) | A file. Each invocation of the shim adds its arguments (the `--password` value hidden), statements and errors to it. | +| `UPSTREAM_CLICKHOUSE_DIR` | `.upstream/ClickHouse` | The checkout of `ClickHouse/ClickHouse`. | +| `UPSTREAM_REPO_URL` | `ClickHouse/ClickHouse` on GitHub | The repository that `fetch-upstream.sh` checks out. | +| `UPSTREAM_TEST_LIST` | `allowlist.txt` | The file with the tests to run. | +| `SHARD_INDEX`, `SHARD_TOTAL` | `1`, `1` | Run only shard `SHARD_INDEX` of `SHARD_TOTAL` round-robin shards of the list. | +| `KNOWN_FAILURES` | (none) | Run the known failures of these groups (comma-separated IDs, or `all`) instead of the allowlist. See [The allowlist](#the-allowlist). | +| `RETRY_FAILED` | `0` | Run the failed tests again, at most this number of times. See [CI](#ci). | +| `ALLOW_VERSION_MISMATCH` | `0` | `1`: run also when the server and the upstream tests are of different versions. | +| `SKIP_BUILD` | `0` | `1`: use the jar in `target/`, do not build. | +| `SKIP_CLIENT_INSTALL` | `0` | `1`: `build.sh` packages the shim against the clickhouse-java modules that are already in the local Maven repository. | +| `CLICKHOUSE_HOST` | `localhost` | The server for the run script and the runner. | +| `CLICKHOUSE_PORT_TCP`, `CLICKHOUSE_PORT_HTTP` | `9000`, `8123` | The ports of the server. When `CLICKHOUSE_PORT_TCP` is set, the runner gives `--port=$CLICKHOUSE_PORT_TCP`; the shim uses `CLICKHOUSE_PORT_HTTP` for it, and also when there is no `--port`. | +| `CLICKHOUSE_CLIENT_CLI_CDS` | `target/clickhouse-client-cli-.jsa` | The class data sharing archive of the shim JVM. An empty value disables it. | +| `CLICKHOUSE_CLIENT_CLI_JAVA_OPTS` | (none) | More options for the shim JVM (a later `-Xmx` wins over the default `-Xmx384m`). | +| `CLICKHOUSE_CONTAINER` | `clickhouse` | The server container of `run-with-real-client.sh`. | +| `CLICKHOUSE_CLIENT_CLI_LIVE`, `CLICKHOUSE_CLIENT_CLI_LIVE_HOST` | (none), `localhost` | `1`: the build also runs the live tests, against the server on this host (HTTP port 8123). | -## Environment variables +## The allowlist -| Variable | Description | +[`allowlist.txt`](allowlist.txt) lists the tests that pass reliably, one test +name (the file name without `.sql` or `.sql.j2`) per line. `#` starts a +comment. The script gives the runner anchored regular expressions, so each +name selects exactly one test. (The runner itself matches each name as a +substring, so `00396_uuid` would also select `00396_uuid_v7`.) + +The file has these kinds of lines: + +| Line | Meaning | |---|---| -| `CLICKHOUSE_CLIENT_CLI_IMPL` | Backend implementation to use: `client` (default, uses client-v2 API) or `jdbc` (uses ClickHouse JDBC driver) | -| `CLICKHOUSE_CLIENT_CLI_LOG` | Path to log file for troubleshooting | +| `00001_select_1` | The test runs on both backends. | +| `00571_... # only=jdbc: ` | The test runs on the `jdbc` backend only, because it cannot pass on the other backend for an environment cause. | +| `# 01601_accurate_cast # [type-name-nullable]` | A **known failure** on both backends: the test does not run, because of a bug in clickhouse-java or a gap in the shim. The ID in brackets names the group. | +| `05210_... # known=jdbc: [jdbc-use-database]` | A known failure on the `jdbc` backend only. The test runs on `client`. | +| `02457_... # known=client: [type-empty-tuple] # known=jdbc: [jdbc-interval-getobject]` | A known failure on both backends, with a different cause on each. The test does not run. | + +The known failures are at the end of the file, in one section per group. The +header of a group describes the bug, gives a small reproduction, names the +backends, gives the number of tests per backend, and has an `Issue:` line. +When an issue is filed for a group, put its link on that line. Make a new +group when no group fits, and mark a shim group `shim:` in its header. A +line with a group per backend is in the section of its first group; the +header of the other group names it. The comment at the start of the file gives +the counts. Update them when you change the list: the run script prints +`Selected test(s)` for each backend. + +To run the known failures of one or more groups, for example to check a fix: + +```bash +KNOWN_FAILURES=type-empty-tuple tests/clickhouse-client/scripts/run-upstream-tests.sh +KNOWN_FAILURES=all CLICKHOUSE_CLIENT_CLI_IMPL=jdbc tests/clickhouse-client/scripts/run-upstream-tests.sh +``` -## Examples +`KNOWN_FAILURES` selects only the known failures of the backend of the run. +When a fix makes the tests of a group pass, remove the `# ` at the start and +the `# []` at the end of their lines (or the `# known=: []` +part). When all tests of a group pass, remove the group header. -Run tests using the default client-v2 backend: +### Grow the allowlist -```shell -cd ClickHouse-master -CLICKHOUSE_CLIENT_CLI_LOG=./test-run.log PATH="$PATH:/home/someuser/clickhouse-java/tests/clickhouse-client/bin/" tests/clickhouse-test 01428_hash_set_nan_key +1. Run the candidate tests through the harness on **both** backends, one + after the other, on a fresh server. To try all `.sql` tests: + + ```bash + ls tests/clickhouse-client/.upstream/ClickHouse/tests/queries/0_stateless \ + | sed -nE 's/\.sql(\.j2)?$//p' | sort -u > /tmp/candidates.txt + for b in client jdbc; do + CLICKHOUSE_CLIENT_CLI_IMPL=$b UPSTREAM_TEST_LIST=/tmp/candidates.txt SKIP_BUILD=1 \ + tests/clickhouse-client/scripts/run-upstream-tests.sh -j 6 --no-long --timeout 120 \ + --max-failures-chain 1000000 > /tmp/run-$b.log 2>&1 + done + ``` + + A full run takes about 25 minutes per backend at `-j 6`. Give the server at + least 8 GiB of memory: with 4 GiB, the kernel stopped it after about 12,600 + tests. Do not run two sweeps on one server at the same time: the memory + pressure causes `MEMORY_LIMIT_EXCEEDED` failures that are not real. + `--max-failures-chain` turns off a limit of the runner: by default it stops + after 20 failures in a row, which a list of failing tests reaches at once. + +2. Compare the backends: + + ```bash + ok() { sed -nE 's/^.*\] ([^ :]+): +\[ OK \].*/\1/p' "$1" | sort -u; } + comm -12 <(ok /tmp/run-client.log) <(ok /tmp/run-jdbc.log) # OK on both backends + comm -23 <(ok /tmp/run-client.log) <(ok /tmp/run-jdbc.log) # OK on client only + comm -13 <(ok /tmp/run-client.log) <(ok /tmp/run-jdbc.log) # OK on jdbc only + ``` + + A test that passes on both backends is a candidate. For a test that + passes on one backend only, find the cause of the failure on the other + one (see [Find the cause of a failure](#find-the-cause-of-a-failure)): a + client bug or a shim gap gives a `known=` line, an environment + cause an `only=` line. + +3. Run the new tests again, three times, with a higher `-j` than CI (CI uses + `-j 4`), each time on a fresh server. Tests change the state of the server + (row policies, settings profiles, users): a test that passes only after + other tests ran must not go in. Find the cause of each failure before you + remove a test. + +4. Run the full list for the checks, not only the new tests: a test that + passes alone can fail in a full run (see + [Environment causes](#environment-causes)). + +**Rule:** add only tests that pass reliably: on both backends, or on one +backend with an `only=` reason or a `known=` group for the other. Before you +remove a test or decide not to add it, find out whether it fails because of a +bug in clickhouse-java. The harness exists to find those bugs. When an +allowlisted test starts to fail intermittently, find the cause first. Remove +it only when the cause is in the environment or in the test itself, and write +the reason in the commit message. + +To compare with the real `clickhouse-client`, run the same tests through it, +in the server container: + +```bash +UPSTREAM_TEST_LIST=<(echo 01601_accurate_cast) tests/clickhouse-client/scripts/run-with-real-client.sh ``` -Run tests using the JDBC backend: +A test that passes there and fails through clickhouse-java shows a bug in +clickhouse-java or in the shim. + +## Find the cause of a failure + +A test fails because of the client (client-v2, jdbc-v2, or `clickhouse-data`, +which they use), the shim, or the environment. [`AGENTS.md`](AGENTS.md) gives +the rules for each cause. Do these steps in this order. Build the shim once +(`scripts/build.sh`); the commands below use `SKIP_BUILD=1`. + +1. **Run the test on both backends:** + + ```bash + UPSTREAM_TEST_LIST=<(echo ) SKIP_BUILD=1 tests/clickhouse-client/scripts/run-upstream-tests.sh + UPSTREAM_TEST_LIST=<(echo ) SKIP_BUILD=1 CLICKHOUSE_CLIENT_CLI_IMPL=jdbc tests/clickhouse-client/scripts/run-upstream-tests.sh + ``` + + Both backends use HTTP, so a test that passes on one backend and fails + on the other points to the client (client-v2 or jdbc-v2), unless the + cause is in the list below. +2. **Run the test through the real `clickhouse-client`** in the server + container, on the same server: + + ```bash + UPSTREAM_TEST_LIST=<(echo ) tests/clickhouse-client/scripts/run-with-real-client.sh + ``` + + If it also fails here, the cause is the environment. If it passes here, + the cause is the client or the shim. +3. **Find the statement that fails.** Set `CLICKHOUSE_CLIENT_CLI_LOG` to a + file; the log shows each statement and the error. Read the diff in the + output of the runner, and the `.stdout` and `.stderr` files next to the + test. +4. **Compare the shim with the server on that one statement.** Run it + through the shim (`tests/clickhouse-client/bin/clickhouse-client --query ""`, + on both backends) and through the real client + (`docker exec clickhouse clickhouse-client --query ""`). Then make the + statement smaller until it is as small as possible. +5. **Decide between the client and the shim with a small Java program** that + uses only the public API: client-v2 `Client.query` and + `ClickHouseBinaryFormatReader.readValue` (or `getString`, `getLong`, ...), + jdbc-v2 `ResultSet.getObject`. A TestNG test in the module is a good + form: it can become the test of the fix (see "Testing expectations" in the + root [`AGENTS.md`](../../AGENTS.md)). If the program also gives a wrong + value or an error, the bug is in the client. If the program gives the + correct value, the bug is in the shim. + +### Environment causes + +A test cannot pass through any client on the CI server when it needs one of +these: + +- A cluster, shards or replicas (`CLUSTER_DOESNT_EXIST`, `test_shard_localhost`). +- ZooKeeper or Keeper (`NO_ZOOKEEPER`, `Replicated*` engines, `KeeperMap`). +- External services: S3, Azure, HDFS, Kafka, MySQL, PostgreSQL, MongoDB, URL + sources. +- Server configuration of the upstream CI: named collections, dictionaries, + storage policies, disks, users and grants, macros, transactions + (`NAMED_COLLECTION_DOESNT_EXIST`, `NO_ELEMENTS_IN_CONFIG`, `UNKNOWN_POLICY`, + `UNKNOWN_DISK`). +- Features that the server build or platform does not have + (`SUPPORT_IS_DISABLED`). +- Stateful datasets (`--no-stateful`) or long tests (`--no-long`). +- Behavior of the HTTP interface itself. Both backends use HTTP. The server + sends no `WITH TOTALS` and no `extremes` rows in the binary output over + HTTP, and an HTTP request fails when the current database of the session + was dropped. +- Features of `clickhouse-client` itself that are not part of a driver: + `INTO OUTFILE`, `FROM INFILE`, client-side parsing of `INSERT` data, and + client-only settings. +- The tz database. The JVM and ClickHouse can give different historical + offsets for the same zone. +- Tests that conflict with other tests of the set: a fixed table UUID, or + server state that a test leaves behind (failpoints that a failed test did + not disable, row policies, databases). A failure message with "Injected + failure" comes from a failpoint of another test. +- Server results that depend on the load of the server: the pipeline shape + of `EXPLAIN PIPELINE` or `EXPLAIN ANALYZE` (the number of streams, read in + order or not), block sizes, and the total memory of the server + (`MEMORY_LIMIT_EXCEEDED` with "(total)"). Such a test passes alone on a + fresh server and fails in a full run, also through the real + `clickhouse-client`. The shim only sends the SQL text, so the shim and the + client cannot change these results. +- Memory limits of the server, when the test also fails through the real + `clickhouse-client`. + +These are **not** environment causes. Find the bug: + +- A value that is different from the server's value. +- A decode error or a client exception (`ClientException`, `SQLException` + from `getObject`, "Failed to read value"). +- A type name that the client cannot parse or gives wrong. +- A failure on one backend only, when the cause is not in the list above. + +## How the shim imitates clickhouse-client + +The shim sends nothing that `clickhouse-client` does not send, because some +tests read their own queries from `system.query_log`. + +- **Statements.** The shim splits the input into statements as + `clickhouse-client` does: at a top-level `;`, with the same-line trailing + comment kept with its statement. It sends each statement with its `;`. The + inline data of `INSERT ... FORMAT ` (other than `Values`) ends at an + empty line, and goes to the server with its statement. The `-- Tags:` + header is not part of a statement. Every statement runs, with or without + `--multiquery`. +- **Test hints.** `-- { serverError X }`, `-- { clientError X }` and + `-- { error X }` (codes or names) make the error the expected result. An + error hint in a leading comment is ignored, as upstream. Through clickhouse-java the + server finds all errors, so a server error can satisfy a `clientError` + hint. `-- { echo }`, `-- { echoOn }` and `-- { echoOff }` print the + statements, but not a statement with a syntax error (`clickhouse-client` + parses before it echoes). A `-- { retry ... }` hint stops the shim with an + error. +- **Sessions.** `SET`, `USE` and temporary tables last for the whole + invocation. Both backends use HTTP, with one `session_id` for all requests + of an invocation. The `client` backend sends the current database with + each query (`QuerySettings.setDatabase`); the shim reads the database of a + `USE` statement. The `jdbc` backend leaves `USE` to the driver. +- **Statement types.** Each statement runs with `Client.query` (`client`) or + `Statement.execute` (`jdbc`); a result set is written as text. After + `SET dialect` to another language (KQL, PRQL, ...), the shim removes the + trailing `;` of a statement, because the server reads the HTTP request as + one query. +- **Output formats.** The client reads results in a binary format + (`RowBinaryWithNamesAndTypes`; the server prefers the format header of the + request to a `FORMAT` clause), and the shim writes them itself in the + `TabSeparated` family (also `TSVRaw` and `...WithNames[AndTypes]`) or + `Null`. A statement with any other output format fails + (`[shim-output-format]` in the allowlist). With + `ignore_format_null_for_explain` (on by default), `EXPLAIN ... FORMAT Null` + prints the plan, as the server does. +- **Rendering.** The renderer is type-directed: it uses the column type of + the result metadata, and writes each value as the server does in + `TabSeparated`: escaped strings and `\N` at the top level, quoted strings + and `NULL` in `Array`, `Tuple` and `Map`, the shortest float text, decimals + without trailing zeros, `DateTime64(P)` with P digits, `Time` over 24 hours, + the server's IPv6 forms, and the map order of the server. `WITH TOTALS` and + `extremes` rows are not in the binary output over HTTP. +- **Settings.** Of the settings on the command line, only `log_comment`, + `max_insert_threads`, `max_threads`, `send_logs_level`, `async_insert` and + `enable_parallel_replicas` go to the server, with each query, as in + `clickhouse-client`. (The runner sets the last two to 0 for the tests with + the tags `no-async-insert` and `no-parallel-replicas`.) The `client` backend + sends them as server settings of each query; the `jdbc` backend as + connection properties (`clickhouse_setting_`). A `SET` of the same + setting in the test replaces the command-line value. `--param_=` + gives a query parameter. +- **Ports.** When `CLICKHOUSE_PORT_TCP` is set, the runner gives that native + port (`--port=$CLICKHOUSE_PORT_TCP`). The shim uses `CLICKHOUSE_PORT_HTTP` + instead, and also when there is no `--port` (with `--secure`, + `CLICKHOUSE_PORT_HTTPS` for `CLICKHOUSE_PORT_TCP_SECURE`). Any other port is + used as given. +- **`extract-from-config`.** [`bin/clickhouse`](bin/clickhouse) answers + `clickhouse extract-from-config --key listen_host` with `127.0.0.1`, without + a JVM. Other keys give no output. +- **Errors.** An unexpected error stops the shim. It writes the error with its + code and name to stderr (`Code: N. DB::Exception: ... (NAME)`), and the exit + code is the error code modulo 256. The shim writes nothing else to stderr: + the runner fails a `.sql` test that writes to stderr. The client logs + through `slf4j-nop`, and the JVM log output is off. +- **Error names.** `error-codes.tsv` maps the error names of test hints to + codes. [`scripts/fetch-upstream.sh`](scripts/fetch-upstream.sh) generates it + from `src/Common/ErrorCodes.cpp` of the upstream checkout, so it always + matches the tests. Commit the file when it changes. +- **JVM start.** The runner starts the shim once per test, so the JVM must + start fast: [`bin/clickhouse`](bin/clickhouse) runs the fat jar with C1 + only, the serial collector, a small heap (`-Xmx384m`), and the class data + sharing archive that the run script makes. + +## CI + +[`upstream-sql-tests.yml`](../../.github/workflows/upstream-sql-tests.yml) +runs the allowlist nightly, manually, and on pushes and pull requests that +change this directory or the workflow. + +- The `build` job builds the shim against the source of the commit, runs its + unit and live tests on the pinned server, and gives the jar to the test + jobs. +- The test jobs are `{backend: client, jdbc} × {shard: 1..8}`, each with its + own fresh server, at `-j 4`. A shard has about 1,260 tests, and takes about + 3.5 minutes on 4 CPUs (measured with the server and the shim on 4 CPUs of a + development host). If a shard takes + much more than a few minutes, increase the number of shards: change the + `shard` list and `SHARD_TOTAL` together. +- CI does not set `RETRY_FAILED`: no known client bug makes random tests fail, + so a failed test fails the job. The script also turns off the runner's own + retries (`--dont_retry_failures`). If such a bug appears, set `RETRY_FAILED` + in the workflow and name the group of the bug in the comment there. A test + that passes on a retry is then a warning; a test that fails on every + attempt fails the job. Remove the retry when the bug is fixed. Do not use + `RETRY_FAILED` when you grow or check the allowlist: a test that needs a + retry is not reliable. +- On a failure, the job uploads the `.stdout` and `.stderr` files of the + failed tests and the log of the shim (`upstream-run.log`). The diffs are in + the job log. +- The server version and the upstream tests are pinned together in + [`clickhouse-version`](clickhouse-version). A new ClickHouse release + changes nothing in CI, so a pull request never fails because of a release + that it does not touch. A bump is a pull request of its own; see + [Bump the server version](#bump-the-server-version). +- The `clickhouse_version` input of a manual run tries another version + without a commit, for example before a bump. +- When an allowlisted test is not in the checkout (upstream renamed or + removed it), the run shows a warning with the names. + +## Bump the server version + +The server version and the upstream tests are pinned together in +[`clickhouse-version`](clickhouse-version). Bump the pin in a pull request of +its own, and make that pull request pass before it merges: -```shell -cd ClickHouse-master -CLICKHOUSE_CLIENT_CLI_IMPL=jdbc CLICKHOUSE_CLIENT_CLI_LOG=./test-run.log PATH="$PATH:/home/someuser/clickhouse-java/tests/clickhouse-client/bin/" tests/clickhouse-test 01428_hash_set_nan_key -``` \ No newline at end of file +1. Select the version: a full version with a server image tag and a + `v-stable` tag upstream, normally the version of the `latest` + image. +2. Try it: start a manual run with the `clickhouse_version` input, or run + the allowlist locally on that version (`fetch-upstream.sh `, and + a fresh server of that version). +3. For each allowlisted test that now fails, find the cause (see + [Find the cause of a failure](#find-the-cause-of-a-failure)). A release + changes the tests and the server output, so many tests can fail at the + same time with no change in the client. To see whether the client is the + cause, run the same test through the real client + (`run-with-real-client.sh`) on the same server. +4. Run the known failures on both backends (`KNOWN_FAILURES=all`). Enable the + tests that pass now. +5. Fix the names of allowlisted tests that the run reports as not in the + checkout (upstream renamed or removed them). +6. Optionally, try the new tests of the release (see + [Grow the allowlist](#grow-the-allowlist)). +7. Change `clickhouse-version`, run `fetch-upstream.sh`, and commit + `src/main/resources/com/clickhouse/client/cli/error-codes.tsv` with it. diff --git a/tests/clickhouse-client/allowlist.txt b/tests/clickhouse-client/allowlist.txt new file mode 100644 index 000000000..6d9b072f8 --- /dev/null +++ b/tests/clickhouse-client/allowlist.txt @@ -0,0 +1,11189 @@ +# Upstream ClickHouse SQL tests (tests/queries/0_stateless) that run through +# clickhouse-java. See README.md for the format and AGENTS.md for the rules. +# +# runs on both backends (client, jdbc) +# # only=: runs on that backend only +# # known=: [] known failure of group on that +# backend; runs on the other backend +# # # [] known failure of group on both +# backends; does not run +# +# The known failures are at the end of this file, one section per group. +# +# Running: client 10163, jdbc 10053 (10052 on both backends, +# 111 on client only (known=jdbc), 1 only=jdbc). +# Known failures: 773 tests (client 662, jdbc 773) +# in 31 groups (25 client, 6 shim). + +00001_select_1 +00002_system_numbers +00003_reinterpret_as_string +00007_array +00008_array_join +00009_array_join_subquery +00010_big_array_join +00011_array_join_alias +00012_array_join_alias_2 +00013_create_table_with_arrays +00014_select_from_table_with_nested +00018_distinct_in_subquery +00020_sorting_arrays +00021_sorting_arrays +00022_func_higher_order_and_constants +00023_agg_select_agg_subquery +00024_unused_array_join_in_subquery +00025_implicitly_used_subquery_column +00027_argMinMax +00027_distinct_and_order_by +00027_simple_argMinArray +00030_alter_table +00031_parser_number +00032_fixed_string_to_string +00033_fixed_string_to_string +00034_fixed_string_to_number +00035_function_array_return_type +00036_array_element +00040_array_enumerate_uniq +00041_aggregation_remap +00041_big_array_join +00042_set +00043_summing_empty_part +00044_sorting_by_string_descending +00045_sorting_by_fixed_string_descending +00046_stored_aggregates_simple +00047_stored_aggregates_complex +00048_a_stored_aggregates_merge +00048_b_stored_aggregates_merge +00049_any_left_join +00050_any_left_join +00051_any_inner_join +00052_all_left_join +00053_all_inner_join +00054_join_string +00055_join_two_numbers +00056_join_number_string +00057_join_aliases +00060_date_lut +00061_merge_tree_alter +00063_check_query +00064_negate_bug +00066_group_by_in +00067_replicate_segfault +00068_empty_tiny_log +00069_date_arithmetic +00071_insert_fewer_columns +00072_in_types +00073_merge_sorting_empty_array_joined +00076_ip_coding_functions +00077_set_keys_fit_128_bits_many_blocks +00078_string_concat +00079_defaulted_columns +00081_int_div_or_zero +00082_append_trailing_char_if_absent +00084_summing_merge_tree +00086_concat_nary_const_with_nonconst_segfault +00087_distinct_of_empty_arrays +00087_math_functions +00088_distinct_of_arrays_of_strings +00089_group_by_arrays_of_fixed +00096_aggregation_min_if +00098_1_union_all +00098_2_union_all +00098_3_union_all +00098_4_union_all +00098_5_union_all +00098_6_union_all +00098_7_union_all +00098_8_union_all +00098_9_union_all +00098_a_union_all +00098_b_union_all +00098_c_union_all +00098_d_union_all +00098_e_union_all +00098_f_union_all +00098_g_union_all +00098_h_union_all +00098_j_union_all +00098_l_union_all +00099_join_many_blocks_segfault +00102_insert_into_temporary_table +00103_ipv4_num_to_string_class_c +00110_external_sort +00114_float_type_result_of_division +00116_storage_set +00117_parsing_arrays +00120_join_and_group_by +00122_join_with_subquery_with_subquery +00125_array_element_of_array_of_tuple +00126_buffer +00127_group_by_concat +00128_group_by_number_and_fixed_string +00129_quantile_timing_weighted +00131_set_hashed +00132_sets +00134_aggregation_by_fixed_string_of_size_1_2_4_8 +00135_duplicate_group_by_keys_segfault +00136_duplicate_order_by_elems +00137_in_constants +00138_table_aliases +00140_parse_unix_timestamp_as_datetime +00140_prewhere_column_order +00141_parse_timestamp_as_datetime +00142_parse_timestamp_as_datetime +00143_number_classification_functions +00144_empty_regexp +00145_empty_likes +00146_summing_merge_tree_nested_map +00147_alter_nested_default +00148_summing_merge_tree_aggregate_function +00148_summing_merge_tree_nested_map_multiple_values +00149_function_url_hash +00151_tuple_with_array +00153_transform +00156_array_map_to_constant +00156_max_execution_speed_sample_merge +00157_aliases_and_lambda_formal_parameters +00158_buffer_and_nonexistent_table +00159_whitespace_in_columns_list +00160_merge_and_index_in_in +00161_rounding_functions +00164_not_chain +00165_transform_non_const_default +00166_functions_of_aggregation_states +00167_settings_inside_query +00168_buffer_defaults +00169_join_constant_keys +00170_lower_upper_utf8 +00172_constexprs_in_set +00173_compare_date_time_with_constant_string +00174_compare_date_time_with_constant_string_in_in +00175_if_num_arrays +00176_if_string_arrays +00178_function_replicate +00178_query_datetime64_index +00179_lambdas_with_common_expressions_and_filter +00180_attach_materialized_view +00181_aggregate_functions_statistics +00181_aggregate_functions_statistics_stable +00182_functions_higher_order_and_consts +00185_array_literals +00187_like_regexp_prefix +00188_constants_as_arguments_of_aggregate_functions +00190_non_constant_array_of_constant_data +00191_aggregating_merge_tree_and_final +00192_least_greatest +00193_parallel_replicas +00194_identity +00196_float32_formatting +00197_if_fixed_string +00198_group_by_empty_arrays +00199_ternary_operator_type_check +00201_array_uniq +00202_cross_join +00203_full_join +00204_extract_url_parameter +00205_emptyscalar_subquery_type_mismatch_bug +00206_empty_array_to_single +00207_left_array_join +00208_agg_state_merge +00209_insert_select_extremes +00214_primary_key_order +00216_bit_test_function_family +00218_like_regexp_newline +00219_full_right_join_column_order +00222_sequence_aggregate_function_family +00225_join_duplicate_columns +00227_quantiles_timing_arbitrary_order +00229_prewhere_column_missing +00230_array_functions_has_count_equal_index_of_non_const_second_arg +00232_format_readable_decimal_size +00232_format_readable_size +00233_position_function_family +00233_position_function_sql_comparibilty +00234_disjunctive_equality_chains_optimization +00235_create_temporary_table_as +00237_group_by_arrays +00238_removal_of_temporary_columns +00239_type_conversion_in_in +00240_replace_substring_loop +00250_tuple_comparison +00251_has_types +00253_insert_recursive_defaults +00255_array_concat_string +00256_reverse +00258_materializing_tuples +00259_hashing_tuples +00261_storage_aliases_and_array_join +00262_alter_alias +00263_merge_aggregates_and_overflow +00264_uniq_many_args +00266_read_overflow_mode +00267_tuple_array_access_operators_priority +00268_aliases_without_as_keyword +00269_database_table_whitespace +00270_views_query_processing_stage +00272_union_all_and_in_subquery +00273_quantiles +00276_sample +00277_array_filter +00278_insert_already_sorted +00279_quantiles_permuted_args +00280_hex_escape_sequence +00282_merging +00283_column_cut +00287_column_const_with_nan +00288_empty_stripelog +00291_array_reduce +00292_parser_tuple_element +00296_url_parameters +00299_stripe_log_multiple_inserts +00306_insert_values_and_expressions +00311_array_primary_key +00312_position_case_insensitive_utf8 +00314_sample_factor_virtual_column +00315_quantile_off_by_one +00316_rounding_functions_and_empty_block +00317_in_tuples_and_out_of_range_values +00318_pk_tuple_order +00319_index_for_like +00320_between +00321_pk_set +00323_quantiles_timing_bug +00324_hashing_enums +00327_summing_composite_nested +00330_view_subqueries +00331_final_and_prewhere +00331_final_and_prewhere_condition_ver_column +00332_quantile_timing_memory_leak +00333_parser_number_bug +00334_column_aggregate_function_limit +00338_replicate_array_of_strings +00340_squashing_insert_select +00341_squashing_insert_select2 +00342_escape_sequences +00343_array_element_generic +00344_row_number_in_all_blocks +00345_index_accurate_comparison +00346_if_tuple +00347_has_tuple +00348_tuples +00349_visible_width +00350_count_distinct +00351_select_distinct_arrays_tuples +00352_external_sorting_and_constants +00353_join_by_tuple +00355_array_of_non_const_convertible_types +00356_analyze_aggregations_and_union_all +00358_from_string_complex_types +00359_convert_or_zero_functions +00360_to_date_from_string_with_datetime +00361_shared_array_offsets_and_squash_blocks +00362_great_circle_distance +00363_defaults +00364_java_style_denormals +00369_int_div_of_float +00370_duplicate_columns_in_subqueries +00371_union_all +00373_group_by_tuple +00374_any_last_if_merge +00381_first_significant_subdomain +00384_column_aggregate_function_insert_from +00386_enum_in_pk +00386_has_column_in_table +00389_concat_operator +00390_array_sort +00392_enum_nested_alter +00394_new_nested_column_keeps_offsets +00394_replaceall_vector_fixed +00395_nullable +00396_uuid +00396_uuid_v7 +00397_tsv_format_synonym +00398_url_functions +00399_group_uniq_array_date_datetime +00401_merge_and_stripelog +00403_to_start_of_day +00404_null_literal +00410_aggregation_combinators_with_arenas +00411_merge_tree_where_const_in_set +00412_logical_expressions_optimizer +00413_distinct +00413_least_greatest_new_behavior +00414_time_zones_direct_conversion +00420_null_in_scalar_subqueries +00422_hash_function_constexpr +00423_storage_log_single_thread +00425_count_nullable +00426_nulls_sorting +00429_point_in_ellipses +00431_if_nulls +00432_aggregate_function_scalars_and_constants +00433_ifnull +00434_tonullable +00435_coalesce +00436_fixed_string_16_comparisons +00437_nulls_first_last +00438_bit_rotate +00439_fixed_string_filter +00440_nulls_merge_tree +00441_nulls_in +00442_filter_by_nullable +00444_join_use_nulls +00445_join_nullable_keys +00447_foreach_modifier +00448_replicate_nullable_tuple_generic +00448_to_string_cut_to_zero +00449_filter_array_nullable_tuple +00450_higher_order_and_nullable +00451_left_array_join_and_constants +00452_left_array_join_and_nullable +00453_cast_enum +00453_top_k +00456_alter_nullable +00457_log_tinylog_stripelog_nullable +00458_merge_type_cast +00459_group_array_insert_at +00461_default_value_of_argument_type +00462_json_true_false_literals +00464_array_element_out_of_range +00464_sort_all_constant_columns +00465_nullable_default +00466_comments_in_keyword +00467_qualified_names +00468_array_join_multiple_arrays_and_use_original_column +00469_comparison_of_strings_containing_null_char +00470_identifiers_in_double_quotes +00471_sql_style_quoting +00472_compare_uuid_with_constant_string +00472_create_view_if_not_exists +00475_in_join_db_table +00477_parsing_data_types +00479_date_and_datetime_to_number +00480_mac_addresses +00481_create_view_for_null +00481_reading_from_last_granula +00482_subqueries_and_aliases +00483_cast_syntax +00483_reading_from_array_structure +00484_preferred_max_column_in_block_size_bytes +00486_if_fixed_string +00487_if_array_fixed_string +00488_column_name_primary +00488_non_ascii_column_names +00489_pk_subexpression +00490_with_select +00492_drop_temporary_table +00495_reading_const_zero_column +00498_array_functions_concat_slice_push_pop +00498_bitwise_aggregate_functions +00499_json_enum_insert +00500_point_in_polygon +00500_point_in_polygon_2d_const +00500_point_in_polygon_3d_const +00500_point_in_polygon_bug +00500_point_in_polygon_bug_2 +00500_point_in_polygon_bug_3_linestring_rotation_precision +00500_point_in_polygon_empty_bound +00500_point_in_polygon_nan +00500_point_in_polygon_non_const_poly +00502_custom_partitioning_local +00502_string_concat_with_array +00502_sum_map +00503_cast_const_nullable +00504_mergetree_arrays_rw +00507_sumwithoverflow +00508_materialized_view_to +00511_get_size_of_enum +00513_fractional_time_zones +00514_interval_operators +00515_enhanced_time_zones +00515_gcd_lcm +00516_is_inf_nan +00516_modulo +00517_date_parsing +00518_extract_all_and_empty_matches +00519_create_as_select_from_temporary_table +00520_tuple_values_interpreter +00521_multidimensional +00522_multidimensional +00523_aggregate_functions_in_group_array +00524_time_intervals_months_underflow +00525_aggregate_functions_of_nullable_that_return_non_nullable +00526_array_join_with_arrays_of_nullable +00528_const_of_nullable +00529_orantius +00530_arrays_of_nothing +00531_aggregate_over_nullable +00532_topk_generic +00533_uniq_array +00534_exp10 +00535_parse_float_scientific +00536_int_exp +00536_int_exp_overflow +00537_quarters +00538_datediff +00538_datediff_plural_units +00539_functions_for_working_with_json +00541_kahan_sum +00541_to_start_of_fifteen_minutes +00542_access_to_temporary_table_in_readonly_mode +00542_materialized_view_and_time_zone_tag +00543_null_and_prewhere +00544_agg_foreach_of_two_arg +00544_insert_with_select +00545_weird_aggregate_functions +00547_named_tuples +00548_slice_of_nested +00549_join_use_nulls +00551_parse_or_null +00552_logical_functions_simple +00552_logical_functions_ternary +00552_logical_functions_uint8_as_bool +00552_or_nullable +00553_buff_exists_materlized_column +00553_invalid_nested_name +00554_nested_and_table_engines +00555_hasAll_hasAny +00555_hasSubstr +00555_right_join_excessive_rows +00556_array_intersect +00556_remove_columns_from_subquery +00557_alter_null_storage_tables +00557_array_resize +00558_parse_floats +00559_filter_array_generic +00560_float_leading_plus_in_exponent +00561_storage_join +00562_in_subquery_merge_tree +00562_rewrite_select_expression_with_union +00563_complex_in_expression +00564_initial_column_values_with_default_expression +00564_temporary_table_management +00564_versioned_collapsing_merge_tree +00566_enum_min_max +00567_parse_datetime_as_unix_timestamp +00568_empty_function_with_fixed_string +00570_empty_array_is_const +00571_alter_nullable +00571_non_exist_database_when_create_materializ_view # only=jdbc: client: after the current database of the session is dropped, each HTTP request fails (UNKNOWN_DATABASE) +00572_aggregation_by_empty_set +00575_merge_and_index_with_function_in_in +00576_nested_and_prewhere +00577_full_join_segfault +00578_merge_table_and_table_virtual_column +00578_merge_table_sampling +00578_merge_table_shadow_virtual_column +00578_merge_trees_without_primary_key +00579_merge_tree_partition_and_primary_keys_using_same_expression +00579_virtual_column_and_lazy +00580_cast_nullable_to_non_nullable +00580_consistent_hashing_functions +00581_limit_on_result_and_subquery_and_insert +00582_not_aliasing_functions +00583_limit_by_expressions +00584_view_union_all +00587_union_all_type_conversions +00589_removal_unused_columns_aggregation +00590_limit_by_column_removal +00591_columns_removal_union_all +00592_union_all_different_aliases +00593_union_all_assert_columns_removed +00599_create_view_with_subquery +00600_create_temporary_table_if_not_exists +00603_system_parts_nonexistent_database +00604_show_create_database +00605_intersections_aggregate_functions +00606_quantiles_and_nans +00607_index_in_in +00608_uniq_array +00609_mv_index_in_in +00609_prewhere_and_default +00610_materialized_view_forward_alter_partition_statements +00612_pk_in_tuple +00612_union_query_with_subquery +00614_array_nullable +00615_nullable_alter_optimize +00616_final_single_part +00617_array_in +00618_nullable_in +00619_extract +00619_union_highlite +00621_regression_for_in_operator +00622_select_in_parens +00623_in_partition_key +00623_truncate_all_tables +00623_truncate_table +00624_length_utf8 +00625_arrays_in_nested +00625_summing_merge_tree_merge +00626_in_syntax +00626_replace_partition_from_table +00627_recursive_alias +00628_in_lambda_on_merge_table_bug +00633_func_or_in +00634_rename_view +00639_startsWith +00640_endsWith +00642_cast +00644_different_expressions_with_same_alias +00645_date_time_input_format +00646_weird_mmx +00647_histogram +00647_histogram_negative +00647_multiply_aggregation_state +00647_select_numbers_with_offset +00648_replacing_empty_set_from_prewhere +00649_quantile_tdigest_negative +00650_array_enumerate_uniq_with_tuples +00653_monotonic_integer_cast +00653_running_difference +00660_optimize_final_without_partition +00661_array_has_silviucpp +00662_array_has_nullable +00662_has_nullable +00663_tiny_log_empty_insert +00664_cast_from_string_to_nullable +00665_alter_nullable_string_to_nullable_uint8 +00666_uniq_complex_types +00667_compare_arrays_of_different_types +00668_compare_arrays_silviucpp +00670_truncate_temporary_table +00671_max_intersections +00672_arrayDistinct +00673_subquery_prepared_set_performance +00674_has_array_enum +00676_group_by_in +00678_murmurhash +00679_replace_asterisk +00679_uuid_in_key +00680_duplicate_columns_inside_union_all +00681_duplicate_columns_inside_union_all_stas_sviridov +00687_insert_into_mv +00688_aggregation_retention +00688_case_without_else +00688_low_cardinality_alter_add_column +00688_low_cardinality_defaults +00688_low_cardinality_dictionary_deserialization +00688_low_cardinality_in +00688_low_cardinality_nullable_cast +00688_low_cardinality_prewhere +00688_low_cardinality_serialization +00688_low_cardinality_syntax +00689_join_table_function +00691_array_distinct +00692_if_exception_code +00693_max_block_size_system_tables_columns +00696_system_columns_limit +00698_validate_array_sizes_for_nested +00698_validate_array_sizes_for_nested_kshvakov +00700_decimal_aggregates +00700_decimal_arithm +00700_decimal_array_functions +00700_decimal_bounds +00700_decimal_casts +00700_decimal_casts_2 +00700_decimal_compare +00700_decimal_complex_types +00700_decimal_defaults +00700_decimal_empty_aggregates +00700_decimal_gathers +00700_decimal_in_keys +00700_decimal_math +00700_decimal_null +00700_decimal_round +00700_decimal_with_default_precision_and_scale +00700_to_decimal_or_something +00700_to_decimal_or_something_1 +00701_context_use_after_free +00701_join_default_strictness +00702_join_on_dups +00702_join_with_using +00702_join_with_using_dups +00702_where_with_quailified_names +00703_join_crash +00704_arrayCumSumLimited_arrayDifference +00705_aggregate_states_addition +00706_iso_week_and_day_of_year +00707_float_csv_delimiter +00709_virtual_column_partition_id +00710_array_enumerate_dense +00711_array_enumerate_variants +00712_nan_comparison +00712_prewhere_with_alias +00712_prewhere_with_alias_and_virtual_column +00712_prewhere_with_alias_bug +00712_prewhere_with_alias_bug_2 +00712_prewhere_with_final +00712_prewhere_with_missing_columns +00712_prewhere_with_missing_columns_2 +00712_prewhere_with_sampling +00712_prewhere_with_sampling_and_alias +00713_collapsing_merge_tree +00714_alter_uuid +00714_create_temporary_table_with_in_clause +00715_bounding_ratio_merge_empty +00716_allow_ddl +00717_default_join_type +00717_low_cardinaliry_group_by +00718_format_datetime +00718_format_datetime_1 +00718_low_cardinaliry_alter +00719_format_datetime_f_varsize_bug +00719_format_datetime_rand +00720_combinations_of_aggregate_combinators +00723_remerge_sort +00724_insert_values_datetime_conversion +00725_ipv4_ipv6_domains +00725_join_on_bug_1 +00725_join_on_bug_2 +00725_join_on_bug_3 +00725_join_on_bug_4 +00725_memory_tracking +00726_length_aliases +00726_materialized_view_concurrent +00726_modulo_for_date +00727_concat +00729_prewhere_array_join +00732_base64_functions +00732_decimal_summing_merge_tree +00733_if_datetime +00734_timeslot +00735_or_expr_optimize_bug +00736_disjunction_optimisation +00737_decimal_group_by +00738_nested_merge_multidimensional_array +00739_array_element_nullable_string_mattrobenolt +00740_database_in_nested_view +00740_optimize_predicate_expression +00741_client_comment_multiline +00742_require_join_strictness +00743_limit_by_not_found_column +00744_join_not_found_column +00745_compile_scalar_subquery +00746_compile_non_deterministic_function +00746_hashing_tuples +00747_contributors +00748_insert_array_with_null +00749_inner_join_of_unnamed_subqueries +00750_merge_tree_merge_with_o_direct +00751_default_databasename_for_view +00751_hashing_ints +00751_low_cardinality_nullable_group_by +00752_low_cardinality_array_result +00752_low_cardinality_lambda_argument +00752_low_cardinality_left_array_join +00752_low_cardinality_mv_1 +00752_low_cardinality_mv_2 +00752_low_cardinality_permute +00753_alter_destination_for_storage_buffer +00753_quantile_format +00753_with_with_single_alias +00754_alter_modify_column_partitions +00754_alter_modify_order_by +00754_first_significant_subdomain_more +00755_avg_value_size_hint_passing +00756_power_alias +00757_enum_defaults +00758_array_reverse +00759_kodieg +00760_url_functions_overflow +00761_lower_utf8_bug +00762_date_comparsion +00765_locate +00765_sql_compatibility_aliases +00779_all_right_join_max_block_size +00780_unaligned_array_join +00794_materialized_view_with_column_defaults +00799_function_dry_run +00800_function_java_hash +00800_low_cardinality_array_group_by_arg +00800_low_cardinality_distinct_numeric +00800_low_cardinality_empty_array +00800_low_cardinality_join +00800_low_cardinality_merge_join +00801_daylight_saving_time_hour_underflow +00802_daylight_saving_time_shift_backwards_at_midnight +00803_xxhash +00804_rollup_with_having +00804_test_alter_compression_codecs +00804_test_custom_compression_codecs +00804_test_custom_compression_codes_log_storages +00804_test_delta_codec_compression +00804_test_delta_codec_no_type_alter +00805_round_down +00806_alter_update +00807_regexp_quote_meta +00808_array_enumerate_segfault +00808_not_optimize_predicate +00809_add_days_segfault +00810_in_operators_segfault +00811_garbage +00812_prewhere_alias_array +00814_parsing_ub +00815_left_join_on_stepanel +00816_join_column_names_sarg +00817_with_simple +00818_alias_bug_4110 +00818_join_bug_4271 +00819_ast_refactoring_bugs +00822_array_insert_default +00823_sequence_match_dfa +00824_filesystem +00826_cross_to_inner_join +00829_bitmap64_function +00829_bitmap_function +00830_join_overwrite +00831_quantile_weighted_parameter_check +00832_storage_file_lock +00833_sleep_overflow +00834_date_datetime_cmp +00834_limit_with_constant_expressions +00834_not_between +00835_if_generic_case +00836_indices_alter +00836_numbers_table_function_zero +00837_insert_select_and_read_prefix +00839_bitmask_negative +00840_top_k_weighted +00841_temporary_table_database +00842_array_with_constant_overflow +00843_optimize_predicate_and_rename_table +00844_join_lightee2 +00845_join_on_aliases +00846_join_using_tuple_crash +00848_join_use_nulls_segfault +00852_any_join_nulls +00853_join_with_nulls_crash +00854_multiple_join_asterisks +00855_join_with_array_join +00856_no_column_issue_4242 +00857_global_joinsavel_table_alias +00859_distinct_with_join +00860_unknown_identifier_bug +00861_decimal_quoted_csv +00862_decimal_in +00863_comma_join_in +00864_union_all_supertype +00870_t64_codec +00871_t64_codec_signed +00872_t64_bit_codec +00873_t64_codec_date +00874_issue_3495 +00875_join_right_nulls +00875_join_right_nulls_ors +00876_wrong_arraj_join_column +00877_memory_limit_for_new_delete +00878_join_unexpected_results +00879_cast_to_decimal_crash +00880_decimal_in_key +00881_unknown_identifier_in_in +00882_multiple_join_no_alias +00897_flatten +00898_quantile_timing_parameter_check +00901_joint_entropy +00902_entropy +00903_array_with_constant_function +00904_array_with_constant_2 +00905_compile_expressions_compare_big_dates +00905_field_with_aggregate_function_state +00906_low_cardinality_const_argument +00906_low_cardinality_rollup +00907_set_index_with_nullable_and_low_cardinality +00907_set_index_with_nullable_and_low_cardinality_bug +00908_analyze_query +00909_arrayEnumerateUniq +00909_ngram_distance +00910_buffer_prewhere +00910_buffer_prewhere_different_types +00910_decimal_group_array_crash_3783 +00911_tautological_compare +00912_string_comparison +00914_join_bgranvea +00914_replicate +00915_simple_aggregate_function +00915_simple_aggregate_function_summing_merge_tree +00915_tuple_orantius +00916_add_materialized_column_after +00916_create_or_replace_view +00916_join_using_duplicate_columns +00917_least_sqr +00917_multiple_joins_denny_crane +00918_has_unsufficient_type_check +00918_json_functions +00919_histogram_merge +00919_sum_aggregate_states_constants +00920_multiply_aggregate_states_constants +00921_datetime64_basic +00926_adaptive_index_granularity_collapsing_merge_tree +00926_adaptive_index_granularity_merge_tree +00926_adaptive_index_granularity_pk +00926_adaptive_index_granularity_replacing_merge_tree +00926_adaptive_index_granularity_versioned_collapsing_merge_tree +00926_geo_to_h3 +00926_multimatch +00927_asof_join_correct_bt +00927_asof_join_noninclusive +00927_asof_join_other_types +00927_asof_joins +00927_disable_hyperscan +00928_multi_match_constant_constant +00929_multi_match_edit_distance +00930_arrayIntersect +00930_max_partitions_per_insert_block +00931_low_cardinality_nullable_aggregate_function_type +00931_low_cardinality_read_with_empty_array +00931_low_cardinality_set_index_in_key_condition +00932_array_intersect_bug +00932_geohash_support +00933_alter_ttl +00933_reserved_word +00933_ttl_formatting +00933_ttl_simple +00933_ttl_with_default +00934_is_valid_utf8 +00935_to_iso_week_first_year +00936_crc_functions +00936_function_result_with_operator_in +00936_substring_utf8_non_const +00937_ipv4_cidr_range +00938_basename +00938_dataset_test +00938_ipv6_cidr_range +00938_test_retention_function +00939_limit_by_offset +00939_test_null_in +00940_max_parts_in_total +00940_order_by_read_in_order +00940_order_by_read_in_order_query_plan +00941_to_custom_week +00942_mv_rename_table +00943_mv_rename_without_inner_table +00944_minmax_nan +00944_minmax_null +00944_ml_test +00945_ml_test +00946_ml_test +00947_ml_test +00948_to_valid_utf8 +00948_values_interpreter_template +00949_format +00950_bad_alloc_when_truncate_join_storage +00950_default_prewhere +00950_test_double_delta_codec +00950_test_double_delta_codec_types +00950_test_gorilla_codec +00951_ngram_search +00952_part_frozen_info +00953_moving_functions +00954_resample_combinator +00955_test_final_mark +00956_join_use_nulls_with_array_column +00957_coalesce_const_nullable_crash +00957_delta_diff_bug +00957_neighbor +00960_eval_ml_method_const +00961_check_table +00961_checksums_in_system_parts_columns_table +00961_visit_param_buffer_underflow +00962_enumNotExect +00962_visit_param_various +00963_startsWith_force_primary_key +00964_os_thread_priority +00966_invalid_json_must_not_parse +00968_file_engine_in_subquery +00968_roundAge +00969_columns_clause +00969_roundDuration +00971_merge_tree_uniform_read_distribution_and_max_rows_to_read +00972_desc_table_virtual_columns +00972_geohashesInBox +00973_create_table_as_table_function +00973_uniq_non_associativity +00974_adaptive_granularity_secondary_index +00974_bitmapContains_with_primary_key +00974_final_predicate_push_down +00974_fix_join_on +00974_full_outer_join +00974_low_cardinality_cast +00975_json_hang +00975_move_partition_merge_tree +00975_recursive_materialized_view +00975_values_list +00976_asof_join_on +00976_max_execution_speed +00976_system_stop_ttl_merges +00976_ttl_with_old_parts +00977_int_div +00977_join_use_nulls_denny_crane +00978_ml_math +00978_sum_map_bugfix +00978_table_function_values_alias +00979_quantileExcatExclusive_and_Inclusive +00979_set_index_not +00979_toFloat_monotonicity +00979_yandex_consistent_hash_fpe +00980_crash_nullable_decimal +00980_full_join_crash_fancyqlx +00980_merge_alter_settings +00981_no_virtual_columns +00982_array_enumerate_uniq_ranked +00982_low_cardinality_setting_in_mv +00983_summing_merge_tree_not_an_identifier +00984_materialized_view_to_columns +00985_merge_stack_overflow +00986_materialized_view_stack_overflow +00988_expansion_aliases_limit +00989_parallel_parts_loading +00990_function_current_user +00990_hasToken_and_tokenbf +00990_request_splitting +00994_table_function_numbers_mt +00995_optimize_read_in_order_with_aggregation +00995_order_by_with_fill +00996_limit_with_ties +00996_neighbor +00997_extract_all_crash_6627 +00997_set_index_array +00997_trim +00998_constraints_all_tables +00999_full_join_dup_keys_crash +00999_join_not_nullable_types +00999_join_on_expression +00999_settings_no_extra_quotes +00999_test_skip_indices_with_alter_and_merge +01000_bad_size_of_marks_skip_idx +01000_subquery_requires_alias +01001_enums_in_in_section +01006_ttl_with_default_2 +01008_materialized_view_henyihanwobushi +01009_insert_select_data_loss +01009_insert_select_nicelulu +01010_partial_merge_join +01010_partial_merge_join_const_and_lc +01010_partial_merge_join_negative +01010_pm_join_all_join_bug +01010_pmj_on_disk +01010_pmj_one_row_blocks +01010_pmj_right_table_memory_limits +01010_pmj_skip_blocks +01011_group_uniq_array_memsan +01012_reset_running_accumulate +01012_select_limit_x_0 +01012_serialize_array_memory_usage +01012_show_tables_limit +01013_hex_decimal +01013_hex_float +01013_repeat_function +01014_count_of_merges_metrics +01014_function_repeat_corner_cases +01015_array_split +01015_attach_part +01015_empty_in_inner_right_join +01015_random_constant +01016_index_tuple_field_type +01016_null_part_minmax +01016_simhash_minhash +01016_uniqCombined64 +01017_bithamming_distance +01017_in_unconvertible_complex_type +01017_tuplehamming_distance +01018_ddl_dictionaries_create +01018_ddl_dictionaries_select +01018_ddl_dictionaries_special +01018_empty_aggregation_filling +01018_optimize_read_in_order_with_in_subquery +01019_Buffer_and_max_memory_usage +01019_alter_materialized_view_query +01019_array_fill +01019_materialized_view_select_extra_columns +01020_function_array_compact +01020_function_char +01020_having_without_group_by +01021_create_as_select +01021_only_tuple_columns +01021_tuple_parser +01024__getScalar +01025_array_compact_generic +01026_char_utf8 +01029_early_constant_folding +01030_concatenate_equal_fixed_strings +01030_final_mark_empty_primary_key +01030_incorrect_count_summing_merge_tree +01030_storage_set_supports_read +01030_storage_url_syntax +01031_new_any_join +01031_pmj_new_any_semi_join +01031_semi_anti_join +01032_cityHash64_for_UUID +01032_cityHash64_for_decimal +01032_duplicate_column_insert_query +01033_dictionaries_lifetime +01033_function_substring +01033_storage_odbc_parsing_exception_check +01034_order_by_pk_prefix +01034_unknown_qualified_column_in_join +01034_with_fill_and_push_down_predicate +01035_avg +01035_prewhere_with_alias +01036_no_superfluous_dict_reload_on_create_database +01036_no_superfluous_dict_reload_on_create_database_2 +01036_union_different_columns +01038_array_of_unnamed_tuples +01039_mergetree_exec_time +01039_test_setting_parse +01040_h3_get_resolution +01041_create_dictionary_if_not_exists +01041_h3_is_valid +01042_check_query_and_last_granule_size +01042_h3_k_ring +01043_categorical_iv +01043_dictionary_attribute_properties_values +01043_geo_distance +01043_h3_edge_length_m +01044_great_circle_angle +01044_h3_edge_angle +01045_bloom_filter_null_array +01045_dictionaries_restrictions +01047_no_alias_columns_with_table_aliases +01047_nullable_rand +01047_simple_aggregate_sizes_of_columns_bug +01049_join_low_card_crash +01050_clickhouse_dict_source_with_subquery +01050_engine_join_crash +01050_engine_join_view_crash +01050_group_array_sample +01051_aggregate_function_crash +01051_all_join_engine +01051_new_any_join_engine +01051_random_printable_ascii +01051_same_name_alias_with_joins +01051_scalar_optimization +01052_array_reduce_exception +01053_if_chain_check +01055_compact_parts +01055_compact_parts_1 +01055_prewhere_bugs +01056_create_table_as +01056_create_table_as_with_sorting_clauses +01056_negative_with_bloom_filter +01056_predicate_optimizer_bugs +01060_defaults_all_columns +01060_shutdown_table_after_detach +01061_alter_codec_with_type +01062_pm_all_join_with_block_continuation +01062_pm_multiple_all_join_same_value +01063_create_column_set +01064_arrayROCAUC +01064_incremental_streaming_from_2_src_with_feedback +01064_pm_all_join_const_and_nullable +01065_array_zip_mixed_const +01065_if_not_finite +01066_bit_count +01067_join_null +01068_parens +01069_database_memory +01069_insert_float_as_nullable_unit8 +01069_materialized_view_alter_target_table +01069_materialized_view_alter_target_table_with_default_expression +01069_set_in_group_by +01070_alter_with_ttl +01070_exception_code_in_query_log_table +01070_h3_get_base_cell +01070_h3_hex_area_m2 +01070_h3_indexes_are_neighbors +01070_h3_to_children +01070_h3_to_parent +01070_h3_to_string +01070_materialize_ttl +01070_modify_ttl +01070_modify_ttl_recalc_only +01070_mutations_with_dependencies +01070_string_to_h3 +01070_to_decimal_or_null_exception +01071_in_array +01071_prohibition_secondary_index_with_old_format_merge_tree +01072_drop_temporary_table_with_same_name +01072_json_each_row_data_in_square_brackets +01072_nullable_jit +01072_select_constant_limit +01073_attach_if_not_exists +01073_bad_alter_partition +01073_blockSerializedSize +01073_grant_and_revoke +01073_show_tables_not_like +01074_h3_range_check +01075_allowed_client_hosts +01075_in_arrays_enmk +01076_array_join_prewhere_const_folding +01076_predicate_optimizer_with_view +01076_range_reader_segfault +01077_yet_another_prewhere_test +01078_bloom_filter_operator_not_has +01078_merge_tree_read_one_thread +01079_bit_operations_using_bitset +01079_new_range_reader_segfault +01079_order_by_pk +01079_reinterpret_as_fixed_string +01080_check_for_error_incorrect_size_of_nested_column +01080_engine_merge_prewhere_tupleelement_error +01080_join_get_null +01081_PartialSortingTransform_full_column +01081_demangle +01081_keywords_formatting +01082_bit_test_out_of_bound +01083_aggregation_memory_efficient_bug +01083_cross_to_inner_with_in_bug +01083_cross_to_inner_with_like +01083_functional_index_in_mergetree +01083_log_first_column_alias +01083_match_zero_byte +01084_defaults_on_aliases +01084_regexp_empty +01085_datetime_arithmetic_preserve_timezone +01085_extract_all_empty +01085_simdjson_uint64 +01086_modulo_or_zero +01087_index_set_ubsan +01087_storage_generate +01087_table_function_generate +01089_alter_settings_old_format +01090_fixed_string_bit_ops +01091_insert_with_default_json +01092_memory_profiler +01093_cyclic_defaults_filimonov +01095_tpch_like_smoke +01096_array_reduce_in_ranges +01096_block_serialized_state +01096_zeros +01097_cyclic_defaults +01097_one_more_range_reader_test +01097_one_more_range_reader_test_wide_part +01097_pre_limit +01098_sum +01100_split_by_string +01101_prewhere_after_alter +01104_fixed_string_like +01105_string_like +01106_const_fixed_string_like +01109_exchange_tables +01109_inflating_cross_join +01109_sc0rp10_string_hash_map_zero_bytes +01110_dictionary_layout_without_arguments +01112_check_table_with_index +01113_local_dictionary_type_conversion +01114_alter_modify_compact_parts +01114_clear_column_compact_parts +01114_materialize_clear_index_compact_parts +01114_mysql_database_engine_segfault +01115_join_with_dictionary +01115_prewhere_array_join +01116_asof_join_dolbyzerr +01116_cross_count_asterisks +01117_chain_finalize_bug +01117_comma_and_others_join_mix +01117_greatest_least_case +01118_is_constant +01119_optimize_trivial_insert_select +01119_weird_user_names +01120_join_constants +01121_remote_scalar_subquery +01122_totals_rollup_having_block_header +01123_parse_date_time_best_effort_even_more +01124_view_bad_types +01125_dict_ddl_cannot_add_column +01125_generate_random_qoega +01126_month_partitioning_consistent_code +01127_month_partitioning_consistency_select +01128_generate_random_nested +01129_dict_get_join_lose_constness +01131_max_rows_to_sort +01132_max_rows_to_read +01134_max_rows_to_group_by +01134_set_overflow_mode +01136_multiple_sets +01137_order_by_func_final +01137_sample_final +01139_asof_join_types +01140_select_from_storage_join_fix +01141_join_get_negative +01142_join_lc_and_nullable_in_key +01142_merge_join_lc_and_nullable_in_key +01142_with_ties_and_aliases +01143_trivial_count_with_join +01144_join_rewrite_with_ambiguous_column_and_view +01144_multiple_joins_rewriter_v2_and_lambdas +01144_multiword_data_types +01145_with_fill_const +01147_partial_merge_full_join +01151_storage_merge_filter_tables_by_virtual_column +01153_attach_mv_uuid +01159_combinators_with_parameters +01161_information_schema +01163_search_case_insensetive_utf8 +01177_group_array_moving +01178_int_field_to_decimal +01185_create_or_replace_table +01186_conversion_to_nullable +01188_attach_table_from_path +01189_create_as_table_as_table_function +01191_rename_dictionary +01197_summing_enum +01198_plus_inf +01199_url_functions_path_without_schema_yiurule +01202_arrayROCAUC_special +01210_drop_view +01212_empty_join_and_totals +01213_alter_rename_column +01213_alter_rename_compact_part +01213_alter_rename_nested +01213_alter_table_rename_nested +01213_point_in_Myanmar +01214_point_in_Mecca +01214_test_storage_merge_aliases_with_where +01220_scalar_optimization_in_alter +01221_system_settings +01222_system_codecs +01224_no_superfluous_dict_reload +01225_drop_dictionary_as_table +01225_show_create_table_from_dictionary +01230_join_get_truncate +01231_log_queries_min_type +01231_operator_null_in +01231_operator_null_in_2 +01232_untuple +01234_to_string_monotonic +01240_join_get_or_null +01245_limit_infinite_sources +01246_extractAllGroupsHorizontal +01246_extractAllGroupsVertical +01246_least_greatest_generic +01247_least_greatest_filimonov +01247_some_msan_crashs_from_22517 +01248_least_greatest_mixed_const +01249_bad_arguments_for_bloom_filter +01251_string_comparison +01254_array_of_unnamed_tuples +01254_dict_create_without_db +01255_geo_types_livace +01256_misspell_layout_name_podshumok +01256_negative_generate_random +01257_dictionary_mismatch_types +01258_wrong_cast_filimonov +01259_combinator_distinct +01259_datetime64_ubsan +01260_ubsan_decimal_parse +01262_fractional_timezone_near_start_of_epoch +01262_low_cardinality_remove +01264_nested_baloo_bear +01265_datetime_string_comparison_felix_mueller +01266_default_prewhere_reqq +01268_DateTime64_in_WHERE +01268_data_numeric_parameters +01268_dictionary_direct_layout +01268_mergine_sorted_limit +01268_mv_scalars +01269_alias_type_differs +01269_create_with_null +01269_toStartOfSecond +01271_optimize_arithmetic_operations_in_aggr_func_with_alias +01271_show_privileges +01272_offset_without_limit +01272_suspicious_codecs +01273_extractGroups +01273_h3EdgeAngle_range_check +01273_lc_fixed_string_field +01275_alter_rename_column_default_expr +01275_extract_groups_check +01276_alter_rename_column_materialized_expr +01276_random_string +01276_system_licenses +01277_alter_rename_column_constraint +01277_buffer_column_order +01277_convert_field_to_type_logical_error +01277_large_tuples +01277_random_fixed_string +01277_toUnixTimestamp64 +01277_unixTimestamp64_compatibility +01278_alter_rename_combination +01278_random_string_utf8 +01278_variance_nonnegative +01279_dist_group_by +01280_min_map_max_map +01280_null_in +01280_opencl_bitonic_order_by +01280_ttl_where_group_by_negative +01280_unicode_whitespaces_lexer +01281_alter_rename_and_other_renames +01281_join_with_prewhere_fix +01281_parseDateTime64BestEffort +01281_sum_nullable +01281_unsucceeded_insert_select_queries_counter +01282_system_parts_ttl_info +01283_strict_resize_bug +01284_escape_sequences_php_mysql_style +01284_fuzz_bits +01284_port +01284_view_and_extremes_bug +01285_data_skip_index_over_aggregation +01285_date_datetime_key_condition +01287_max_execution_speed +01289_min_execution_speed_not_too_early +01290_empty_array_index_analysis +01291_aggregation_in_order +01291_geo_types +01291_unsupported_conversion_from_decimal +01292_create_user +01292_optimize_data_skip_idx_order_by_expr +01292_quantile_array_bug +01293_create_role +01293_external_sorting_limit_bug +01294_create_settings_profile +01295_aggregation_bug_11413 +01295_create_row_policy +01296_codecs_bad_arguments +01296_create_row_policy_in_current_database +01296_pipeline_stuck +01298_alter_merge +01299_alter_merge_tree +01300_group_by_other_keys +01300_group_by_other_keys_having +01300_polygon_convex_hull +01300_read_wkt +01300_svg +01300_wkt +01301_polygons_within +01302_polygons_distance +01303_polygons_equals +01304_polygons_sym_difference +01305_array_join_prewhere_in_subquery +01305_buffer_final_bug +01305_nullable-prewhere_bug +01305_polygons_union +01306_polygons_intersection +01307_bloom_filter_index_string_multi_granulas +01307_polygon_perimeter +01308_polygon_area +01308_row_policy_and_trivial_count_query +01310_enum_comparison +01311_comparison_with_constant_string +01312_case_insensitive_regexp +01312_comparison_with_constant_string_in_index_analysis +01313_parse_date_time_best_effort_null_zero +01314_position_in_system_columns +01315_count_distinct_return_not_nullable +01318_alter_add_column_exists +01318_decrypt +01318_encrypt +01318_map_add_map_subtract +01318_map_add_map_subtract_on_map_type +01318_map_populate_series +01318_parallel_final_stuck +01319_query_formatting_in_server_log +01321_aggregate_functions_of_group_by_keys +01321_monotonous_functions_in_order_by_bug +01322_cast_keep_nullable +01323_add_scalars_in_time +01323_bad_arg_in_arithmetic_operations +01323_if_with_nulls +01323_redundant_functions_in_order_by +01324_if_transform_strings_to_enum +01324_settings_documentation +01325_freeze_mutation_stuck +01326_build_id +01326_fixed_string_comparison_denny_crane +01326_hostname_alias +01327_decimal_cut_extra_digits_after_point +01328_bad_peephole_optimization +01329_compare_tuple_string_constant +01330_array_join_in_higher_order_function +01332_join_type_syntax_position +01333_select_abc_asterisk +01338_sha256_fixedstring +01338_uuid_without_separator +01340_datetime64_fpe +01341_datetime64_wrong_supertype +01343_min_bytes_to_use_mmap_io +01344_alter_enum_partition_key +01344_min_bytes_to_use_mmap_io_index +01345_array_join_LittleMaverick +01345_index_date_vs_datetime +01346_array_join_mrxotey +01347_partition_date_vs_datetime +01349_mutation_datetime_key +01350_intdiv_nontrivial_fpe +01351_geohash_assert +01352_add_datetime_bad_get +01352_generate_random_overflow +01353_low_cardinality_join_types +01353_neighbor_overflow +01353_nullable_tuple +01353_topk_enum +01354_order_by_tuple_collate_const +01354_tuple_low_cardinality_array_mapped_bug +01355_alter_column_with_order +01355_defaultValueOfArgumentType_bug +01355_if_fixed_string +01355_ilike +01356_initialize_aggregation +01356_state_resample +01356_view_threads +01356_wrong_filter-type_bug +01357_result_rows +01358_constexpr_constraint +01358_mutation_delete_null_rows +01358_union_threads_bug +01359_codeql +01359_geodistance_loop +01360_division_overflow +01360_materialized_view_with_join_on_query_log +01361_buffer_table_flush_with_materialized_view +01362_year_of_ISO8601_week_modificators_for_formatDateTime +01372_remote_table_function_empty_table +01372_wrong_order_by_removal +01373_is_zero_or_null +01373_summing_merge_tree_exclude_partition_key +01373_summing_merge_tree_explicit_columns_definition +01374_if_nullable_filimonov +01375_GROUP_BY_injective_elimination_dictGet_BAD_ARGUMENTS +01375_compact_parts_codecs +01375_null_issue_3767 +01375_storage_file_write_prefix_csv_with_names +01375_storage_file_write_prefix_tsv_with_names +01376_GROUP_BY_injective_elimination_dictGet +01376_array_fill_empty +01376_null_logical +01377_supertype_low_cardinality +01379_with_fill_several_columns +01380_coded_delta_exception_code +01384_bloom_filter_bad_arguments +01385_not_function +01386_negative_float_constant_key_condition +01387_clear_column_default_depends +01388_clear_all_columns +01388_multi_if_optimization +01389_filter_by_virtual_columns +01390_check_table_codec +01390_remove_injective_in_uniq +01391_join_on_dict_crash +01391_limit_overflow +01392_column_resolve +01396_low_cardinality_fixed_string_default +01396_negative_datetime_saturate_to_zero +01397_in_bad_arguments +01398_in_tuple_func +01400_join_get_with_multi_keys +01402_cast_nullable_string_to_enum +01403_datetime64_constant_arg +01404_roundUpToPowerOfTwoOrZero_safety +01407_lambda_arrayJoin +01408_range_overflow +01409_topK_merge +01410_full_join_and_null_predicates +01410_nullable_key_and_index +01410_nullable_key_and_index_negate_cond +01411_from_unixtime +01411_xor_itai_shirav +01412_mod_float +01412_optimize_deduplicate_bug +01413_allow_non_metadata_alters +01413_alter_update_supertype +01413_if_array_uuid +01413_rows_events +01413_truncate_without_table_keyword +01414_bloom_filter_index_with_const_column +01414_freeze_does_not_prevent_alters +01414_low_cardinality_nullable +01414_push_predicate_when_contains_with_clause +01415_inconsistent_merge_tree_settings +01415_overlimiting_threads_for_repica_bug +01415_table_function_view +01416_clear_column_pk +01416_join_totals_header_bug +01417_update_permutation_crash +01418_index_analysis_bug +01418_query_scope_constants_and_remote +01419_materialize_null +01419_merge_tree_settings_sanity_check +01419_skip_index_compact_parts +01420_format_row +01420_logical_functions_materialized_null +01421_array_nullable_element_nullable_index +01421_assert_in_in +01422_array_nullable_element_nullable_index +01422_map_skip_null +01423_if_nullable_cond +01424_parse_date_time_bad_date +01425_decimal_parse_big_negative_exponent +01425_default_value_of_type_name +01426_geohash_constants +01427_pk_and_expression_with_different_type +01428_h3_range_check +01428_hash_set_nan_key +01428_nullable_asof_join +01429_join_on_error_messages +01430_fix_any_rewrite_aliases +01430_moving_sum_empty_state +01431_finish_sorting_with_consts +01431_utf8_ubsan +01432_parse_date_time_best_effort_timestamp +01433_hex_float +01434_netloc_fuzz +01435_lcm_overflow +01440_big_int_arithm +01440_big_int_exotic_casts +01440_big_int_least_greatest +01440_big_int_shift +01440_to_date_monotonicity +01441_array_combinator +01441_low_cardinality_array_index +01442_date_time_with_params +01442_h3kring_range_check +01450_set_null_const +01451_detach_drop_part +01451_normalize_query +01452_normalized_query_hash +01453_fixsed_string_sort +01453_normalize_query_alias_uuid +01455_default_compression +01455_nullable_type_with_if_agg_combinator +01455_optimize_trivial_insert_select +01455_rank_correlation_spearman +01455_time_zones +01456_low_cardinality_sorting_bugfix +01456_min_negative_decimal_formatting +01456_modify_column_type_via_add_drop_update +01457_compile_expressions_fuzzer +01457_create_as_table_function_structure +01457_int256_hashing +01457_min_index_granularity_bytes_setting +01457_order_by_limit +01457_order_by_nulls_first +01458_count_digits +01458_is_decimal_overflow +01458_named_tuple_millin +01459_decimal_casts +01459_default_value_of_argument_type_nullptr_dereference +01460_allow_dollar_and_number_in_identifier +01460_mark_inclusion_search_crash +01461_alter_table_function +01461_query_start_time_microseconds +01462_test_codec_on_alias +01463_resample_overflow +01465_ttl_recompression +01470_columns_transformers +01470_columns_transformers2 +01470_explain +01470_show_databases_like +01470_test_insert_select_asterisk +01471_calculate_ttl_during_merge +01471_limit_by_format +01471_top_k_range_check +01471_with_format +01472_toBoundsOfInterval_disallow_empty_tz_field +01473_event_time_microseconds +01473_system_events_zeroes +01474_decimal_scale_bug +01475_fix_bigint_shift +01475_mutation_with_if +01475_read_subcolumns +01475_read_subcolumns_2 +01475_read_subcolumns_3 +01476_right_full_join_switch +01477_lc_in_merge_join_left_key +01478_not_equi-join_on +01479_cross_join_9855 +01480_binary_operator_monotonicity +01481_join_with_materialized +01482_move_to_prewhere_and_cast +01483_merge_table_join_and_group_by +01485_256_bit_multiply +01490_nullable_string_to_enum +01491_nested_multiline_comments +01492_array_join_crash_13829 +01492_format_readable_quantity +01493_alter_remove_properties +01493_alter_remove_wrong_default +01493_storage_set_persistency +01493_table_function_null +01494_storage_join_persistency +01495_subqueries_in_with_statement +01495_subqueries_in_with_statement_2 +01495_subqueries_in_with_statement_3 +01495_subqueries_in_with_statement_4 +01496_signedness_conversion_monotonicity +01497_alias_on_default_array +01497_extract_all_groups_empty_match +01497_mutation_support_for_storage_memory +01497_now_support_timezone +01498_alter_column_storage_memory +01502_bar_overflow +01503_fixed_string_primary_key +01503_if_const_optimization +01504_compression_multiple_streams +01504_rocksdb +01504_view_type_conversion +01505_trivial_count_with_partition_predicate +01506_buffer_table_alter_block_structure +01506_buffer_table_alter_block_structure_2 +01506_ttl_same_with_order_by +01507_multiversion_storage_for_storagememory +01507_transform_null_in +01508_explain_header +01511_alter_version_versioned_collapsing_merge_tree +01511_different_expression_with_same_alias +01511_format_readable_timedelta +01511_prewhere_with_virtuals +01512_create_replicate_merge_tree_one_arg +01513_defaults_on_defaults_no_column +01513_ilike_like_cache +01514_empty_buffer_different_types +01514_input_format_csv_enum_as_number_setting +01514_input_format_json_enum_as_number +01514_input_format_tsv_enum_as_number_setting +01514_parallel_formatting +01514_tid_function +01515_force_data_skipping_indices +01515_mv_and_array_join_optimisation_bag +01515_with_global_and_with_propagation +01517_drop_mv_with_inner_table +01518_cast_nullable_virtual_system_column +01518_filtering_aliased_materialized_column +01518_nullable_aggregate_states1 +01518_nullable_aggregate_states2 +01518_select_in_null +01521_alter_enum_and_reverse_read +01521_format_readable_time_delta2 +01521_max_length_alias +01522_validate_alter_default +01523_date_time_compare_with_date_literal +01524_do_not_merge_across_partitions_select_final +01525_select_with_offset_fetch_clause +01527_bad_aggregation_in_lambda +01527_materialized_view_stack_overflow +01528_setting_aggregate_functions_null_for_empty +01528_to_uuid_or_null_or_zero +01529_union_distinct_and_setting_union_default_mode +01531_query_log_query_comment +01532_collate_in_low_cardinality +01532_tuple_with_name_type +01533_collate_in_nullable +01533_distinct_depends_on_max_threads +01533_distinct_nullable_uuid +01533_multiple_nested +01533_optimize_skip_merged_partitions +01533_quantile_deterministic_assert +01533_sum_if_nullable_bug +01534_lambda_array_join +01535_decimal_round_scale_overflow_check +01536_fuzz_cast +01537_fuzz_count_equal +01538_fuzz_aggregate +01540_verbatim_partition_pruning +01542_collate_in_array +01543_collate_in_tuple +01543_parse_datetime_besteffort_or_null_empty_string +01543_toModifiedJulianDay +01544_errorCodeToName +01544_fromModifiedJulianDay +01545_url_file_format_settings +01546_log_queries_min_query_duration_ms +01548_lzy305 +01548_uncomparable_columns_in_keys +01548_with_totals_having +01549_low_cardinality_materialized_view +01549_low_cardinality_mv_fuzz +01550_create_map_type +01550_mutation_subquery +01551_context_uaf +01551_mergetree_read_in_order_spread +01552_alter_name_collision +01552_dict_fixedstring +01552_impl_aggfunc_cloneresize +01553_datetime64_comparison +01554_bloom_filter_index_big_integer_uuid +01554_interpreter_integer_float +01555_or_fill +01556_accurate_cast_or_null +01556_explain_select_with_union_query +01556_if_null +01557_max_parallel_replicas_no_sample +01558_enum_as_num_in_tsv_csv_input +01558_transform_null_in +01558_ttest +01559_aggregate_null_for_empty_fix +01559_misplaced_codec_diagnostics +01560_DateTime_and_DateTime64_comparision +01560_cancel_agg_func_combinator_native_name_constraint +01560_crash_in_agg_empty_arglist +01560_mann_whitney +01560_monotonicity_check_multiple_args_bug +01561_Date_and_DateTime64_comparision +01561_aggregate_functions_of_key_with_join +01562_agg_null_for_empty_ahead +01564_test_hint_woes +01566_negate_formatting +01567_system_processes_current_database +01570_aggregator_combinator_simple_state +01571_window_functions +01575_disable_detach_table_of_dictionary +01576_if_null_external_aggregation +01579_date_datetime_index_comparison +01580_column_const_comparision +01581_deduplicate_by_columns_local +01581_to_int_inf_nan +01582_any_join_supertype +01582_deterministic_function_with_predicate +01582_move_to_prewhere_compact_parts +01583_const_column_in_set_index +01585_fuzz_bits_with_bugfix +01586_columns_pruning +01586_storage_join_low_cardinality_key +01592_length_map +01592_toUnixTimestamp_Date +01592_window_functions +01593_functions_in_order_by +01593_insert_settings +01594_storage_join_uuid +01595_countMatches +01596_full_join_chertus +01596_null_as_default_nullable +01596_setting_limit_offset +01598_memory_limit_zeros +01600_encode_XML +01600_min_max_compress_block_size +01600_multiple_left_join_with_aliases +01600_remerge_sort_lowered_memory_bytes_ratio +01600_select_in_different_types +01602_array_aggregation +01602_modified_julian_day_msan +01602_runningConcurrency +01602_show_create_view +01602_temporary_table_in_system_tables +01603_decimal_mult_float +01603_insert_select_too_many_parts +01603_remove_column_ttl +01603_rename_overwrite_bug +01604_explain_ast_of_nonselect_query +01605_dictinct_two_level +01605_key_condition_enum_int +01605_skip_idx_compact_parts +01606_merge_from_wide_to_compact +01611_string_to_low_cardinality_key_alter +01614_with_fill_with_limit +01615_two_args_function_index_fix +01616_untuple_access_field +01620_fix_simple_state_arg_type +01621_bar_nan_arguments +01621_decode_XML +01621_sort_after_join_pipeline_stuck +01621_summap_check_types +01622_byte_size +01622_constraints_simple_optimization +01622_constraints_where_optimization +01622_defaults_for_file_engine +01622_multiple_ttls +01623_byte_size_const +01623_constraints_column_swap +01625_constraints_index_append +01626_cnf_test +01630_disallow_floating_point_as_partition_key +01630_simple_aggregate_all_functions_in_aggregating_merge_tree +01630_simple_aggregate_all_functions_in_summing_merge_tree +01630_simple_aggregate_function_in_summing_merge_tree +01631_date_overflow_as_partition_key +01632_group_array_msan +01632_max_partitions_to_read +01632_nullable_string_type_convert_to_decimal_type +01632_select_all_syntax +01634_sum_map_nulls +01634_summap_nullable +01634_uuid_fuzz +01635_nullable_fuzz +01635_sum_map_fuzz +01638_div_mod_ambiguities +01641_memory_tracking_insert_optimize +01642_if_nullable_regression +01643_merge_tree_fsync_smoke +01646_fix_window_funnel_inconistency +01646_rewrite_sum_if +01648_mutations_and_escaping +01648_normalize_query_keep_names +01649_with_alias_key_condition +01650_expressions_merge_bug +01651_group_uniq_array_enum +01651_lc_insert_tiny_log_1 +01651_lc_insert_tiny_log_2 +01651_lc_insert_tiny_log_3 +01652_ignore_and_low_cardinality +01652_ttl_old_syntax +01653_tuple_hamming_distance_2 +01654_bar_nan +01655_agg_if_nullable +01655_plan_optimizations_merge_filters +01655_quarter_modificator_for_formatDateTime +01655_sleep_infinite_float +01655_test_isnull_mysql_dialect +01655_window_functions_bug +01655_window_functions_null +01656_join_defaul_enum +01656_test_hex_mysql_dialect +01656_test_query_log_factories_info +01657_array_element_ubsan +01657_test_toHour_mysql_compatibility +01658_test_base64Encode_mysql_compatibility +01658_values_ubsan +01659_array_aggregation_ubsan +01659_h3_buffer_overflow +01659_test_base64Decode_mysql_compatibility +01660_join_or_all +01660_join_or_any +01660_join_or_inner +01660_join_or_subqueries +01660_sum_ubsan +01660_system_parts_smoke +01660_test_toDayOfYear_mysql_compatibility +01661_arraySlice_ubsan +01661_extract_all_groups_throw_fast +01661_join_complex +01661_test_toDayOfWeek_mysql_compatibility +01661_week_functions_string_args +01662_date_ubsan +01662_join_mixed +01662_test_toDayOfMonth_mysql_compatibility +01663_aes_msan +01663_quantile_weighted_overflow +01663_test_toDate_mysql_compatibility +01664_array_slice_ubsan +01664_decimal_ubsan +01664_ntoa_aton_mysql_compatibility +01665_merge_tree_min_for_concurrent_read +01665_running_difference_ubsan +01665_substring_ubsan +01666_date_lut_buffer_overflow +01666_gcd_ubsan +01666_great_circle_distance_ubsan +01666_lcm_ubsan +01667_aes_args_check +01668_avg_weighted_ubsan +01668_test_toMonth_mysql_dialect +01669_join_or_duplicates +01669_test_toYear_mysql_dialect +01670_log_comment +01670_sign_function +01670_test_repeat_mysql_dialect +01671_aggregate_function_group_bitmap_data +01671_test_toQuarter_mysql_dialect +01672_actions_dag_merge_crash +01672_test_toSecond_mysql_dialect +01673_test_toMinute_mysql_dialect +01674_filter_by_uint8 +01674_htm_xml_coarse_parse +01674_unicode_asan +01674_where_prewhere_array_crash +01676_range_hashed_dictionary +01676_reinterpret_as +01676_round_int_ubsan +01677_array_enumerate_bug +01677_bit_float +01678_great_circle_angle +01679_format_readable_time_delta_inf +01680_date_time_add_ubsan +01680_predicate_pushdown_union_distinct_subquery +01681_arg_min_max_if_fix +01681_bloom_filter_nullable_column +01682_gather_utils_ubsan +01683_intdiv_ubsan +01684_geohash_ubsan +01685_json_extract_double_as_float +01686_rocksdb +01690_quantilesTiming_ubsan +01691_DateTime64_clamp +01692_DateTime64_from_DateTime +01698_fix_toMinute +01698_map_populate_overflow +01699_timezoneOffset +01700_deltasum +01700_mod_negative_type_promotion +01700_point_in_polygon_ubsan +01701_clear_projection_and_part_remove +01701_if_tuple_segfault +01701_if_tuple_segfault_allow_tuple_element_aggregation +01702_bitmap_native_integers +01702_rewrite_avg_for_algebraic_optimization +01702_system_numbers_scientific_notation +01702_system_query_log +01702_toDateTime_from_string_clamping +01703_rewrite_aggregate_function_case_insensitive +01704_transform_with_float_key +01705_normalize_case_insensitive_function_names +01706_optimize_normalize_count_variants +01707_join_use_nulls +01709_inactive_parts_to_throw_insert +01710_aggregate_projection_with_hashing +01710_aggregate_projection_with_monotonic_key_expr +01710_force_use_projection +01710_minmax_count_projection +01710_minmax_count_projection_constant_query +01710_minmax_count_projection_count_nullable +01710_minmax_count_projection_modify_partition_key +01710_normal_projection_fix1 +01710_normal_projection_format +01710_normal_projection_join_plan_fix +01710_normal_projection_with_query_plan_optimization +01710_order_by_projections_complete +01710_order_by_projections_incomplete +01710_projection_additional_filters +01710_projection_aggregate_functions_null_for_empty +01710_projection_array_join +01710_projection_detach_part +01710_projection_drop_if_exists +01710_projection_external_aggregate +01710_projection_group_by_order_by +01710_projection_in_index +01710_projection_in_set +01710_projection_materialize_with_missing_columns +01710_projection_mutation +01710_projection_optimize_aggregators_of_group_by_keys +01710_projection_optimize_group_by_function_keys +01710_projection_optimize_materialize +01710_projection_part_check +01710_projection_pk_trivial_count +01710_projection_query_plan_optimization_misc +01710_projection_row_policy +01710_projection_with_alter_conversions +01710_projection_with_ast_rewrite_settings +01710_projection_with_column_transformers +01710_projection_with_joins +01710_projection_with_mixed_pipeline +01710_projection_with_nullable_keys +01710_projections +01710_projections_and_duplicate_columms +01710_projections_group_by_no_key +01710_projections_order_by_complete +01710_projections_order_by_incomplete +01710_query_log_with_projection_info +01711_cte_subquery_fix +01711_decimal_multiplication +01712_no_adaptive_granularity_vertical_merge +01713_table_ttl_old_syntax_zookeeper +01714_alter_drop_version +01715_table_function_view_fix +01715_tuple_insert_null_as_default +01716_array_difference_overflow +01716_decimal_comparison_ubsan +01716_drop_rename_sign_column +01717_int_div_float_too_large_ubsan +01718_subtract_seconds_date +01719_join_timezone +01720_constraints_complex_types +01720_engine_file_empty_if_not_exists +01720_join_implicit_cast +01720_type_map_and_casts +01720_union_distinct_with_limit +01721_constraints_constant_expressions +01721_dictionary_decimal_p_s +01721_engine_file_truncate_on_insert +01732_alters_bad_conversions +01732_bigint_ubsan +01732_explain_syntax_union_query +01732_more_consistent_datetime64_parsing +01732_union_and_union_all +01733_transform_ubsan +01734_datetime64_from_float +01735_join_get_low_card_fix +01735_to_datetime64 +01736_null_as_default +01737_move_order_key_to_prewhere_select_final +01739_index_hint +01744_tuple_cast_to_map_bugfix +01745_alter_delete_view +01746_convert_type_with_default +01746_extract_text_from_html +01746_lc_values_format_bug +01746_test_for_tupleElement_must_be_constant_issue +01747_join_view_filter_dictionary +01747_transform_empty_arrays +01748_partition_id_pruning +01753_mutate_table_predicated_with_table +01760_ddl_dictionary_use_current_database_name +01760_modulo_negative +01760_system_dictionaries +01761_cast_to_enum_nullable +01761_round_year_bounds +01762_datetime64_extended_parsing +01762_deltasumtimestamp +01763_filter_push_down_bugs +01763_support_map_lowcardinality_type +01764_collapsing_merge_adaptive_granularity +01764_prefer_column_name_to_alias +01764_table_function_dictionary +01765_move_to_table_overlapping_block_number +01765_tehran_dst +01766_todatetime64_no_timezone_arg +01768_array_product +01768_extended_range +01769_extended_range_2 +01770_add_months_ubsan +01770_extended_range_3 +01771_datetime64_no_time_part +01772_intdiv_minus_one_ubsan +01772_to_start_of_hour_align +01773_case_sensitive_revision +01773_case_sensitive_version +01773_datetime64_add_ubsan +01773_min_max_time_system_parts_datetime64 +01774_bar_with_illegal_value +01774_case_sensitive_connection_id +01774_ip_address_in_range +01774_ip_address_in_range_2 +01774_tuple_null_in +01776_decrypt_aead_size_check +01777_map_populate_series_ubsan +01778_mmap_cache_infra +01778_test_LowCardinality_FixedString_pk +01778_where_with_column_name +01779_quantile_deterministic_msan +01780_clickhouse_dictionary_source_loop +01780_column_sparse +01780_column_sparse_alter +01780_column_sparse_distinct +01780_column_sparse_filter +01780_column_sparse_materialize +01780_column_sparse_pk +01780_column_sparse_tuple +01780_dict_get_or_null +01780_range_msan +01781_map_op_ubsan +01781_merge_tree_deduplication +01781_token_extractor_buffer_overflow +01782_field_oom +01783_merge_engine_join_key_condition +01784_parallel_formatting_memory +01785_dictionary_element_count +01785_pmj_lc_bug +01786_group_by_pk_many_streams +01787_arena_assert_column_nothing +01787_map_remote +01788_update_nested_type_subcolumn_check +01795_TinyLog_rwlock_ub +01796_Log_rwlock_ub +01797_StripeLog_rwlock_ub +01798_uniq_theta_sketch +01798_uniq_theta_union_intersect_not +01800_log_nested +01801_approx_total_rows_mergetree_reverse +01801_dateDiff_DateTime64 +01802_formatDateTime_DateTime64_century +01802_rank_corr_mann_whitney_over_window +01802_toDateTime64_large_values +01803_const_nullable_map +01803_untuple_subquery +01804_dictionary_decimal256_type +01804_uniq_up_to_ubsan +01809_inactive_parts_to_delay_throw_insert +01811_datename +01811_filter_by_null +01812_has_generic +01813_quantileBfloat16_nans +01817_storage_buffer_parameters +01818_case_float_value_fangyc +01818_move_partition_simple +01820_unhex_case_insensitive +01821_dictionary_primary_key_wrong_order +01821_join_table_mutation +01821_table_comment +01821_to_date_time_ubsan +01822_short_circuit +01822_union_and_constans_error +01823_array_low_cardinality_KuliginStepan +01824_move_to_prewhere_many_columns +01825_json_type_9 +01825_replacing_vertical_merge +01831_max_streams +01832_memory_write_suffix +01833_test_collation_alvarotuso +01835_alias_to_primary_key_cyfdecyf +01836_date_time_keep_default_timezone_on_operations_den_crane +01837_cast_to_array_from_empty_array +01838_system_dictionaries_virtual_key_column +01839_join_to_subqueries_rewriter_columns_matcher +01840_tupleElement_formatting_fuzzer +01845_add_testcase_for_arrayElement +01846_alter_column_without_type_bugfix +01846_null_as_default_for_insert_select +01847_bad_like +01848_partition_value_column +01849_geoToS2 +01851_array_difference_decimal_overflow_ubsan +01851_clear_column_referenced_by_mv +01851_fix_row_policy_empty_result +01851_hedged_connections_external_tables +01851_s2_to_geo +01852_cast_operator +01852_cast_operator_2 +01852_cast_operator_3 +01852_cast_operator_4 +01852_jit_if +01852_map_combinator +01852_multiple_joins_with_union_join +01852_s2_get_neighbours +01853_s2_cells_intersect +01854_dictionary_range_hashed_min_max_attr +01854_s2_cap_contains +01854_s2_cap_union +01855_jit_comparison_constant_result +01856_create_function +01861_explain_pipeline +01866_aggregate_function_interval_length_sum +01866_bit_positions_to_array +01866_datetime64_cmp_with_constant +01866_split_by_regexp +01866_view_persist_settings +01867_fix_storage_memory_mutation +01867_support_datetime64_version_column +01868_order_by_fill_with_datetime64 +01869_function_modulo_legacy +01869_reinterpret_as_fixed_string_uuid +01870_buffer_flush +01871_merge_tree_compile_expressions +01872_functions_to_subcolumns_analyzer +01880_remote_ipv6 +01881_aggregate_functions_versioning +01881_create_as_tuple +01881_join_on_conditions_hash +01881_join_on_conditions_merge +01881_join_on_conditions_merge_decimal +01881_negate_formatting +01881_to_week_monotonic_fix +01881_total_bytes_storage_buffer +01881_union_header_mismatch_bug +01882_check_max_parts_to_merge_at_once +01883_grouping_sets_crash +01888_bloom_filter_hasAny +01888_read_int_safe +01889_key_condition_function_chains +01889_sql_json_functions +01889_tokenize +01890_cross_join_explain_crash +01890_stem +01891_echo +01891_not_in_partition_prune +01891_not_like_partition_prune +01891_partition_by_uuid +01891_partition_hash +01902_dictionary_array_type +01902_self_aliases_in_columns +01902_table_function_merge_db_params +01904_dictionary_default_nullable_type +01906_bigint_accurate_cast_ubsan +01906_h3_to_geo +01906_lc_in_bug +01906_partition_by_multiply_by_zero +01907_multiple_aliases +01908_with_unknown_column +01909_mbtolou +01910_memory_tracking_topk +01910_view_dictionary +01911_logical_error_minus +01912_bad_cast_join_fuzz +01913_fix_column_transformer_replace_format +01913_if_int_decimal +01913_join_push_down_bug +01913_names_of_tuple_literal +01913_summing_mt_and_simple_agg_function_with_lc +01914_index_bgranvea +01914_ubsan_quantile_timing +01915_for_each_crakjie +01915_json_extract_raw_string +01915_merge_prewhere_virtual_column_rand_chao_wang +01916_multiple_join_view_optimize_predicate_chertus +01917_distinct_on +01917_prewhere_column_type +01917_system_data_skipping_indices +01920_not_chain_format +01921_datatype_date32 +01921_not_chain +01922_array_join_with_index +01922_sum_null_for_remote +01923_ttl_with_modify_column +01924_argmax_bitmap_state +01925_date_date_time_comparison +01925_join_materialized_columns +01925_json_as_string_data_in_square_brackets +01925_map_populate_series_on_map +01925_merge_prewhere_table +01925_test_group_by_const_consistency +01925_test_storage_merge_aliases +01925_test_storage_merge_aliases_analyzer +01926_bin_unbin +01926_date_date_time_supertype +01926_order_by_desc_limit +01926_union_all_schmak +01931_storage_merge_no_columns +01932_alter_index_with_order +01932_null_valid_identifier +01933_invalid_date +01934_constexpr_aggregate_function_parameters +01936_empty_function_support_uuid +01936_quantiles_cannot_return_null +01936_three_parts_identifiers_in_wrong_places +01937_nested_chinese +01938_joins_identifiers +01940_pad_string +01940_point_in_polygon_ubsan +01940_totimezone_operator_monotonicity +01941_dict_get_has_complex_single_key +01942_create_table_with_sample +01942_untuple_transformers_msan +01943_log_column_sizes +01943_non_deterministic_order_key +01943_pmj_non_joined_stuck +01943_query_id_check +01944_insert_partition_by +01944_range_max_elements +01948_dictionary_quoted_database_name +01948_heredoc +01950_aliases_bad_cast +01960_lambda_precedence +01961_roaring_memory_tracking +01999_grant_with_replace +02000_default_from_default_empty_column +02000_join_on_const +02000_map_full_text_bloom_filter_index +02001_add_default_database_to_system_users +02001_join_on_const +02001_select_with_filter +02002_parse_map_int_key +02002_sampling_and_unknown_column_bug +02003_WithMergeableStateAfterAggregationAndLimit_LIMIT_BY_LIMIT_OFFSET +02003_bug_from_23515 +02004_intersect_except_const_column +02004_intersect_except_distinct_operators +02004_intersect_except_operators +02004_max_hyperscan_regex_length +02005_log_formatted_queries +02006_client_test_hint_error_name +02006_h3_to_geo_boundary +02006_test_positional_arguments +02006_todatetime64_from_string +02006_use_constants_in_with_and_select +02007_ipv4_and_ipv6_to_and_from_string +02007_join_use_nulls +02007_test_any_all_operators +02008_complex_key_range_hashed_dictionary +02008_materialize_column +02008_test_union_distinct_in_subquery +02008_tuple_to_name_value_pairs +02009_array_join_partition +02010_array_index_bad_cast +02011_dictionary_empty_attribute_list +02011_normalize_utf8 +02011_tuple_vector_functions +02012_changed_enum_type_non_replicated +02012_get_server_port +02012_sha512_fixedstring +02013_bloom_filter_hasAll +02013_emptystring_cast +02013_json_function_null_column +02014_dict_get_nullable_key +02014_map_different_keys +02014_storage_merge_order_by +02015_column_default_dict_get_identifier +02015_division_by_nullable +02015_order_by_with_fill_misoptimization +02016_agg_empty_result_bug_28880 +02016_aggregation_spark_bar +02016_bit_shift_right_for_string_integer +02016_order_by_with_fill_monotonic_functions_removal +02016_summing_mt_aggregating_column +02017_bit_shift_left_for_string_integer +02017_columns_with_dot +02017_columns_with_dot_2 +02017_order_by_with_fill_redundant_functions +02018_multiple_with_fill_for_the_same_column +02019_multiple_weird_with_fill +02020_cast_integer_overflow +02020_exponential_smoothing +02020_exponential_smoothing_cross_block +02021_exponential_sum +02021_exponential_sum_shard +02021_h3_get_faces +02021_h3_is_pentagon +02021_h3_is_res_classIII +02021_map_bloom_filter_index +02021_map_has +02021_prewhere_always_true_where +02021_prewhere_column_optimization +02022_array_full_text_bloom_filter_index +02023_nullable_int_uint_where +02023_parser_number_binary_literal +02024_compile_expressions_with_short_circuit_evaluation +02024_create_dictionary_with_comment +02024_join_on_or_long +02025_dictionary_array_nested_map +02025_having_filter_column +02025_nested_func_for_if_combinator +02025_subcolumns_compact_parts +02026_accurate_cast_or_default +02026_arrayDifference_const +02027_arrayCumSumNonNegative_const +02027_ngrams +02028_create_select_settings +02028_system_data_skipping_indices_size +02028_tokens +02029_quantile_sanitizer +02030_function_mapContainsKeyLike +02030_quantiles_underflow +02030_tuple_filter +02032_short_circuit_least_greatest_bug +02035_isNull_isNotNull_format +02036_jit_short_circuit +02041_conversion_between_date32_and_datetime64 +02041_openssl_hash_functions_test +02041_test_fuzzy_alter +02042_map_get_non_const_key +02044_exists_operator +02045_like_function +02047_alias_for_table_and_database_name +02049_lowcardinality_shortcircuit_crash +02053_INSERT_SELECT_MATERIALIZED +02070_join_on_disk +02095_function_get_os_kernel_version +02096_date_time_1970_saturation +02096_date_time_1970_saturation2 +02096_join_unusual_identifier_begin +02096_sample_by_tuple +02096_sql_user_defined_function_alias +02097_default_dict_get_add_database +02097_initializeAggregationNullable +02097_polygon_dictionary_store_key +02098_date32_comparison +02098_hashed_array_dictionary_simple_key +02098_sql_user_defined_functions_aliases +02099_hashed_array_dictionary_complex_key +02099_sql_user_defined_functions_lambda +02100_alter_scalar_circular_deadlock +02100_limit_push_down_bug +02100_now64_types_bug +02100_replaceRegexpAll_bug +02101_sql_user_defined_functions_create_or_replace +02101_sql_user_defined_functions_drop_if_exists +02102_sql_user_defined_functions_create_if_not_exists +02103_sql_user_defined_functions_composition +02111_function_mapExtractKeyLike +02111_global_context_temporary_tables +02111_modify_table_comment +02111_with_fill_no_rows +02112_skip_index_set_and_or +02112_with_fill_interval +02113_base64encode_trailing_bytes +02113_base64encode_trailing_bytes_1 +02113_format_row +02113_format_row_bug +02113_untuple_func_alias +02115_map_contains_analyzer +02116_tuple_element_analyzer +02119_sumcount +02123_MySQLWire_regression +02124_comparison_betwwen_decimal_and_float +02124_empty_uuid +02124_encrypt_decrypt_nullable +02124_insert_deduplication_token +02124_uncompressed_cache +02125_constant_if_condition_and_not_existing_column +02125_dict_get_type_nullable_fix +02125_fix_storage_filelog +02125_low_cardinality_int256 +02125_recursive_sql_user_defined_functions +02125_transform_decimal_bug +02126_alter_table_alter_column +02126_dist_desc +02126_identity_user_defined_function +02126_lc_window_functions +02127_storage_join_settings_with_persistency +02128_apply_lambda_parsing +02128_cast_nullable +02128_hex_bin_on_uuid +02129_add_column_add_ttl +02129_window_functions_disable_optimizations +02131_materialize_column_cast +02131_mv_many_chunks_bug +02131_remove_columns_in_subquery +02131_row_policies_combination +02131_skip_index_not_materialized +02131_used_row_policies_in_query_log +02132_empty_mutation_livelock +02133_classification +02133_final_prewhere_where_lowcardinality_replacing +02133_issue_32458 +02136_scalar_subquery_metrics +02137_mv_into_join +02139_MV_with_scalar_subquery +02144_avg_ubsan +02146_mv_non_phys +02148_cast_type_parsing +02148_issue_32737 +02148_sql_user_defined_function_subquery +02149_read_in_order_fixed_prefix +02150_replace_regexp_all_empty_match +02151_lc_prefetch +02151_replace_regexp_all_empty_match_alternative +02152_count_distinct_optimization +02152_csv_tuple +02152_dictionary_date32_type +02152_short_circuit_throw_if +02154_bit_slice_for_fixedstring +02154_bit_slice_for_string +02154_bitmap_contains +02154_default_keyword_insert +02155_binary_op_between_float_and_decimal +02155_create_table_w_timezone +02155_dictionary_comment +02155_h3_to_center_child +02155_multiple_inserts_for_formats_with_suffix +02155_nested_lc_defalut_bug +02155_parse_date_lowcard_default_throw +02155_read_in_order_max_rows_to_read +02156_minus_op_with_datatime64 +02156_storage_merge_prewhere_not_ready_set_bug +02158_contingency +02158_interval_length_sum +02158_proportions_ztest +02158_ztest +02159_left_right +02160_h3_cell_area_m2 +02160_h3_cell_area_rads2 +02160_h3_hex_area_Km2 +02160_monthname +02160_special_functions +02161_array_first_last +02162_array_first_last_index +02162_range_hashed_dictionary_ddl_expression +02163_operators +02163_shard_num +02164_materialized_view_support_virtual_column +02165_h3_edge_length_km +02165_h3_exact_edge_length_Km +02165_h3_exact_edge_length_m +02165_h3_exact_edge_length_rads +02165_h3_num_hexagons +02165_replicated_grouping_sets +02167_columns_with_dots_default_values +02168_avro_bug +02169_fix_view_offset_limit_setting +02174_cte_scalar_cache +02174_cte_scalar_cache_mv +02176_dict_get_has_implicit_key_cast +02176_optimize_aggregation_in_order_empty +02176_toStartOfWeek_overflow_pruning +02177_merge_optimize_aggregation_in_order +02177_sum_if_not_found +02178_column_function_insert_from +02179_bool_type +02179_degrees_radians +02179_key_condition_no_common_type +02179_map_cast_to_array +02179_range_hashed_dictionary_invalid_interval +02179_sparse_columns_detach +02180_insert_into_values_settings +02181_dictionary_attach_detach +02181_sql_user_defined_functions_invalid_lambda +02183_array_tuple_literals_remote +02183_combinator_if +02183_dictionary_date_types +02183_dictionary_no_attributes +02184_default_table_engine +02184_ipv6_cast_test +02184_ipv6_select_parsing +02184_range_hashed_dictionary_outside_range_values +02185_arraySlice_negative_offset_size +02185_range_hashed_dictionary_open_ranges +02185_split_by_char +02186_range_hashed_dictionary_intersecting_intervals +02187_insert_values_with_mv +02187_test_final_and_limit_modifier +02188_parser_dictionary_primary_key +02188_table_function_format +02189_join_type_conversion +02190_current_metrics_query +02191_nested_with_dots +02191_parse_date_time_best_effort_more_cases +02192_comment +02193_async_insert_tcp_client_1 +02200_use_skip_indexes +02201_use_skip_indexes_if_final +02202_use_skip_indexes_if_final +02205_ephemeral_1 +02205_map_populate_series_non_const +02205_postgresql_functions +02206_array_starts_ends_with +02206_information_schema_show_database +02206_minimum_sample_size +02207_key_condition_floats +02207_subseconds_intervals +02207_ttl_move_if_exists +02209_short_circuit_node_without_parents +02210_append_to_dev_dull +02210_toColumnTypeName_toLowCardinality_const +02211_jsonl_format_extension +02212_cte_and_table_alias +02212_h3_get_pentagon_indexes +02212_h3_get_res0_indexes +02212_h3_point_dist +02220_array_join_format +02222_allow_experimental_projection_optimization__enable_global_with_statement +02223_h3_test_const_columns +02223_insert_select_schema_inference +02224_s2_test_const_columns +02226_analyzer_or_like_combine +02226_async_insert_table_function +02226_in_untuple_issue_34810 +02226_low_cardinality_text_bloom_filter_index +02227_union_match_by_name +02230_create_table_as_ignore_ttl +02231_bloom_filter_sizing +02231_hierarchical_dictionaries_constant +02232_functions_to_subcolumns_alias +02232_partition_pruner_mixed_constant_type +02232_partition_pruner_single_point +02233_interpolate_1 +02233_set_enable_with_statement_cte_perf +02233_with_total_empty_chunk +02234_column_function_short_circuit +02234_position_case_insensitive_utf8 +02235_add_part_offset_virtual_column +02235_check_table_sparse_serialization +02236_explain_pipeline_join +02236_json_each_row_empty_map_schema_inference +02240_asof_join_biginteger +02240_get_type_serialization_streams +02241_array_first_last_or_null +02241_short_circuit_short_column +02242_if_then_else_null_bug +02242_make_date +02242_make_date_mysql +02242_negative_datetime64 +02242_optimize_to_subcolumns_no_storage +02242_subcolumns_sizes +02242_throw_if_constant_argument +02243_in_ip_address +02243_ipv6_long_parsing +02244_casewithexpression_return_type +02244_column_names_in_shcmea_inference +02244_ip_address_invalid_insert +02244_lowcardinality_hash_join +02244_make_datetime +02245_format_string_stack_overflow +02245_join_with_nullable_lowcardinality_crash +02245_make_datetime64 +02245_weird_partitions_pruning +02246_flatten_tuple +02247_fix_extract_parser +02248_nullable_custom_types_to_string +02249_insert_select_from_input_schema_inference +02250_insert_select_from_file_schema_inference +02251_alter_enum_nested_struct +02251_last_day_of_month +02252_jit_profile_events +02252_reset_non_existing_setting +02260_alter_compact_part_drop_nested_column +02264_format_insert_compression +02264_format_insert_infile +02265_cross_join_empty_list +02265_limit_push_down_over_window_functions_bug +02265_per_table_ttl_mutation_on_change +02265_rename_join_ordinary_to_atomic +02266_auto_add_nullable +02267_empty_arrays_read_reverse +02267_join_dup_columns_issue36199 +02267_special_operator_parse_alias_check +02267_type_inference_for_insert_into_function_null +02268_json_wrong_root_type_in_schema_inference +02269_create_table_with_collation +02269_insert_select_with_format_without_schema_inference +02269_to_start_of_interval_overflow +02271_fix_column_matcher_and_column_transformer +02271_int_sql_compatibility +02271_temporary_table_show_rows_bytes +02276_full_sort_join_unsupported +02277_full_sort_join_misc +02280_add_query_level_settings +02281_limit_by_distributed +02282_array_distance +02283_array_norm +02285_hex_bin_support_more_types +02286_convert_decimal_type +02286_function_wyhash +02286_quantile_tdigest_infinity +02286_vertical_merges_missed_column +02287_ephemeral_format_crash +02287_legacy_column_name_of_tuple_literal_over_distributed +02291_dictionary_scalar_subquery_reload +02292_create_function_validate +02292_h3_unidirectional_funcs +02292_hash_array_tuples +02292_nested_not_flattened_detach +02293_arrow_dictionary_indexes +02293_compatibility_ignore_auto_increment_in_create_table +02293_grouping_function +02293_h3_distance +02293_h3_hex_ring +02293_h3_line +02293_ilike_on_fixed_strings +02293_optimize_aggregation_in_order_Array_functions +02294_decimal_second_errors +02294_dictionaries_hierarchical_index +02294_fp_seconds_profile +02294_nothing_arguments_in_functions +02294_optimize_aggregation_in_order_prefix_Array_functions +02294_stringsearch_with_nonconst_needle +02294_system_certificates +02295_global_with_in_subquery +02296_nullable_arguments_in_array_filter +02302_clash_const_aggegate_join +02302_column_decl_null_before_defaul_value +02302_defaults_in_columnar_formats +02302_join_auto_lc_nullable_bug +02302_lc_nullable_string_insert_as_number +02302_projections_GROUP_BY_ORDERY_BY_optimize_aggregation_in_order +02303_cast_nullable_to_custom_types +02304_grouping_set_order_by +02304_grouping_sets_with_rollup_cube +02304_orc_arrow_parquet_string_as_string +02306_part_types_profile_events +02306_window_move_row_number_fix +02307_join_get_array_null +02310_generate_multi_columns_with_uuid +02310_uuid_v7 +02311_create_table_with_unknown_format +02311_hashed_array_dictionary_hierarchical_functions +02311_normalize_utf8_constant +02311_range_hashed_dictionary_range_cast +02312_is_not_null_prewhere +02312_parquet_orc_arrow_names_tuples +02313_avro_records_and_maps +02313_cross_join_dup_col_names +02313_dump_column_structure_low_cardinality +02313_group_by_modifiers_with_non_default_types +02313_multiple_limits +02313_negative_datetime64 +02313_test_fpc_codec +02314_csv_tsv_skip_first_lines +02315_grouping_constant_folding +02315_pmj_union_ubsan_35857 +02315_replace_multiif_to_if +02316_cast_to_ip_address_default_column +02316_const_string_intersact +02316_expressions_with_window_functions +02316_hierarchical_dictionaries_nullable_parent_key +02316_literal_no_octal +02316_values_table_func_bug +02317_distinct_in_order_optimization +02317_functions_with_nothing +02317_like_with_trailing_escape +02318_template_schema_inference_bug +02319_dict_get_check_arguments_size +02319_lightweight_delete_on_merge_tree +02319_lightweight_delete_on_merge_tree_compact_parts +02319_no_columns_in_row_level_filter +02319_quantile_interpolated_weighted +02319_timeslots_dt64 +02320_alter_columns_with_dots +02320_mapped_array_witn_const_nullable +02321_nested_short_circuit_functions +02323_null_modifier_in_table_function +02324_map_combinator_bug +02325_compatibility_setting_2 +02325_dates_schema_inference +02326_numbers_from_json_strings_schema_inference +02326_settings_changes_system_table +02327_try_infer_integers_schema_inference +02336_sort_optimization_with_fill +02337_analyzer_columns_basic +02337_base58 +02337_check_translate_qualified_names_matcher +02337_multiple_joins_original_names +02338_analyzer_constants_basic +02339_analyzer_matcher_basic +02340_analyzer_functions +02340_union_header +02341_analyzer_aliases_basics +02341_global_join_cte +02342_analyzer_compound_types +02343_analyzer_column_transformers_strict +02343_analyzer_lambdas +02343_analyzer_lambdas_issue_28083 +02343_analyzer_lambdas_issue_36677 +02343_create_empty_as_select +02343_group_by_use_nulls_distributed +02344_analyzer_multiple_aliases_for_expression +02344_distinct_limit_distiributed +02345_analyzer_subqueries +02345_create_table_allow_trailing_comma +02345_partial_sort_transform_optimization +02345_striped_compact_parts +02346_exclude_materialize_skip_indexes_on_insert +02346_exclude_materialize_skip_indexes_on_merge +02346_function_hasPhrase +02346_non_negative_derivative +02346_position_countsubstrings_zero_byte +02346_system_tokenizers +02346_text_index_SplitByRegexp_tokenizer +02346_text_index_add_share_nested_offsets_disabled +02346_text_index_add_with_invalid_alter_command +02346_text_index_array_keyword_tokenizer_alias +02346_text_index_array_support +02346_text_index_bug101913 +02346_text_index_bug102497 +02346_text_index_bug103812 +02346_text_index_bug106460 +02346_text_index_bug106809 +02346_text_index_bug108519_qcc_skip_index +02346_text_index_bug110038 +02346_text_index_bug110039 +02346_text_index_bug110092 +02346_text_index_bug110350 +02346_text_index_bug111422 +02346_text_index_bug111788 +02346_text_index_bug113320_shared_prewhere_where_column +02346_text_index_bug116476 +02346_text_index_bug47393 +02346_text_index_bug54541 +02346_text_index_bug59039 +02346_text_index_bug68649 +02346_text_index_bug84805 +02346_text_index_bug87887 +02346_text_index_bug88080 +02346_text_index_bug89605 +02346_text_index_bug90609 +02346_text_index_bug90778 +02346_text_index_bug92921 +02346_text_index_bug93432 +02346_text_index_byte_size_reporting +02346_text_index_coalescingmergetree +02346_text_index_collapsingmergetree +02346_text_index_creation +02346_text_index_creation_chinese +02346_text_index_default_granularity +02346_text_index_detach_attach +02346_text_index_dictionary_cache +02346_text_index_dictionary_frontcoding +02346_text_index_direct_read +02346_text_index_direct_read_crash +02346_text_index_direct_read_nullable +02346_text_index_direct_read_with_query_condition_cache +02346_text_index_direct_read_with_top_k +02346_text_index_drop_caches +02346_text_index_duplicate_tokens +02346_text_index_edge_cases +02346_text_index_empty_string_equals +02346_text_index_fallback_sparse_column +02346_text_index_function_hasAnyAllTokens_partially_materialized +02346_text_index_function_hasPhrase +02346_text_index_function_hasPhrase_positions +02346_text_index_function_hasPhrase_postprocessor +02346_text_index_function_ilike +02346_text_index_function_like +02346_text_index_function_like_affix +02346_text_index_function_like_array_patterns +02346_text_index_functions_select_expression +02346_text_index_functions_with_empty_needle +02346_text_index_has_any_tokens_sparse_grams +02346_text_index_hastoken_separator_needle +02346_text_index_header_cache +02346_text_index_hint +02346_text_index_hint_profileevents +02346_text_index_icu_tokenizer +02346_text_index_ilike_utf8_case_folding +02346_text_index_keyvaluepairs_in +02346_text_index_keyvaluepairs_map_contains_key_value +02346_text_index_keyvaluepairs_tokenizer +02346_text_index_like_unknown_backslash_escape +02346_text_index_lwd +02346_text_index_match_predicate +02346_text_index_materialization +02346_text_index_materialize_subcolumns +02346_text_index_mergeTreeTextIndex +02346_text_index_multiple_blocks +02346_text_index_nullable +02346_text_index_on_expressions +02346_text_index_on_lower_column +02346_text_index_on_subcolumns +02346_text_index_optimize_trivial_count +02346_text_index_part_format +02346_text_index_partially_materialized +02346_text_index_phrase_search +02346_text_index_positions_build_overflow +02346_text_index_posting_list_compression +02346_text_index_posting_list_compression_data_size_validation +02346_text_index_postings_cache +02346_text_index_postprocessor +02346_text_index_postprocessor_in_filter +02346_text_index_postprocessor_long_tokens +02346_text_index_postprocessor_materialization +02346_text_index_postprocessor_predicates +02346_text_index_postprocessor_stem +02346_text_index_postprocessor_tokenizers +02346_text_index_preprocessor +02346_text_index_preprocessor_all_positions +02346_text_index_preprocessor_lambda_collision +02346_text_index_preprocessor_partially_materialized +02346_text_index_qualify_filter_name_mismatch +02346_text_index_queries +02346_text_index_replacingmergetree1 +02346_text_index_replacingmergetree2 +02346_text_index_split_by_regexp_extract +02346_text_index_summingmergetree +02346_text_index_tokenizer_partially_materialized +02346_text_index_transform_access +02346_text_index_transform_data_access +02346_text_index_vertical_merge +02346_text_token_index_transform_null_in +02346_to_hour_monotonicity_fix +02346_to_hour_monotonicity_fix_2 +02347_rank_corr_nan +02347_rank_corr_size_overflow +02351_Map_combinator_dist +02352_grouby_shadows_arg +02352_lightweight_delete +02353_ascii +02353_explain_ast_optimize +02353_isnullable +02353_partition_prune_nullable_key +02353_simdjson_buffer_overflow +02353_translate +02354_array_lowcardinality +02354_numeric_literals_with_underscores +02354_parse_timedelta +02354_read_in_order_prewhere +02354_tuple_element_with_default +02354_tuple_lowcardinality +02354_vector_search_adaptive_index_granularity +02354_vector_search_and_other_skipping_indexes +02354_vector_search_array_join +02354_vector_search_assign_centroid +02354_vector_search_binary_quantization +02354_vector_search_bug100556 +02354_vector_search_bug110405 +02354_vector_search_bug112233 +02354_vector_search_choose_correct_index +02354_vector_search_concurrent_readers +02354_vector_search_default_granularity +02354_vector_search_detach_attach +02354_vector_search_different_array_sizes +02354_vector_search_dotted_search_column +02354_vector_search_drop_table_clear_cache +02354_vector_search_empty_arrays_or_default_values +02354_vector_search_final_prewhere +02354_vector_search_hierarchical_kmeans +02354_vector_search_incident1654 +02354_vector_search_index_creation_negative +02354_vector_search_l2distance +02354_vector_search_lazy_materialization +02354_vector_search_multi_dot_column_name +02354_vector_search_multiple_indexes +02354_vector_search_multiple_marks +02354_vector_search_nonindexed_columns +02354_vector_search_part_format +02354_vector_search_pre_and_post_filtering +02354_vector_search_quantize_codec +02354_vector_search_quantize_codec_const_array +02354_vector_search_quantize_codec_hartley_guard +02354_vector_search_quantize_codec_int8 +02354_vector_search_quantize_codec_invalid_params +02354_vector_search_quantize_codec_kronecker +02354_vector_search_quantize_codec_merge_variant +02354_vector_search_quantize_codec_mrl +02354_vector_search_quantize_codec_negative +02354_vector_search_quantize_codec_no_alter +02354_vector_search_quantize_codec_planner +02354_vector_search_quantize_codec_planner_edge_cases +02354_vector_search_quantize_codec_pq +02354_vector_search_quantize_codec_pq_invalid_params +02354_vector_search_quantize_codec_pq_merge +02354_vector_search_quantize_codec_pq_multigranule +02354_vector_search_quantize_codec_pq_part_type +02354_vector_search_quantize_codec_prewhere +02354_vector_search_quantize_codec_rabitq_simd +02354_vector_search_quantize_codec_shadowed_subcolumn +02354_vector_search_quantize_codec_subcolumn_read_bytes +02354_vector_search_quantize_codec_turboquant +02354_vector_search_quantized_codes_array_join +02354_vector_search_quantized_codes_multi_dot_column_name +02354_vector_search_queries +02354_vector_search_reference_vector_types +02354_vector_search_rescoring +02354_vector_search_rescoring_and_prewhere +02354_vector_search_rescoring_distance_in_select_list +02354_vector_search_row_policy +02354_vector_search_select_on_vector_column +02354_vector_search_subquery +02354_vector_search_undefined_behavior +02354_vector_search_unquoted_index_parameters +02354_vector_search_unrelated_dotted_column +02354_vector_search_vector_similarity_index_cache +02354_vector_search_where_on_vector_column +02354_vector_search_with_huge_dimension +02354_vector_search_with_second_index +02354_window_expression_with_aggregation_expression +02354_with_statement_non_exist_column +02355_column_type_name_lc +02355_control_block_size_in_aggregator +02355_control_block_size_in_array_join +02356_trivial_count_with_empty_set +02357_file_default_value +02360_small_notation_h_for_hour_interval +02362_part_log_merge_algorithm +02363_mapupdate_improve +02364_dictionary_datetime_64_attribute_crash +02364_multiSearch_function_family +02364_setting_cross_to_inner_rewrite +02364_window_case +02365_multisearch_random_tests +02366_asof_optimize_predicate_bug_37813 +02366_decimal_agg_state_conversion +02366_direct_dictionary_dict_has +02366_explain_query_tree +02366_kql_distinct +02366_kql_extend +02366_kql_func_binary +02366_kql_func_dynamic +02366_kql_func_iif +02366_kql_func_math +02366_kql_func_scalar +02366_kql_func_string +02366_kql_mvexpand +02366_kql_summarize +02366_kql_tabular +02366_normalize_aggregate_function_types_and_states +02366_window_function_order_by +02366_with_fill_date +02367_analyzer_table_alias_columns +02367_join_pushdown_column_not_found +02367_optimize_trivial_count_with_array_join +02368_analyzer_table_functions +02369_analyzer_array_join_function +02370_analyzer_in_function +02370_extractAll_regress +02371_analyzer_join_cross +02371_create_temporary_table_as_with_columns_list +02371_select_projection_normal_agg +02372_nowInBlock +02373_analyzer_join_use_nulls +02374_analyzer_array_join +02374_combine_multi_if_and_count_if_opt +02374_in_tuple_index +02374_regexp_replace +02375_analyzer_union +02375_scalar_lc_cte +02376_analyzer_in_function_subquery +02376_arrow_dict_with_string +02377_analyzer_in_function_set +02377_executable_function_settings +02377_fix_file_virtual_column +02377_modify_column_from_lc +02377_modify_column_from_nested +02377_optimize_sorting_by_input_stream_properties +02377_optimize_sorting_by_input_stream_properties_2 +02378_analyzer_projection_names +02379_analyzer_subquery_depth +02380_analyzer_join_sample +02381_analyzer_join_final +02381_compress_marks_and_primary_key +02381_join_dup_columns_in_plan +02381_parse_array_of_tuples +02381_setting_value_auto +02382_analyzer_matcher_join_using +02382_join_and_filtering_set +02383_analyzer_merge_tree_self_join +02383_array_signed_const_positive_index +02383_schema_inference_hints +02384_analyzer_dict_get_join_get +02384_decrypt_bad_arguments +02385_analyzer_aliases_compound_expression +02385_profile_events_overflow +02386_analyzer_in_function_nested_subqueries +02386_set_columns_order +02387_analyzer_cte +02387_parse_date_as_datetime +02388_analyzer_recursive_lambda +02388_conversion_from_string_with_datetime64_to_date_and_date32 +02389_analyzer_nested_lambda +02391_hashed_dictionary_shards +02391_recursive_buffer +02392_every_setting_must_have_documentation +02393_every_metric_must_have_documentation +02394_every_profile_event_must_have_documentation +02395_every_merge_tree_setting_must_have_documentation +02398_subquery_where_pushdown_and_limit_offset +02399_merge_tree_mutate_in_partition +02401_merge_tree_old_tmp_dirs_cleanup +02402_merge_engine_with_view +02403_enable_extended_results_for_datetime_functions +02403_ttl_column_multiple_times +02404_lightweight_delete_vertical_merge +02404_schema_inference_cache_respect_format_settings +02405_avro_read_nested +02405_pmj_issue_40335 +02406_try_read_datetime64_bug +02407_array_element_from_map_wrong_type +02408_to_fixed_string_short_circuit +02409_url_format_detection +02410_csv_empty_fields_inference +02410_to_decimal_or_default +02414_all_new_table_functions_must_be_documented +02415_all_new_functions_must_be_documented +02416_grouping_function_compatibility +02416_in_set_same_ast_diff_columns +02416_input_json_formats +02416_json_tuple_to_array_schema_inference +02416_rocksdb_delete_update +02416_row_policy_always_false_index +02417_from_select_syntax +02417_null_variadic_behaviour +02418_tautological_if_index +02419_contingency_array_nullable +02420_final_setting_analyzer +02420_key_condition_actions_dag_bug_40599 +02421_decimal_in_precision_issue_41125 +02421_explain_subquery +02422_insert_different_granularity +02422_msgpack_uuid_wrong_column +02422_read_numbers_as_strings +02423_multidimensional_array_get_data_at +02424_pod_array_overflow +02425_categorical_information_value_properties +02426_create_suspicious_fixed_string +02426_pod_array_overflow_2 +02426_pod_array_overflow_3 +02426_to_string_nullable_fixedstring +02427_column_nullable_ubsan +02427_msan_group_array_resample +02428_decimal_in_floating_point_literal +02428_delete_with_settings +02428_index_analysis_with_null_literal +02428_parameterized_view_param_in_select_section +02428_partial_sort_optimization_bug +02429_groupBitmap_chain_state +02429_offset_pipeline_stuck_bug +02430_bitmap_transform_exception_code +02447_join_numeric_low_cardinality +02452_check_low_cardinality +02453_check_path_in_errors_logger +02454_compressed_marks_in_compact_part +02454_disable_mergetree_with_lightweight_delete_column +02455_count_state_asterisk +02455_duplicate_column_names_in_schema_inference +02455_extract_fixed_string_from_nested_json +02455_improve_feedback_when_replacing_partition_with_different_primary_key +02456_BLAKE3_hash_function_test +02456_aggregate_state_conversion +02456_bloom_filter_assert +02456_datetime_schema_inference +02456_summing_mt_lc +02457_datediff_via_unix_epoch +02457_key_condition_with_types_that_cannot_be_nullable +02457_morton_coding +02457_morton_coding_with_mask +02457_parse_date_time_best_effort +02458_datediff_date32 +02458_default_setting +02458_key_condition_not_like_prefix +02458_relax_too_many_parts +02458_use_structure_from_insertion_table +02459_group_by_all +02459_low_cardinality_uint128_aggregator +02459_materialized_view_default_value +02459_read_in_order_bufer +02460_prewhere_row_level_policy +02461_join_lc_issue_42380 +02461_mullable_pk_monotonicity_bug +02461_prewhere_row_level_policy_lightweight_delete +02461_welch_t_test_fuzz +02462_distributions +02462_match_regexp_pk +02462_number_to_datetype +02463_julian_day_ubsan +02464_decimal_scale_buffer_overflow +02465_limit_trivial_max_rows_to_read +02466_distributed_query_profiler +02467_cross_join_three_table_functions +02467_set_with_lowcardinality_type +02468_has_any_tuple +02469_fix_aliases_parser +02469_interval_msan +02469_obfuscate_table_function +02470_suspicious_low_cardinality_msan +02471_wrong_date_monotonicity +02472_segfault_expression_parser +02473_extract_low_cardinality_from_json +02473_map_element_nullable +02473_prewhere_with_bigint +02474_analyzer_subqueries_table_expression_modifiers +02474_create_user_query_fuzzer_bug +02474_extract_fixedstring_from_json +02474_fix_function_parser_bug +02474_timeDiff_UTCTimestamp +02474_unhex_in_fix_string +02475_analysis_of_variance +02475_analyzer_join_tree_subquery +02475_analyzer_subquery_compound_expression +02475_bad_cast_low_cardinality_to_string_bug +02475_date_time_schema_inference_bug +02475_join_bug_42832 +02475_or_function_alias_and_const_where +02475_packed_storage_for_parts +02475_positive_modulo +02475_precise_decimal_arithmetics +02475_split_with_max_substrings +02476_analyzer_join_with_unused_columns +02476_fix_cast_parser_bug +02476_fuse_sum_count +02476_query_parameters_insert +02476_query_parameters_without_serialisation +02477_age +02477_age_date32 +02477_age_datetime64 +02477_analyzer_array_join_with_join +02477_analyzer_ast_key_condition_crash +02477_exists_fuzz_43478 +02477_fuse_quantiles +02477_invalid_reads +02477_is_null_parser +02477_logical_expressions_optimizer_issue_89803 +02477_logical_expressions_optimizer_low_cardinality +02477_single_value_data_string_regression +02478_analyzer_table_expression_aliases +02478_factorial +02478_projection_and_alter_low_cardinality +02478_projection_with_group_by_alter +02478_window_frame_type_groups +02479_analyzer_aggregation_crash +02479_analyzer_join_with_constants +02479_if_with_null_and_cullable_const +02479_mysql_connect_to_self +02479_nullable_primary_key_non_first_column +02480_analyzer_alias_nullptr +02480_every_asynchronous_metric_must_have_documentation +02480_parse_date_time_best_effort_math_overflow +02480_suspicious_lowcard_in_key +02480_tlp_nan +02481_aggregation_in_order_plan +02481_analyzer_join_alias_unknown_identifier_crash +02481_analyzer_optimize_aggregation_arithmetics +02481_analyzer_optimize_grouping_sets_keys +02481_array_join_with_map +02481_default_value_used_in_row_level_filter +02481_fix_parameters_parsing +02481_i43247_ubsan_in_minmaxany +02481_inject_random_order_for_select_without_order_by +02481_low_cardinality_with_short_circuit_functins +02481_low_cardinality_with_short_circuit_functins_mutations +02481_merge_array_join_sample_by +02481_pk_analysis_with_enum_to_string +02481_prewhere_filtered_rows_div_by_zero +02481_xxh3_hash_function +02482_execute_functions_before_sorting_bug +02482_if_with_nothing_argument +02482_value_block_assert +02483_check_virtuals_shile_using_structure_from_insertion_table +02483_merge_projections +02483_substitute_udf_create +02484_substitute_udf_storage_args +02489_analyzer_indexes +02490_replacing_merge_tree_is_deleted_column_transform_opt +02493_analyzer_sum_if_to_count_if +02493_analyzer_table_functions_untuple +02493_analyzer_uniq_injective_functions_elimination +02493_do_not_assume_that_the_original_query_was_valid_when_transforming_joins +02493_max_streams_for_merge_tree_reading +02493_numeric_literals_with_underscores +02494_analyzer_compound_expression_crash_fix +02494_analyzer_cte_resolution_in_subquery_fix +02494_array_function_range +02494_combinators_with_null_argument +02494_optimize_group_by_function_keys_and_alias_columns +02494_parser_string_binary_literal +02494_query_cache_case_agnostic_matching +02494_query_cache_compression +02494_query_cache_drop_cache +02494_query_cache_eligible_queries +02494_query_cache_events +02494_query_cache_exception_handling +02494_query_cache_explain +02494_query_cache_log_comment +02494_query_cache_metrics +02494_query_cache_min_query_duration +02494_query_cache_min_query_runs +02494_query_cache_nondeterministic_functions +02494_query_cache_normalize_ast +02494_query_cache_passive_usage +02494_query_cache_query_log +02494_query_cache_secrets +02494_query_cache_sparse_columns +02494_query_cache_squash_partial_results +02494_query_cache_system_clear_on_cluster +02494_query_cache_tag +02494_query_cache_udf_sql +02494_query_cache_user_quotas +02494_query_cache_user_quotas_after_drop +02495_analyzer_storage_join +02495_concat_with_separator +02495_sum_if_to_count_if_bug +02496_format_datetime_in_joda_syntax +02496_from_unixtime_in_joda_syntax +02497_analyzer_sum_if_count_if_pass_crash_fix +02497_having_without_actual_aggregation_bug +02497_if_transform_strings_to_enum +02497_schema_inference_nulls +02497_storage_join_right_assert +02498_analyzer_aggregate_functions_arithmetic_operations_pass_fix +02498_analyzer_settings_push_down +02498_storage_join_key_positions +02499_analyzer_aggregate_function_lambda_crash_fix +02499_analyzer_set_index +02499_escaped_quote_schema_inference +02499_extract_key_value_pairs_multiple_input +02499_read_json_objects_as_strings +02500_analyzer_storage_view_crash_fix +02500_prevent_drop_nested_if_empty_part +02501_analyzer_expired_context_crash_fix +02502_analyzer_insert_select_crash_fix +02502_bad_values_schema_inference +02502_fuzz_bad_cast_to_ast_literal +02503_bad_compatibility_setting +02503_in_lc_const_args_bug +02503_join_switch_alias_fuzz +02503_mysql_compat_utc_timestamp +02504_bar_fractions +02504_disallow_arrayjoin_in_mutations +02504_explain_ast_insert +02504_parse_datetime_best_effort_calebeaires +02504_regexp_dictionary_table_source +02504_sparse_nullable_columns +02505_forbid_paths_in_datetime_timezone +02506_date_time64_floating_point_negative_value +02507_to_unix_timestamp_overflow +02508_index_analysis_to_date_timezone +02509_h3_arguments +02510_group_by_prewhere_null +02511_complex_literals_as_aggregate_function_parameters +02512_array_join_name_resolution +02513_analyzer_duplicate_alias_crash_fix +02513_analyzer_sort_msan +02513_broken_datetime64_init_on_mac +02513_date_string_comparison +02513_prewhere_combine_step_filters +02513_validate_data_types +02514_analyzer_drop_join_on +02514_bad_index_granularity +02514_if_with_lazy_low_cardinality +02514_null_dictionary_source +02514_tsv_zero_started_number +02515_aggregate_functions_statistics +02515_analyzer_null_for_empty +02515_and_or_if_multiif_not_return_lc +02515_distinct_zero_size_key_bug_44831 +02515_generate_ulid +02515_tuple_lambda_parsing +02516_projections_and_context +02516_projections_with_rollup +02517_executable_pool_bad_input_query +02517_union_columns_order +02517_uuid_parsing +02518_delete_on_materialized_view +02518_merge_engine_nullable_43324 +02518_qualified_asterisks_alias_table_name +02518_rewrite_aggregate_function_with_if +02519_monotonicity_fuzz +02520_group_array_last +02521_analyzer_aggregation_without_column +02521_analyzer_array_join_crash +02521_cannot_find_column_in_projection +02521_grouping_sets_plus_memory_efficient_aggr +02521_lightweight_delete_and_ttl +02521_to_custom_day_of_week +02523_array_shuffle +02524_fuzz_and_fuss +02524_fuzz_and_fuss_2 +02525_analyzer_function_in_crash_fix +02525_different_engines_in_temporary_tables +02525_jit_logical_functions_nan +02525_range_hashed_dictionary_update_field +02527_storage_merge_prewhere_different_type +02530_ip_part_id +02531_ipv4_arithmetic +02531_semi_join_null_const_bug +02531_storage_join_null_44940 +02532_analyzer_aggregation_with_rollup +02532_profileevents_server_startup_time +02533_generate_random_schema_inference +02534_analyzer_grouping_function +02534_default_granularity +02534_join_prewhere_bug +02534_keyed_siphash +02535_analyzer_limit_offset +02535_ip_parser_not_whole +02536_date_from_number_inference_fix +02536_delta_gorilla_corruption +02536_replace_with_nonconst_needle_and_replacement +02536_system_sync_file_cache +02537_system_formats +02538_analyzer_create_table_as_select +02538_ngram_bf_index_with_null +02538_nullable_array_tuple_timeseries +02539_generate_random_ip +02539_generate_random_low_cardinality +02539_generate_random_map +02539_vertical_merge_compact_parts +02540_analyzer_matcher_alias_materialized_columns +02540_date_column_consistent_insert_behaviour +02540_duplicate_primary_key +02540_duplicate_primary_key2 +02541_analyzer_grouping_sets_crash_fix +02541_empty_function_support_ip +02541_multiple_ignore_with_nested_select +02541_tuple_element_with_null +02542_case_no_else +02542_table_function_format +02542_transform_new +02542_transform_old +02551_ipv4_implicit_uint64 +02552_analyzer_optimize_group_by_function_keys_crash +02552_check_referential_table_dependencies +02552_inner_join_with_where_true +02552_siphash128_reference +02552_sparse_columns_intersect +02554_invalid_create_view_syntax +02554_rewrite_count_distinct_if_with_count_distinct_implementation +02559_add_parts +02559_ip_types_bloom +02559_multiple_read_steps_in_prewhere +02559_multiple_read_steps_in_prewhere_fuzz +02559_multiple_read_steps_in_prewhere_missing_columns +02559_multiple_read_steps_in_prewhere_missing_columns_2 +02559_multiple_read_steps_in_prewhere_reuse_computation +02559_nested_multiple_levels_default +02560_agg_state_deserialization_hash_table_crash +02560_analyzer_materialized_view +02560_count_digits +02560_null_as_default +02560_quantile_min_max +02560_regexp_denial_of_service +02560_window_ntile +02560_with_fill_int256_int +02561_sorting_constants_and_distinct_crash +02561_with_fill_date_datetime_incompatible +02562_regexp_extract +02562_with_fill_nullable +02564_analyzer_cross_to_inner +02564_analyzer_ssb_cross_to_inner +02564_date_format +02564_read_in_order_final_desc +02565_analyzer_limit_settings +02565_update_empty_nested +02567_and_consistency +02568_and_consistency +02568_array_map_const_low_cardinality +02568_json_array_length +02569_order_by_aggregation_result +02572_max_intersections +02573_insert_null_as_default_null_as_empty_nested +02573_quantile_fuse_msan +02574_suspicious_low_cardinality_msan +02575_map_hashing_msan +02575_merge_prewhere_default_expression +02575_merge_prewhere_different_default_kind +02575_merge_prewhere_ephemeral +02575_merge_prewhere_materialized +02576_predicate_push_down_sorting_fix +02576_rewrite_array_exists_to_has +02577_analyzer_array_join_calc_twice +02578_ipv4_codec_t64 +02578_parameterized_rename_queries +02579_fill_empty_chunk +02579_fill_empty_chunk_analyzer +02579_parameterized_replace +02580_like_substring_search_bug +02581_share_big_sets_between_mutation_tasks +02581_share_big_sets_between_mutation_tasks_with_storage_set +02581_width_bucket +02582_analyzer_join_subquery_empty_column_list +02582_async_reading_with_small_limit +02583_map_literal_cast +02584_range_ipv4 +02587_csv_big_numbers_inference +02589_bson_invalid_document_size +02590_bson_duplicate_column +02596_build_set_and_remote +02661_quantile_approx +02662_first_last_value +02662_sparse_columns_mutations_1 +02662_sparse_columns_mutations_2 +02662_sparse_columns_mutations_3 +02662_sparse_columns_mutations_4 +02662_sparse_columns_mutations_5 +02668_column_block_number +02668_column_block_number_vertical_merge +02668_column_block_number_with_projections +02668_logical_optimizer_removing_redundant_checks +02668_parse_datetime +02668_parse_datetime_in_joda_syntax +02668_ulid_decoding +02669_alter_modify_to_nullable +02670_constant_skip_index +02674_and_consistency +02674_date_int_string_json_inference +02674_null_default_structure +02674_trivial_count_analyzer +02675_is_ipv6_function_fix +02675_predicate_push_down_filled_join_fix +02675_sparse_columns_clear_column +02676_analyzer_limit_offset +02676_distinct_reading_in_order_analyzer +02676_kafka_murmur_hash +02676_to_decimal_string +02676_trailing_commas +02677_analyzer_bitmap_has_any +02677_analyzer_compound_expressions +02677_decode_url_component +02677_get_subcolumn_array_of_tuples +02677_grace_hash_limit_race +02678_explain_pipeline_graph_with_projection +02679_explain_merge_tree_prewhere_row_policy +02679_query_parameters_dangling_pointer +02680_datetime64_monotonic_check +02680_default_star +02680_illegal_type_of_filter_projection +02680_instr_alias_for_position_case_insensitive +02680_lc_null_as_default +02680_mysql_ast_logical_err +02681_aggregation_by_partitions_bug +02681_comparsion_tuple_elimination_ast +02681_group_array_too_large_size +02682_quantiles_too_large_size +02684_bson +02685_bson2 +02685_decimal256_various +02686_bson3 +02687_native_fuzz +02688_aggregate_states +02688_long_aggregate_function_names +02689_meaningless_data_types +02690_subquery_identifiers +02691_multiple_joins_backtick_identifiers +02692_multiple_joins_unicode +02693_multiple_joins_in +02694_wrong_identifier_shouldnt_be_accepted +02695_logical_optimizer_alias_bug +02695_storage_join_insert_select_deadlock +02696_ignore_inacc_tables_mat_view_attach +02697_alter_dependencies +02698_marked_dropped_tables +02699_polygons_sym_difference_rollup +02700_regexp_operator +02701_invalid_having_NOT_AN_AGGREGATE +02701_non_parametric_function +02702_logical_optimizer_with_nulls +02705_grouping_keys_equal_keys +02705_projection_and_ast_optimizations_bug +02705_settings_check_changed_flag +02706_array_map_tuples +02706_kolmogorov_smirnov_test +02706_show_columns +02707_analyzer_nested_lambdas_types +02707_skip_index_with_in +02708_dotProduct +02708_parallel_replicas_not_found_column +02709_generate_random_valid_decimals_and_bools +02709_storage_memory_compressed +02710_aggregation_nested_map_ip_uuid +02710_allow_suspicious_indices +02710_date_diff_aliases +02710_show_table +02710_topk_with_empty_array +02711_soundex_function +02711_trim_aliases +02713_array_low_cardinality_string +02713_ip4_uint_compare +02714_date_date32_in +02714_read_bytes_aggregateFunction +02715_bit_operations_float +02715_or_null +02716_create_direct_dict_with_lifetime_throws +02716_drop_if_empty +02716_int256_arrayfunc +02718_array_fold +02719_aggregate_with_empty_string_key +02720_row_policy_column_with_dots +02722_log_profile_events +02722_matcher_join_use_nulls +02723_jit_aggregation_bug_48120 +02723_parallelize_output_setting +02724_function_in_left_table_clause_asof_join +02724_jit_logical_functions +02724_mutliple_storage_join +02724_show_indexes +02725_agg_projection_respect_PK +02725_alias_columns_should_not_allow_compression_codec +02725_alias_with_restricted_keywords +02725_any_join_single_row +02725_cnf_large_check +02725_memory-for-merges +02725_sleep_max_time +02725_url_support_virtual_column +02726_async_insert_flush_queue +02730_dictionary_hashed_load_factor_element_count +02730_with_fill_by_sorting_prefix +02731_auto_convert_dictionary_layout_to_complex_by_complex_keys +02731_in_operator_with_one_size_tuple +02731_nothing_deserialization +02732_transform_fuzz +02733_distinct +02733_fix_distinct_in_order_bug_49622 +02733_sparse_columns_reload +02734_big_int_from_float_ubsan +02734_optimize_group_by +02734_sparse_columns_mutation +02734_sparse_columns_short_circuit +02735_array_map_array_of_tuples +02735_asof_join_right_null +02736_bit_count_big_int +02737_arrayJaccardIndex +02737_session_timezone +02737_sql_auto_is_null +02740_hashed_dictionary_load_factor_smoke +02741_hashed_dictionary_load_factor +02746_index_analysis_binary_operator_with_null +02751_match_constant_needle +02751_multiif_to_if_crash +02751_query_log_test_partitions +02752_custom_separated_ignore_spaces_bug +02752_is_null_priority +02752_space_function +02762_replicated_database_no_args +02763_jit_compare_functions_nan +02763_mutate_compact_part_with_skip_indices_and_projections +02763_row_policy_storage_merge +02763_row_policy_storage_merge_alias +02764_index_analysis_fix +02765_parallel_replicas_final_modifier +02766_bitshift_with_const_arguments +02768_cse_nested_distributed +02769_array_pack_bits +02769_compare_functions_nan +02770_jit_aggregation_nullable_key_fix +02771_if_constant_folding +02771_ignore_data_skipping_indices +02771_jit_functions_comparison_crash +02771_log_faminy_truncate_count +02771_resolve_compound_identifier +02771_tsv_csv_custom_skip_trailing_empty_lines +02772_jit_date_time_add +02775_show_columns_called_from_clickhouse +02781_data_skipping_index_merge_tree_min_for_seek +02782_inconsistent_formatting_and_constant_folding +02782_values_null_to_lc_nullable +02783_date_predicate_optimizations +02783_max_bytes_to_read_in_schema_inference +02784_move_all_conditions_to_prewhere_analyzer_asan +02784_projections_read_in_order_bug +02784_schema_inference_null_as_default +02785_date_predicate_optimizations_ast_query_tree_rewrite +02785_left_anti_join_bug +02785_summing_merge_tree_datetime64 +02786_transform_float +02787_transform_null +02788_current_schemas_function +02788_fix_logical_error_in_sorting +02789_functions_after_sorting_and_columns_with_same_names_bug +02789_functions_after_sorting_and_columns_with_same_names_bug_2 +02789_jit_cannot_convert_column +02789_set_index_nullable_condition_bug +02790_fix_coredump_when_compile_expression +02790_keyed_hash_bug +02790_url_multiple_tsv_files +02791_final_block_structure_mismatch_bug +02791_predicate_pushdown_different_types +02792_drop_projection_lwd +02794_pushdown_invalid_get +02795_full_join_assert_cast +02796_projection_date_filter_on_view +02797_aggregator_huge_mem_usage_bug +02797_join_nested_lowcardinality_convert +02797_range_nullable +02797_transform_narrow_types +02798_generic_transform +02798_substring_index +02799_transform_empty_arrays +02800_transform_alter +02801_transform_nullable +02804_intersect_bad_cast +02806_cte_block_cannot_be_empty +02806_system_parts_columns_modification_time +02807_default_date_time_nullable +02807_lower_utf8_msan +02807_math_unary_crash +02808_aliases_inside_case +02809_has_subsequence +02809_has_token +02809_prewhere_and_in +02809_storage_set_analysis_bug +02810_convert_uuid_to_uint128 +02810_fix_remove_dedundant_distinct_view +02810_initcap +02810_row_binary_with_defaults +02810_system_jemalloc_bins +02811_insert_schema_inference +02811_invalid_embedded_rocksdb_create +02811_ip_dict_attribute +02811_primary_key_in_columns +02811_read_in_order_and_array_join_bug +02812_bug_with_unused_join_columns +02812_csv_date_time_with_comma +02812_from_to_utc_timestamp +02812_pointwise_array_operations +02812_subquery_operators +02813_any_value +02813_array_agg +02813_array_concat_agg +02813_create_index_noop +02813_float_parsing +02813_func_now_and_alias +02813_func_today_and_alias +02813_seriesDecomposeSTL +02813_seriesOutliersDetectTukey +02813_series_period_detect +02813_starting_in_text_log +02814_ReplacingMergeTree_fix_select_final_on_single_partition +02814_age_datediff +02814_create_index_uniq_noop +02814_currentDatabase_for_table_functions +02814_order_by_tuple_window_function +02815_alias_to_length +02815_analyzer_aggregate_functions_of_group_by_keys +02815_empty_subquery_nullable_bug +02815_first_line +02815_fix_not_found_constants_col_in_block +02815_join_algorithm_setting +02815_logical_error_cannot_get_column_name_of_set +02815_range_dict_no_direct_join +02816_check_projection_metadata +02816_has_token_empty +02816_s2_invalid_point +02817_group_array_moving_zero_window_size +02818_parameterized_view_with_cte_multiple_usage +02828_create_as_table_function_rename +02830_insert_values_time_interval +02831_ast_fuzz_asan_join +02831_regexp_analyze_recursion +02831_trash +02832_alter_delete_indexes_projections +02832_integer_type_inference +02832_transform_fixed_string_no_default +02833_array_join_columns +02833_multiprewhere_extra_column +02833_sparse_columns_tuple_function +02833_starts_ends_with_utf8 +02833_std_alias +02833_tuple_concat +02833_window_func_range_offset +02834_add_sub_date_functions +02834_alter_exception +02834_analyzer_with_statement_references +02834_array_exists_segfault +02834_formats_with_variable_number_of_columns +02834_nulls_first_sort +02834_sparse_columns_sort_with_limit +02834_timestamp_function +02835_join_step_explain +02835_nested_array_lowcardinality +02840_grace_hash_join_structure_mismatch +02840_merge__table_or_filter +02841_group_array_sorted +02841_join_filter_set_sparse +02841_not_ready_set_constraints +02841_not_ready_set_join_on +02841_parallel_final_wrong_columns_order +02841_parquet_filter_pushdown +02841_tuple_modulo +02841_with_clause_resolve +02842_largestTriangleThreeBuckets_aggregate_function +02842_move_pk_to_end_of_prewhere +02842_truncate_database +02842_vertical_merge_after_add_drop_column +02843_context_has_expired +02843_date_predicate_optimizations_bugs +02844_subquery_timeout_with_break +02845_arrayShiftRotate +02845_group_by_constant_keys +02845_join_on_cond_sparse +02845_prewhere_preserve_column +02861_filter_pushdown_const_bug +02861_index_set_incorrect_args +02861_interpolate_alias_precedence +02861_join_on_nullsafe_compare +02861_replacing_merge_tree_with_cleanup +02862_sorted_distinct_sparse_fix +02862_uuid_reinterpret_as_numeric +02863_decode_html_component +02863_ignore_foreign_keys_in_tables_definition +02863_interpolate_subquery +02863_mutation_where_in_set_result_cache_pipeline_stuck_bug +02863_non_const_timezone_check +02864_filtered_url_with_globs +02864_profile_event_part_lock +02864_replace_regexp_string_fallback +02864_statistics_bug_67742 +02864_statistics_bug_69589 +02864_statistics_create_materialize_drop +02864_statistics_delayed_materialization_in_merge +02864_statistics_predicates +02864_statistics_usage +02864_test_ipv4_type_mismatch +02865_array_join_with_max_block_size +02866_size_of_marks_skip_idx_explain +02867_create_user_ssh +02867_null_lc_in_bug +02867_nullable_primary_key_final +02868_distinct_to_count_optimization +02868_operator_is_not_distinct_from_priority +02868_select_support_from_keywords +02869_insert_filenames_collisions +02869_unicode_minus +02871_join_on_system_errors +02871_multiple_joins_rewriter_v2_handle_last_table_columns +02872_gcd_codec +02872_prewhere_filter +02874_analysis_of_variance_overflow +02874_json_merge_patch_function_test +02874_parse_json_as_json_each_row_on_no_metadata +02874_toDaysSinceYearZero +02875_final_invalid_read_ranges_bug +02875_fix_column_decimal_serialization +02875_json_array_as_string +02875_parallel_replicas_remote +02876_sort_union_of_sorted +02876_yyyymmddhhmmsstodatetime +02880_indexHint__partition_id +02881_system_detached_parts_modification_time +02882_formatQuery +02882_primary_key_index_in_function_different_types +02883_array_scalar_mult_div_modulo +02883_read_in_reverse_order_virtual_column +02884_duplicate_index_name +02884_parallel_window_functions_bug +02884_string_distance_function +02884_virtual_column_order_by +02885_arg_min_max_combinator +02886_binary_like +02887_byteswap +02887_format_readable_timedelta_subseconds +02887_tuple_element_distributed +02888_attach_partition_from_different_tables +02888_integer_type_inference_in_if_function +02888_obsolete_settings +02888_single_state_nullable_type +02889_datetime64_from_string +02889_parts_columns_filenames +02889_print_pretty_type_names +02889_system_drop_format_schema +02890_named_tuple_functions +02890_partition_prune_in_extra_columns +02891_alter_update_adaptive_granularity +02891_array_shingles +02891_functions_over_sparse_columns +02892_SummingMergeTree_Nested +02892_orc_filter_pushdown +02893_array_enum_has_hasAny +02893_bad_sample_view +02893_system_drop_schema_cache_format +02893_trash_optimization +02893_vertical_final_bugs +02895_cast_operator_bug +02896_cyclic_aliases_crash +02896_illegal_sampling +02896_leading_zeroes_no_octal +02896_multiple_OR +02896_optimize_array_exists_to_has_with_date +02899_distributed_limit_by +02899_indexing_by_space_filling_curves +02900_add_subtract_interval_with_string_date +02900_date_time_check_overflow +02900_decimal_sort_with_multiple_columns +02900_issue_55858 +02900_window_function_with_sparse_column +02901_analyzer_recursive_window +02901_predicate_pushdown_cte_stateful +02901_remove_nullable_crash_analyzer +02902_add_scalar_in_all_case +02902_diable_apply_deleted_mask +02902_select_subcolumns_from_engine_null +02902_show_databases_limit +02903_bug_43644 +02903_parameterized_view_explain_ast +02905_show_setting_query +02905_system_logs_hostname +02906_flatten_only_true_nested +02906_force_optimize_projection_name +02906_interval_comparison +02906_orc_tuple_field_prune +02907_filter_pushdown_crash +02908_alter_column_alias +02908_enum_exact_cast +02910_nullable_enum_cast +02910_prefetch_unexpceted_exception +02910_rocksdb_optimize +02911_add_index_and_materialize_index +02911_analyzer_order_by_read_in_order_query_plan +02911_analyzer_remove_unused_projection_columns +02911_cte_invalid_query_analysis +02911_join_on_nullsafe_optimization +02911_support_alias_column_in_indices +02911_system_symbols +02912_group_array_sample +02913_sum_map_state +02915_analyzer_fuzz_1 +02915_analyzer_fuzz_2 +02915_analyzer_fuzz_5 +02915_analyzer_fuzz_6 +02915_sleep_large_uint +02916_addcolumn_nested +02916_analyzer_set_in_join +02916_csv_infer_numbers_from_strings +02916_date_text_parsing +02916_glogal_in_cancel +02916_to_start_of_interval_with_origin +02917_transform_tsan +02918_alter_temporary_table +02918_analyzer_to_ast_crash +02918_optimize_count_for_merge_tables +02918_wrong_dictionary_source +02919_alter_temporary_table_with_nondefault_engine +02919_ddsketch_quantile +02919_segfault_nullable_materialized_update +02919_storage_fuzzjson +02920_alter_column_of_projections +02920_fix_json_merge_patch +02920_rename_column_of_skip_indices +02920_unary_operators_functions +02921_bit_hamming_distance_big_int +02921_database_filesystem_path_check +02921_fuzzbits_with_array_join +02921_parameterized_view_except_queries +02922_respect_nulls_extensive +02922_respect_nulls_parser +02922_respect_nulls_states +02923_cte_equality_disjunction +02923_explain_expired_context +02923_join_use_nulls_modulo +02931_alter_materialized_view_query_inconsistent +02931_rewrite_sum_column_and_constant +02931_ubsan_error_arena_aligned_alloc +02932_analyzer_rewrite_sum_column_and_constant +02932_apply_deleted_mask +02932_lwd_and_mutations +02932_materialized_view_with_dropped_target_table_no_exception +02932_query_settings_max_size_drop +02932_set_ttl_where +02933_compare_with_bool_as_string +02933_ephemeral_mv +02933_sqid +02934_merge_tree_max_projections +02935_date_trunc_case_unsensitiveness +02935_format_with_arbitrary_types +02935_ipv6_bit_operations +02935_ipv6_from_uint128_equality +02935_ipv6_from_uint128_one +02935_ipv6_from_uint128_two +02935_ipv6_from_uint128_with_bit_and +02935_ipv6_to_and_from_uint128 +02935_system_grants_wildcards +02940_json_array_of_unnamed_tuples_inference +02941_any_RESPECT_NULL_sparse_column +02941_projections_external_aggregation +02942_variant_cast +02943_create_query_interpreter_sample_block_fix +02943_exprs_order_in_group_by_with_rollup +02943_order_by_all +02943_positional_arguments_bugs +02943_tokenbf_and_ngrambf_indexes_support_match_function +02943_use_full_text_skip_index_with_has_any +02943_variant_element +02945_blake3_msan +02946_literal_alias_misclassification +02946_materialize_column_must_not_override_past_values +02946_merge_tree_final_split_ranges_by_primary_key +02947_dropped_tables_parts +02947_parallel_replicas_remote +02949_ttl_group_by_bug +02950_dictionary_short_circuit +02950_part_offset_as_primary_key +02950_reading_array_tuple_subcolumns +02952_conjunction_optimization +02953_slow_create_view +02954_analyzer_fuzz_i57086 +02955_analyzer_using_functional_args +02955_avro_format_zstd_encode_support +02955_sparkBar_alias_sparkbar +02956_fix_to_start_of_milli_microsecond +02956_format_constexpr +02956_rocksdb_with_ttl +02958_transform_enum +02959_system_database_engines +02960_alter_table_part_query_parameter +02961_analyzer_low_cardinality_fuzzer +02961_higher_order_constant_expressions +02961_read_bool_as_string_json +02961_sumMapFiltered_keepKey +02962_analyzer_const_in_count_distinct +02962_analyzer_constant_set +02962_analyzer_resolve_group_by_on_shards +02962_indexHint_rpn_construction +02962_join_using_bug_57894 +02962_max_joined_block_rows +02962_parallel_window_functions_different_partitioning +02963_invalid_identifier +02963_msan_agg_addBatchLookupTable8 +02963_single_value_destructor +02965_projection_with_partition_pruning +02966_float32_promotion +02966_nested_offsets_subcolumn +02967_fuzz_bad_cast +02967_index_hint_crash +02968_adaptive_async_insert_timeout +02968_analyzer_join_column_not_found +02968_projection_merge +02968_sumMap_with_nan +02969_functions_to_subcolumns_if_null +02970_generate_series +02970_visible_width_behavior +02971_functions_to_subcolumns_map +02971_functions_to_subcolumns_variant +02972_insert_deduplication_token_hierarchical_inserts +02972_insert_deduplication_token_hierarchical_inserts_views +02972_to_string_nullable_timezone +02973_analyzer_join_use_nulls_column_not_found +02973_dictionary_table_exception_fix +02974_analyzer_array_join_subcolumn +02974_if_with_map +02975_intdiv_with_decimal +02981_nested_bad_types +02981_translate_fixedstring +02981_variant_type_function +02982_dont_infer_exponent_floats +02982_minmax_nan_null_order +02982_unambiguous_alter_commands +02983_empty_map +02983_empty_map_hasToken +02984_topk_empty_merge +02985_if_over_big_int_decimal +02985_minmax_index_aggregate_function +02986_leftpad_fixedstring +02987_group_array_intersect +02987_logical_optimizer_pass_lowcardinality +02988_join_using_prewhere_pushdown +02988_ordinary_database_warning +02989_group_by_tuple +02989_join_using_parent_scope +02989_variant_comparison +02990_arrayFold_nullable_lc +02990_format_not_precedence +02990_optimize_uniq_to_count_alias +02990_parts_splitter_invalid_ranges +02990_variant_where_cond +02991_count_rewrite_analyzer +02992_all_columns_should_have_comment +02992_analyzer_group_by_const +02992_settings_overflow +02994_cosineDistanceNullable +02994_sanity_check_settings +02995_bad_formatting_union_intersect +02995_preliminary_filters_duplicated_columns +02995_preliminary_filters_duplicated_columns_SimpleAggregateFunction +02995_ulid_short_circuit +02996_analyzer_prewhere_projection +02996_index_compaction_counterexample +02996_nullable_arrayReduce +02997_fix_datetime64_scale_conversion +02997_projections_formatting +02998_analyzer_prewhere_report +02998_attach_partition_not_allowed_if_structure_differs_due_to_materialized_column +02998_operator_respect_nulls +02998_primary_key_skip_columns +02998_projection_after_attach_partition +02998_system_dns_cache_table +02998_to_milliseconds +02999_analyzer_preimage_null +02999_scalar_subqueries_bug_1 +02999_scalar_subqueries_bug_2 +02999_ulid_short_circuit +02999_variant_suspicious_types +03000_minmax_index_first +03000_too_big_max_execution_time_setting +03000_virtual_columns_in_prewhere +03001_analyzer_nullable_nothing +03001_block_offset_column +03001_block_offset_column_2 +03001_consider_lwd_when_merge +03001_data_version_column +03002_analyzer_prewhere +03002_int_div_decimal_with_date_bug +03002_map_array_functions_with_low_cardinality +03002_modify_query_cte +03002_sample_factor_where +03003_arrayEnumerate_crash +03003_compatibility_setting_bad_value +03003_count_asterisk_filter +03003_enum_and_string_compatible +03003_functions_to_subcolumns_final +03003_sql_json_nonsense +03004_force_null_for_omitted +03005_input_function_in_join +03005_nullif_index_pruning +03006_analyzer_executable_table_function +03006_buffer_overflow_join +03006_join_on_inequal_expression_2 +03006_join_on_inequal_expression_3 +03006_join_on_inequal_expression_4 +03006_join_on_inequal_expression_fast_1 +03006_join_on_inequal_expression_fast_2 +03006_mv_deduplication_throw_if_async_insert +03006_parallel_replicas_cte_explain_syntax_crash +03008_deduplication_cases_from_docs +03008_deduplication_wrong_mv +03008_filter_projections_non_deterministoc_functions +03008_groupSortedArray_field +03008_index_small +03008_optimize_equal_ranges +03008_uniq_exact_equal_ranges +03009_consecutive_keys_nullable +03009_range_dict_get_or_default +03009_storage_memory_circ_buffer_usage +03010_file_log_large_poll_batch_size +03010_read_system_parts_table_test +03010_sum_to_to_count_if_nullable +03010_view_prewhere_in +03010_virtual_memory_mappings_asynchronous_metrics +03011_adaptative_timeout_compatibility +03013_addDays_with_timezone +03013_fuzz_arrayPartialReverseSort +03013_group_by_use_nulls_with_materialize_and_analyzer +03013_ignore_drop_queries_probability +03013_position_const_start_pos +03013_repeat_with_nonnative_integers +03013_test_part_level_is_reset_attach_from_disk_mt +03014_analyzer_group_by_use_nulls +03014_group_by_use_nulls_injective_functions_and_analyzer +03014_msan_parse_date_time +03015_aggregator_empty_data_multiple_blocks +03015_analyzer_groupby_fuzz_60772 +03015_peder1001 +03015_with_fill_invalid_expression +03016_analyzer_groupby_fuzz_59796 +03017_analyzer_groupby_fuzz_61600 +03018_analyzer_distributed_query_with_positional_arguments +03018_analyzer_greater_null +03022_alter_materialized_view_query_has_inner_table +03023_analyzer_optimize_group_by_function_keys_with_nulls +03023_remove_unused_column_distinct +03024_total_rows_approx_is_set_for_system_zeros_and_generate_random +03031_filter_float64_logical_error +03031_input_format_allow_errors_num_bad_escape_sequence +03031_read_in_order_optimization_with_virtual_row +03031_table_function_fuzzquery +03031_tuple_elimination_analyzer +03032_multi_search_const_low_cardinality +03032_numbers_zeros +03032_redundant_equals +03032_save_bad_json_escape_sequences +03032_scalars_create_as_select +03032_storage_memory_modify_settings +03032_string_to_variant_cast +03032_variant_bool_number_not_suspicious +03033_analyzer_merge_engine_filter_push_down +03033_analyzer_parametrized_view_alias +03033_analyzer_resolve_from_parent_scope +03033_create_as_copies_comment +03033_cte_numbers_memory +03033_distinct_transform_const_columns +03033_final_undefined_last_mark +03033_from_unixtimestamp_joda_by_int64 +03033_index_definition_sql_udf_bug +03033_lightweight_deletes_sync +03033_parts_splitter_bug_and_index_loading +03033_recursive_cte_basic +03033_scalars_context_data_race +03033_set_index_in +03033_tupleIntXYZ_and_tupleModulo +03033_virtual_column_override +03033_with_fill_interpolate +03034_ddls_and_merges_with_unusual_maps +03034_json_extract_variant +03034_recursive_cte_tree +03034_recursive_cte_tree_fuzz_crash_fix +03034_recursive_cte_tree_merge_tree +03035_internal_functions_direct_call +03035_materialized_primary_key +03035_morton_encode_no_rows +03035_recursive_cte_postgres_1 +03036_clamp +03036_prewhere_lambda_function +03036_recursive_cte_postgres_2 +03036_with_numbers +03037_dot_product_overflow +03037_dynamic_merges_small +03037_precent_rank +03037_recursive_cte_postgres_3 +03037_union_view +03037_zero_step_in_numbers_table_function +03038_ambiguous_column +03038_move_partition_to_oneself_deadlock +03038_nested_dynamic_merges_small +03038_recursive_cte_postgres_4 +03039_recursive_cte_postgres_5 +03039_unknown_identifier_window_function +03040_alias_column_join +03040_array_sum_and_join +03040_recursive_cte_postgres_6 +03041_analyzer_gigachad_join +03041_recursive_cte_postgres_7 +03041_select_with_query_result +03042_analyzer_alias_join +03042_not_found_column_c1 +03043_group_array_result_is_expected +03044_analyzer_alias_join +03044_array_join_columns_in_nested_table +03045_analyzer_alias_join_with_if +03045_unknown_identifier_alias_substitution +03046_column_in_block_array_join +03047_analyzer_alias_join +03047_group_by_field_identified_aggregation +03047_on_fly_mutations_multiple_updates +03047_on_fly_mutations_non_deterministic +03047_on_fly_mutations_non_deterministic_replace +03047_on_fly_mutations_prewhere +03048_not_found_column_xxx_in_block +03049_analyzer_group_by_alias +03050_select_one_one_one +03051_many_ctes +03052_query_hash_includes_aliases +03054_analyzer_join_alias +03055_analyzer_subquery_group_array +03057_analyzer_subquery_alias_join +03057_private_attach_disk_web +03058_analyzer_ambiguous_columns +03059_analyzer_join_engine_missing_column +03060_analyzer_regular_view_alias +03061_analyzer_alias_as_right_key_in_join +03063_analyzer_multi_join_wrong_table_specifier +03064_analyzer_named_subqueries +03065_analyzer_cross_join_and_array_join +03066_analyzer_global_with_statement +03067_analyzer_complex_alias_join +03069_analyzer_with_alias_in_array_join +03070_analyzer_CTE_scalar_as_numbers +03071_analyzer_array_join_forbid_non_existing_columns +03071_fix_short_circuit_logic +03072_analyzer_missing_columns_from_subquery +03073_analyzer_alias_as_column_name +03074_analyzer_alias_column_in_view +03075_analyzer_subquery_alias +03076_analyzer_multiple_joins_alias +03077_analyzer_multi_scalar_subquery_aliases +03078_analyzer_multi_scalar_subquery_aliases +03079_analyzer_numeric_literals_as_column_names +03080_analyzer_prefer_column_name_to_alias__virtual_columns +03081_analyzer_agg_func_CTE +03082_analyzer_left_join_correct_column +03084_analyzer_join_column_alias +03085_analyzer_alias_column_group_by +03086_analyzer_window_func_part_of_group_by +03087_analyzer_subquery_with_alias +03089_analyzer_alias_replacement +03090_analyzer_multiple_using_statements +03093_analyzer_column_alias +03093_analyzer_miel_test +03093_bug37909_query_does_not_finish +03093_filter_push_down_crash +03093_special_column_errors +03093_virtual_column_override_group_by +03093_with_fill_support_constant_expression +03094_analyzer_fiddle_multiif +03094_grouparraysorted_memory +03094_named_tuple_bug24607 +03094_transform_return_first +03095_join_filter_push_down_right_stream_filled +03095_merge_and_buffer_tables +03095_window_functions_qualify +03096_largest_triangle_3b_crash +03096_order_by_system_tables +03096_update_non_indexed_columns +03097_query_log_join_processes +03098_prefer_column_to_alias_subquery +03099_analyzer_multi_join +03100_analyzer_constants_in_multiif +03100_lwu_05_basics +03100_lwu_07_merge_patches +03100_lwu_07_merge_patches_v1 +03100_lwu_08_multiple_blocks +03100_lwu_18_sequence +03100_lwu_18_sequence_v1 +03100_lwu_19_nullable +03100_lwu_20_different_structure +03100_lwu_32_on_fly_filter +03100_lwu_33_add_column +03100_lwu_34_multistep_prewhere +03100_lwu_37_update_all_columns +03100_lwu_38_replacing +03100_lwu_44_missing_default +03100_lwu_45_query_condition_cache +03100_lwu_46_deletes_skip_indexes +03100_lwu_47_apply_patches_after_drop_column +03100_lwu_48_text_index +03100_lwu_49_update_skip_indexes +03100_lwu_50_subcolumn_skip_index +03100_lwu_51_condition_evaluated_once +03100_lwu_51_replace_partition_pending_patch +03100_lwu_53_apply_patches_rebuild_indexes +03100_lwu_56_mutation_clone_keeps_invalidated_columns +03100_lwu_58_patch_on_const_column +03100_lwu_58_patch_on_const_column_combined +03100_lwu_deletes_1 +03100_lwu_deletes_2 +03100_lwu_deletes_5_vertical_merge +03101_analyzer_identifiers_2 +03101_analyzer_identifiers_3 +03101_analyzer_invalid_join_on +03102_prefer_column_name_to_alias +03103_positional_arguments +03104_create_view_join +03105_table_aliases_in_mv +03107_ill_formed_select_in_materialized_view +03108_describe_union_all +03109_ast_too_big +03110_unicode_alias +03111_inner_join_group_by +03112_analyzer_not_found_column_in_block +03113_analyzer_not_found_column_in_block_2 +03114_analyzer_cte_with_join +03115_alias_exists_column +03116_analyzer_explicit_alias_as_column_name +03117_analyzer_same_column_name_as_func +03118_analyzer_multi_join_prewhere +03119_analyzer_window_function_in_CTE_alias +03120_analyzer_param_in_CTE_alias +03121_analyzer_filed_redefenition_in_subquery +03122_analyzer_collate_in_window_function +03125_analyzer_CTE_two_joins +03126_column_not_under_group_by +03127_system_unload_primary_key_table +03127_window_functions_uint16 +03128_merge_tree_index_lazy_load +03128_system_unload_primary_key +03129_cte_with_final +03129_low_cardinality_nullable_non_first_primary_key +03129_update_nested_materialized_column_check +03130_abs_in_key_condition_bug +03130_analyzer_array_join_prefer_column +03130_analyzer_self_join_group_by +03130_convert_outer_join_to_inner_join +03130_generateSnowflakeId +03131_deprecated_functions +03131_hilbert_coding +03131_rewrite_sum_if_nullable +03132_rewrite_aggregate_function_with_if_implicit_cast +03132_sqlancer_union_all +03141_wildcard_grants +03142_alter_comment_parameterized_view +03142_untuple_crash +03142_window_function_limit_by +03143_cte_scope +03143_join_filter_push_down_filled_join_fix +03143_ttl_in_system_parts_columns_table +03143_window_functions_qualify_validation +03144_aggregate_states_with_different_types +03144_alter_column_and_read +03144_asof_join_ddb_doubles +03144_fuzz_quoted_type_name +03144_invalid_filter +03145_asof_join_ddb_inequalities +03146_bug47862 +03146_create_index_compatibility +03146_parameterized_view_with_date +03146_tpc_ds_grouping +03147_asof_join_ddb_missing +03147_datetime64_constant_index_analysis +03147_parquet_memory_tracking +03147_table_function_loop +03147_table_function_loop_remote_storage +03148_asof_join_ddb_subquery +03148_mutations_virtual_columns +03148_query_log_used_dictionaries +03148_setting_max_streams_to_max_threads_ratio_overflow +03149_analyzer_window_redefinition +03149_asof_join_ddb_timestamps +03149_variant_pop_back_typo +03150_grouping_sets_use_nulls_pushdown +03150_trace_log_add_build_id +03150_url_hash_non_constant_level +03151_analyzer_view_read_only_necessary_columns +03151_external_cross_join +03151_pmj_join_non_procssed_clash +03151_redundant_distinct_with_window +03152_analyzer_columns_list +03152_join_filter_push_down_equivalent_columns +03152_trailing_comma_in_columns_list_in_insert +03153_trailing_comma_in_values_list_in_insert +03155_analyzer_interpolate +03155_datasketches_ubsan +03155_explain_current_transaction +03155_in_nested_subselects +03156_analyzer_array_join_distributed +03156_group_concat +03156_tuple_map_low_cardinality +03157_negative_positional_arguments_ubsan +03160_dynamic_type_agg +03161_cnf_reduction +03161_create_table_as_mv +03161_decimal_binary_math +03161_ipv4_ipv6_equality +03161_lightweight_delete_projection +03164_adapting_parquet_reader_output_size +03164_analyzer_global_in_alias +03164_analyzer_rewrite_aggregate_function_with_if +03164_analyzer_validate_tree_size +03164_early_constant_folding_analyzer +03164_format_readable_timedelta_intervals +03164_linestring_geometry +03164_materialize_skip_index +03164_materialize_skip_index_on_merge +03164_optimize_read_in_order_nullable +03164_orc_signedness +03165_distinct_with_window_func_crash +03165_order_by_duplicate +03165_parseReadableSize +03165_round_scale_as_column +03165_string_functions_with_token_text_indexes +03166_mv_prewhere_duplicating_name_bug +03166_optimize_row_order_during_insert +03166_skip_indexes_vertical_merge_1 +03166_skip_indexes_vertical_merge_2 +03167_base64_url_functions +03167_boom_filter_index_with_map +03167_fancy_quotes_off_by_one +03167_parametrized_view_with_cte +03168_cld2_tsan +03168_column_modification_time_packed_part +03168_fuzz_multiIf_short_circuit +03168_inconsistent_ast_formatting +03168_loop_engine_with_parallel_replicas +03168_read_in_order_buffering_1 +03168_read_in_order_buffering_3 +03169_cache_complex_dict_short_circuit_bug +03169_modify_column_data_loss +03169_optimize_injective_functions_inside_uniq_crash +03170_part_offset_as_table_column +03171_condition_pushdown +03171_direct_dict_short_circuit_bug +03171_function_to_subcolumns_fuzzer +03171_hashed_dictionary_short_circuit_bug_fix +03171_indexing_by_hilbert_curve +03172_format_settings_clauses +03172_system_detached_tables_no_loop +03173_check_cyclic_dependencies_on_create_and_rename +03173_distinct_combinator_alignment +03173_forbid_qualify +03174_least_greatest_ignore_null_input_values +03174_merge_join_bug +03174_multiple_authentication_methods_show_create +03174_projection_deduplicate +03175_sparse_and_skip_index +03176_check_timeout_in_index_analysis +03195_group_concat_deserialization_fix +03196_max_intersections_arena_crash +03197_fix_parse_mysql_iso_date +03197_storage_join_strictness_type_restriction +03198_bit_shift_throws_error_for_out_of_bounds +03198_dictionary_validate_primary_key_type +03198_dynamic_read_subcolumns +03198_group_array_intersect +03198_h3_polygon_to_cells +03198_json_extract_more_types +03198_table_function_directory_path +03199_fix_auc_tie_handling +03199_has_lc_fixed_string +03199_join_with_materialized_column +03199_merge_filters_bug +03199_queries_with_new_analyzer +03200_memory_engine_alter_dynamic +03200_reverse_by_separator +03200_subcolumns_join_use_nulls +03201_analyzer_resolve_in_parent_scope +03201_sumIf_to_countIf_return_type +03202_dynamic_null_map_subcolumn +03202_enum_json_cast +03202_system_load_primary_key +03202_sz3_codec +03203_count_with_non_deterministic_function +03203_drop_detached_partition_all +03203_fill_missed_subcolumns +03203_optimize_disjunctions_chain_to_in +03203_system_numbers_limit_and_offset_complex +03203_system_numbers_limit_and_offset_simple +03203_variant_convert_field_to_type_bug +03204_distributed_with_scalar_subquery +03204_index_hint_fuzzer +03204_storage_join_optimize +03205_hashing_empty_tuples +03205_json_syntax +03205_overlay +03205_parallel_replicas_alter_select_ubsan +03205_parallel_window_finctions_and_column_sparse_bug +03205_system_sync_replica_format +03206_projection_merge_special_mergetree +03206_projection_merge_special_mergetree_ignore +03207_composite_expressions_lambda_consistent_formatting +03208_datetime_cast_losing_precision +03208_groupArrayIntersect_serialization +03208_multiple_joins_with_storage_join +03208_numbers_total_rows_approx +03208_uniq_with_empty_tuple +03209_functions_json_msan_fuzzer_issue +03209_parameterized_view_with_non_literal_params +03210_convert_outer_join_to_inner_join_any_join +03210_empty_tuple_lhs_of_in +03210_lag_lead_inframe_types +03210_nested_short_circuit_functions_bug +03210_optimize_rewrite_aggregate_function_with_if_return_type_bug +03210_variant_with_aggregate_function_type +03212_optimize_with_constraints_logical_error +03213_array_element_msan +03213_deep_json +03213_denseRank_percentRank_alias +03213_rand_dos +03214_bitslice_argument_evaluation +03214_count_distinct_null_key_memory_leak +03214_join_on_tuple_comparison_elimination_bug +03215_analyzer_materialized_constants_bug +03215_analyzer_replace_with_dummy_tables +03215_fix_get_index_in_tuple +03215_key_condition_bug +03215_multilinestring_geometry +03215_parquet_index +03215_partition_in_tuple +03215_toStartOfWeek_with_dateTime64_fix +03215_udf_with_union +03215_validate_type_in_alter_add_modify_column +03215_varian_as_common_type_integers +03215_varian_as_common_type_tuple_map +03215_view_with_recursive +03216_arrayWithConstant_limits +03217_fliter_pushdown_no_keys +03217_json_merge_patch_stack_overflow +03217_primary_index_memory_leak +03218_materialize_msan +03221_create_if_not_exists_setting +03221_key_condition_bug +03221_merge_profile_events +03221_refreshable_matview_progress +03222_create_timeseries_table +03222_date_time_inference +03222_ignore_nulls_query_tree_elimination +03222_json_empty_as_default +03222_parallel_replicas_final_in_subquery +03223_analyzer_with_cube_fuzz +03223_interval_data_type_comparison +03223_nested_json_in_shared_data_merges +03224_arrayUnion +03224_json_merges_new_type_in_shared_data +03224_nested_json_merges_new_type_in_shared_data +03224_tuple_element_identifier +03225_const_prewhere_non_ataptive +03227_dynamic_subcolumns_enumerate_streams +03227_implicit_select +03227_json_invalid_regexp +03227_proper_parsing_of_cast_operator +03227_test_sample_n +03228_async_insert_query_params_bad_type +03228_dynamic_serializations_uninitialized_value +03228_join_to_rerange_right_table +03228_param_view_metadata_columns +03228_url_engine_response_headers +03229_query_condition_cache_bug83262 +03229_query_condition_cache_cte_constant_folding +03229_query_condition_cache_final +03229_query_condition_cache_folded_constants +03229_query_condition_cache_in_operator +03229_query_condition_cache_join_runtime_filter +03229_query_condition_cache_nondeterministic_functions +03229_query_condition_cache_on_fly_mutations +03229_query_condition_cache_profile_events +03229_query_condition_cache_recursive_cte +03229_query_condition_cache_sample +03229_query_condition_cache_tables_without_uuid +03230_anyHeavy_merge +03230_date_trunc_and_to_start_of_interval_on_date32 +03230_show_create_query_identifier_quoting_style +03230_subcolumns_mv +03230_system_projections +03231_alter_no_properties_before_remove_modify_reset +03231_csv_dont_infer_bool_from_string +03231_prewhere_conditions_order +03231_values_respect_format_settings_in_fields_conversion +03232_workload_create_and_drop +03232_workloads_and_resources +03234_enable_secure_identifiers +03234_evaluate_constant_analyzer +03235_groupArray_string_consistency +03236_create_query_ttl_where +03236_test_zero_field_decimal +03237_create_table_select_as_with_recursive +03237_get_subcolumn_low_cardinality_column +03238_analyzer_unknown_function +03239_if_constant_folding +03239_nan_with_fill +03240_cte_in_subquery +03240_quantile_exact_weighted_interpolated +03241_orc_dictionary_encode +03241_view_block_structure +03242_view_block_structure +03243_array_join_lambda +03243_check_for_nullable_nothing_in_alter +03243_compatibility_setting_with_alias +03243_create_or_replace_view_dependency_check +03243_lower_utf8_msan +03243_to_start_of_interval_aliases +03244_skip_index_in_final_query_part_of_pk +03244_skip_index_in_final_query_with_pk_rescan_basic +03244_skip_index_in_final_query_with_pk_rescan_extremes +03244_skip_index_in_final_query_with_pk_rescan_no_final_mark +03244_skip_index_in_final_query_with_pk_rescan_pk_subset +03245_ripemd160 +03245_views_and_filter_push_down_bug +03246_alter_update_dynamic_hung +03246_join_on_asterisk +03246_json_subcolumn_correct_type +03246_json_tuple_decompress_race +03246_range_literal_replacement_works +03246_toStartOfInterval_date_timezone_bug +03247_generic_arrayMin_arrayMax_fixes +03247_json_extract_lc_nullable +03247_materialized_view_select_intersect +03247_object_column_copy +03248_invalid_where +03248_max_parts_to_move +03248_with_fill_string_crash +03248_with_insert +03249_dynamic_alter_consistency +03250_ephemeral_comment +03251_unaligned_window_function_state +03252_check_number_of_arguments_for_dynamic +03252_fill_missed_arrays +03252_highlight +03252_merge_tree_min_bytes_to_seek +03253_getMaxTableNameLength +03253_group_by_cube_too_many_keys +03254_last_2_samples_aggregate_function_simple +03254_merge_source_parts +03254_part_log_partition_column_is_set +03254_prewarm_mark_cache_columns +03254_project_lwd_respects_row_exists +03254_test_alter_user_no_changes +03254_timeseries_functions_various_arguments +03254_timeseries_group_array +03254_timeseries_range +03254_timeseries_to_grid_aggregate_function +03254_uniq_exact_two_level_negative_zero +03255_fix_sbstrings_logical_error +03256_invalid_mutation_query +03257_reverse_sorting_key +03257_reverse_sorting_key_simple +03257_scalar_in_format_table_expression +03257_setting_tiers +03258_dynamic_in_functions_weak_ptr_exception +03258_multiple_array_joins +03258_old_analyzer_const_expr_bug +03258_quantile_exact_weighted_issue +03259_grouping_sets_aliases +03259_join_condition_executed_block_bug +03259_negate_key_overflow +03259_orc_date_out_of_range +03260_dynamic_low_cardinality_dict_bug +03261_any_respect_camelCase_aliases +03261_json_hints_types_check +03261_low_cardinality_nullable_to_dynamic_cast +03261_minmax_indices_by_default +03261_minmax_indices_by_default_table_copy +03261_mongodb_argumetns_crash +03261_optimize_rewrite_array_exists_to_has_crash +03261_sort_cursor_crash +03261_variant_permutation_bug +03262_analyzer_materialized_view_in_with_cte +03262_column_sizes_with_dynamic_structure +03262_common_expression_optimization +03262_const_adaptive_index_granularity +03262_filter_push_down_view +03262_system_functions_should_not_fill_query_log_functions +03263_analyzer_materialized_view_cte_nested +03263_forbid_materialize_sort_key +03263_parquet_write_bloom_filter +03266_lowcardinality_string_monotonicity +03266_with_fill_staleness +03266_with_fill_staleness_cases +03266_with_fill_staleness_errors +03267_join_swap_bug +03267_materialized_view_keeps_security_context +03268_system_parts_index_granularity +03269_partition_key_not_in_set +03270_fix_column_modifier_write_order +03270_max_bytes_ratio_before_external_group_by +03271_date_to_datetime_saturation +03271_decimal_monotonic_day_of_week +03271_dynamic_variant_in_min_max +03271_max_bytes_ratio_before_external_order_by +03271_sqllancer_having_issue +03272_arrayAUCPR +03272_bad_aggregate_function +03272_bitmapTransform_error_counter +03272_partition_pruning_monotonic_func_bug +03272_prewarm_mark_cache_add_column +03273_group_by_in_order_still_used_when_group_by_key_doesnt_match_order_by_key +03273_primary_index_cache +03273_primary_index_cache_low_cardinality +03273_select_from_explain_ast_non_select +03274_aliases_in_udf +03274_dynamic_column_data_race_with_concurrent_hj +03274_dynamic_column_sizes_vertical_merge +03274_grace_hash_max_joined_block_size_rows_bug +03274_join_algorithm_default +03274_philipzucker +03274_squashing_transform_sparse_bug +03274_with_fill_dup_sort_bug +03275_block_number_mutation +03275_block_number_update +03275_count_digits_argument_evaluation +03275_matview_with_union +03275_subcolumns_in_primary_key +03275_subcolumns_in_primary_key_bug +03276_empty_variant_type +03276_functions_to_subcolumns_lc +03276_index_empty_part +03276_index_of_assume_sorted +03276_merge_tree_index_lazy_load +03276_parquet_output_compression_level +03276_subcolumns_in_skipping_indexes +03277_dead_letter_queue_unsupported +03277_join_adaptive_spill +03277_join_adaptive_spill_oom +03277_logging_elapsed_ns +03278_dateTime64_in_dateTime64_bug +03278_enum_in_unknown_value +03278_enum_string_functions +03279_array_normalized_gini +03279_join_choose_build_table +03279_join_choose_build_table_auto_statistics +03279_join_choose_build_table_statistics +03279_subcolumns_in_primary_key_select_final +03280_aliases_for_selects_and_views +03282_block_number_otehr_mutations +03282_dynamic_in_functions_convert +03282_materialized_views_ignore_errors +03282_parallel_join_with_additional_filter +03284_json_object_as_tuple_duplicate_keys +03285_analyzer_array_join_nested +03285_analyzer_extract_common_expr_bug +03285_analyzer_optimize_disjunctions +03285_default_engine_with_settings +03285_materialize_ttl_only_drop_parts +03286_backup_to_memory +03286_backup_to_null +03286_collation_locale_with_modifier +03286_format_datetime_timezones +03286_reverse_sorting_key_final +03286_reverse_sorting_key_final2 +03286_serialization_hint_system_columns +03287_dynamic_and_json_squashing_fix +03287_format_datetime_mysqlfraction +03287_not_comparable_types_in_order_by_and_comparison_functions +03289_tuple_element_to_subcolumn +03290_alter_mv_dependency_check +03290_dictionary_assert_on_function +03290_final_collapsing +03290_final_replacing +03290_final_sample +03290_force_normal_projection +03290_formatReadable_other_numeric_types +03290_limit_by_segv +03290_mix_engine_and_query_settings +03290_partial_arrayROCAUC_and_arrayAUCPR +03290_pr_non_replicated_in_subquery +03291_collapsing_invalid_sign +03291_json_big_structure_deserialization +03291_low_cardinality_uuid +03292_format_tty_friendly +03296_bfloat16_ubsan +03298_analyzer_group_by_all_fix +03298_server_client_native_settings +03299_deep_nested_map_creation +03299_map_named_tuple +03300_ai_functions +03300_generate_random_const_expr_params +03301_is_ipv4_string +03301_subcolumns_in_mv +03302_analyzer_distributed_filter_push_down +03302_analyzer_join_filter_push_down_bug +03302_any_enum_aggregation +03302_merge_table_structure_unification +03303_alias_inverse_order +03303_dynamic_in_not_xor +03304_compare_substrings +03304_fill_virtual_columns +03305_compressed_memory_eng_crash_reading_subcolumn +03305_fix_kafka_table_with_kw_arguments +03305_log_unsupported_types +03305_parallel_with +03306_materialized_vew_prewhere_supported_columns +03306_optimize_table_force_keyword +03307_forbid_loop_table_function_as_engine +03310_aggregate_projection_count_nullable +03310_create_database_with_settings +03310_index_hints_read_columns +03310_materialized_view_with_bad_select +03311_issue_72265 +03311_min_max_count_projection_with_constant_partition_expr +03312_analyzer_unused_projection_fix +03312_explain_syntax_analyzer +03312_issue_74299 +03312_sparse_column_tuple +03312_system_errors_last_error +03313_case_insensitive_json_type_declaration +03313_h3togeo_result_order +03313_unique_key_mutation_guard +03314_analyzer_resolve_in_parent_scope +03314_analyzer_resolve_in_parent_scope_2 +03314_analyzer_resolve_in_parent_scope_3 +03314_analyzer_resolve_in_parent_scope_4 +03314_analyzer_resolve_in_parent_scope_5 +03314_divide_decimal_short_circuit +03314_empty_tuple_in_protobuf_format +03314_grace_hash_join_buckets +03314_has_column_in_table_alias_column +03314_nullable_key_no_optimize_functions_to_subcolumns +03314_summing_merge_tree_final_not_found_column_in_block +03314_variant_rowbinary_file +03315_analyzer_correlated_subqueries +03315_array_join_scalar +03315_join_on_optimize_pass_alias +03315_quantile_bfloat16_ubsan +03315_trim_two_args +03316_analyzer_unique_table_aliases_dist +03317_index_hint_prewhere +03318_ubsan_resample_arguments_count +03319_concurrent_hash_join_double_preallocation_bug +03321_functions_to_subcolumns_skip_index +03321_inner_materialized_view_nested +03321_join_on_is_null_lowcardinality +03321_system_tables_parametrized_view_params +03322_bugfix_of_with_insert +03322_materialized_view_ignore_errors_url +03322_unused_interpolate_expressions +03322_view_over_parameterized_view +03323_bfloat16_least_supertype +03323_union_all_constants_bug +03324_union_block_structure_mismatch +03325_alter_ast_format +03325_alter_modify_projection_primary_key_column +03325_count_summing_merge_tree_order_by_tuple +03326_parallel_replicas_out_of_range +03326_toStartOfNanosecond_ubsan +03327_alias_column_constant +03328_formatting_assignment_expression +03328_normalized_query_hash +03334_aliases_function_infinite_loop +03340_transform_logical_error_fix +03350_json_parsing_quickly +03351_client_insert_bad_connection_state +03352_distinct_sorted_bug +03352_lazy_column_filter_by_uint8 +03353_codec_zstd_doubledelta_data_corruption +03354_translate_crap +03355_array_join_subcolumns +03355_issue_31183 +03355_issue_32743 +03355_join_to_in_optimization +03355_mergetree_table_disk +03356_analyzer_qualified_matcher_error +03356_analyzer_unused_scalar_subquery +03356_array_join_subcolumns_indexes +03356_postgresql_mysql_endpoint_parsing +03356_tables_with_binary_identifiers_invalid_utf8 +03356_threshold_for_parallel_hash +03357_analyzer_insert_view +03357_arraySymmetricDifference +03357_block_structure_union_step +03357_check_contraints_null_syntax +03357_jit_strikes_again +03357_recursive_cte_no_logical_error +03357_storage_join_mv_context +03357_with_cube_with_totals_assertion +03358_block_structure_match +03358_lambda_resolution_segfault_analyzer +03359_analyzer_rewrite_view_query +03359_point_in_polygon_index +03360_any_join_parallel_hash_bug +03360_bool_remote +03362_default_profiles_context +03362_filter_transform_profile_events +03362_join_on_filterpushdown +03362_join_where_false_76670 +03362_optimize_using_constraints_type_mismatch +03362_reverse_sorting_key_explicit_primary_key +03363_constant_nullable_key +03363_estimate_compression_bug91415 +03363_estimate_compression_ratio_validation +03363_function_keccak256 +03363_join_multiple_swap +03363_qbit_create_insert_select +03364_gorilla_codec_parameters +03364_qbit_negative +03364_s3_globbed_path_in_bucket_portion +03364_ttl_should_recalculate_minmax_index +03365_csv_time_deserialization_bug +03365_dynamic_column_datetime +03365_finish_sorting_crash +03365_if_time_time64 +03365_qbit_casts_as_from_array +03365_time64_casts +03365_time_parsing_msan_issue +03365_time_prewhere_supertype_bug +03365_time_time64_as_primary_key +03365_time_time64_comparison +03365_time_time64_insertion_bug +03365_time_time64_supertype +03365_time_time64_without_timezone +03365_time_to_time64_conv_bug +03365_use_legacy_to_time +03365_variant_bool_parsing +03366_bfloat16_sorting +03366_qbit_array_map_populate +03366_with_fill_dag +03367_bfloat16_tuple_final +03367_l2_distance_transposed_1 +03367_l2_distance_transposed_2 +03368_bfloat16_merge_join +03368_qbit_subcolumns +03369_bfloat16_map +03369_function_arrayLevenshtein +03369_l2_distance_transposed_variadic +03369_predicate_pushdown_enforce_literal_type +03369_values_template_types_mismatch +03369_variant_escape_filename_merge_tree +03370_join_identifiers +03370_l2_distance_transposed_negative +03370_remove_redundant_sorting_assert +03370_rocks_db_engine_subcolumn_in_pk +03371_bfloat16_special_values +03371_nullable_tuple_string_comparison +03372_get_subcolumn_null +03372_qbit_mergetree_1 +03372_qbit_mergetree_2 +03374_date_trunc_with_negatives +03374_indexes_with_literals +03374_indexes_with_trivial_cast +03375_bloom_filter_array_equals +03375_bloom_filter_has_hasAny_const_array +03375_bloom_filter_ngram_has_hasAny_const_array +03375_bloom_filter_token_has_hasAny_const_array +03375_bool_partition +03375_l2_distance_transposed_partial_reads_pass +03376_forbid_nan_inf_for_float_settings +03376_iceberg_truncate +03376_l2_distance_transposed_type_mismatch +03377_json_order_by_bug +03377_qbit_parameters +03378_cosine_distance_transposed +03379_qbit_equality +03380_in_tuple_subquery_column_count +03380_input_async_insert +03381_query_result_cache_cte_subqueries +03381_query_result_cache_eligible_queries +03381_query_result_cache_explicit_optin +03381_query_result_cache_in_where_subqueries +03381_query_result_cache_join_subqueries +03381_query_result_cache_nested_subqueries +03381_query_result_cache_scalar_subqueries +03381_query_result_cache_subqueries_exceptions_handling +03381_query_result_cache_subqueries_non_deterministic +03381_query_result_cache_subqueries_settings +03381_query_result_cache_subqueries_with_aliases +03381_query_result_cache_subquery_min_runs +03381_query_result_cache_subquery_settings_propagation +03381_query_result_cache_table_subqueries +03381_query_result_cache_union_subqueries +03389_regexp_rewrite_nullable_group_by +03390_non_constant_case +03391_logical_error_sort_column +03392_crash_group_by_use_nulls +03392_inconsistent_formatting_of_lambda +03393_ASTTableIdentifier_fuzzer +03393_join_bug_77848 +03393_max_read_buffer_size_non_zero +03393_non_constant_second_argument_for_in +03393_smallest_index_floating_point +03393_validate_storage_buffer_args +03394_fix_to_start_of_interval_for_zero_origin_argument +03394_naive_bayes_classifier_negative +03395_global_join_supported_kind +03397_information_schema_tables_index_length +03398_group_array_zero_max_elements +03399_analyzer_correlated_subquery +03399_decimal_to_interval_error +03399_divide_zero_or_null +03399_lc_nullable_mapfromarrays +03399_mapContains_functions +03399_sparse_grams +03400_alter_update_with_rename +03400_analyzer_correlated_subquery_unused_column +03400_auto_minmax_final_sign_bug +03400_datetime64_key_condition_with_number +03400_explain_distributed_bug +03400_get_server_setting +03401_get_merge_tree_setting +03401_normal_projection_with_part_offset +03401_normal_projection_with_part_offset_no_sorting +03401_remote_bool +03402_adding_projection_to_temporary_table +03402_concurrent_right_full_join +03402_cyclic_alter_dependencies +03402_has_low_cardinality_key_condition +03402_materialized_tuple_element +03402_secondary_indexes_analyzer_bugs +03402_zero_streams_after_max_streams_to_max_threads_ratio +03403_chinese_tokens +03403_function_tokens +03403_function_tokens_for_like_pattern +03403_read_in_order_streams_memory_usage +03403_truncate_all_tables_like +03404_bfloat16_insert_values +03404_geotoh3_input_order +03404_json_tables +03404_tokens_bug93207 +03404_ubsan_distinct_join_const_column +03405_bool_array_to_fixed_strings +03405_join_using_alias_constant +03405_json_parsing_error_bug +03405_merge_filter_into_join +03405_naive_bayes_classifier_token +03405_non_zero_batch_mode +03405_ssd_cache_incorrect_min_max_lifetimes_and_block_size +03406_dictionary_incorrect_min_max_lifetimes +03406_reservoir_sample_self_merging +03407_csv_bad_date_time_parsing +03407_parse_date_time_best_effort_unix_timestamp_with_fraction +03408_analyzer_correlated_subquery_simple +03408_cte_self_reference +03408_hash_functions_on_null +03408_implicit_table +03409_coalescing_merge_tree +03409_variant_type_values_format_field_conversion +03410_polygons_intersects +03411_analyzer_scalar_correlated_subquery +03411_iceberg_bucket +03411_variant_basic_discriminators_deserialization_bug +03412_analyzer_correlated_subquery_bug +03412_merge_final_prewhere +03413_analyzer_correlated_subqueries_bug_2 +03413_dynamic_in_in +03413_experimental_settings_cannot_be_enabled_by_default +03414_analyzer_correlated_subqueries_in_function +03414_formatDateTime_compound_formatter_after_varsize_formatter +03435_json_has +03441_deltalake_clickhouse_public_datasets +03441_deltalake_clickhouse_virtual_columns +03442_lightweight_deletes_on_fly +03442_string_bytes_functions +03443_alias_with_asterisk +03443_index_match_alternatives +03443_part_starting_offset +03443_projection_sparse +03444_analyzer_resolve_alias_columns +03444_drop_replica_empty_zkpath +03444_explain_asterisk +03444_flip_coordinates +03444_lm_block_mismatch +03447_analyzer_correlated_subqueries_tpc_h +03447_float_nan_order +03447_function_reverse_for_tuple +03447_grouping_sets_analyzer_const_columns +03447_storage_join_unsupported_keys +03447_window_functions_distinct +03448_analyzer_array_join_alias_in_join_using_bug +03448_analyzer_correlated_subquery_in_projection +03448_analyzer_skip_index_and_lambdas +03448_in_select_tuple +03448_topk_merging +03448_trivial_count_single_threaded_merge +03449_join_using_allow_alias +03449_window_cannot_find_column +03450_parameterized_view_forward +03451_parameterized_views_without_alias +03453_group_by_all_grouping +03453_parameterized_view_array_of_points +03454_parameterized_view_constant_identifier +03454_parameterized_views_null +03456_match_index_prefix_extraction +03456_wide_integer_cross_platform_consistency +03457_bitmapContains_nullable +03457_bug79403_marks_compress_block_is_zero +03457_inconsistent_formatting_except +03457_move_global_in_to_prewhere +03457_numeric_indexed_vector_build +03457_wide_integer_double_conversion_edge_cases +03458_numeric_indexed_vector_operations_bit_promote +03458_numeric_indexed_vector_operations_i8f64 +03458_numeric_indexed_vector_operations_u16f64 +03458_numeric_indexed_vector_operations_u32f32 +03458_numeric_indexed_vector_operations_u32f64 +03458_numeric_indexed_vector_operations_u32i16 +03458_numeric_indexed_vector_operations_u32i32 +03458_numeric_indexed_vector_operations_u32i64 +03458_numeric_indexed_vector_operations_u32i8 +03458_numeric_indexed_vector_operations_u32u16 +03458_numeric_indexed_vector_operations_u32u32 +03458_numeric_indexed_vector_operations_u32u64 +03458_numeric_indexed_vector_operations_u32u8 +03458_wkb_function +03459-reverse-sorting-key-stable-result +03459_join_cannot_add_column +03459_numeric_indexed_vector_decode +03459_socket_asynchronous_metrics +03460_normal_projection_index +03460_normal_projection_index_bug_race_conditions +03460_numeric_indexed_vector_to_value_map +03460_projection_part_filtering_and_introspection +03461_numeric_indexed_vector_chain +03461_pk_prefix_trivial_count +03461_projection_index_multi_part +03461_string_to_date_time_cast_modes +03462_numeric_indexed_vector_serialization +03463_numeric_indexed_vector_overflow +03471_sum_map_bool_state_version_0 +03500_row_policy_storage_merge_bare_column +03505_fixed_string_try_parse_rollback +03509_stripe_log_compatible_types +03511_formatDateTime_e_space_padding +03512_bech32_functions +03512_join_using_parent_scope_matcher +03512_settings_max_block_size +03513_filter_push_down_rand_bug +03513_lazy_materialization_projections_fix +03513_nullsafe_join_storage +03513_read_in_order_nullable +03513_simple_aggregate_function_any_respect_nulls_in_aggregating_merge_tree +03513_simple_aggregate_function_any_respect_nulls_in_summing_merge_tree +03514_grace_hash_join_logical_error +03515_array_join_different_sizes +03516_comparison_pk_bug +03516_int_exp2_join +03517_logical_join_predicate_push_down_with_pre_expression_bug +03517_wrong_primary_key_analysis +03518_bad_sql_udf +03518_left_to_cross_incorrect +03518_table_function_remote_no_replicas +03519_analyzer_tuple_cast +03519_cte_allow_push_predicate_ast_for_distributed_subqueries_bug +03519_fulter_push_down_duplicate_column_name_bug +03519_left_to_cross_incorrect +03519_merge_engine_read_column_existing_in_subset_of_tables +03519_merge_tree_part_info_coverage +03519_merge_tree_part_info_unpack +03519_multiple_join_using +03519_zero_filesystem_prefetch_max_memory_usage +03520_analyzer_distributed_in_cte_bug +03520_left_to_cross_incorrect +03521_bitNot_String_NUL_terminated +03521_long_partition_column_name +03521_long_statistics_name +03521_system_unicode +03521_tuple_of_dynamic_with_string_comparison +03522_alter_modify_column_and_materialize_projection +03522_analyzer_check_correlated_columns +03522_function_first_non_default +03522_join_resolve_matcher_recursive_bug +03522_join_using_bug_78907 +03522_nullable_partition_key +03522_window_table_arg +03523_function_first_non_default_number_args +03525_timezoneof_illegal_type +03525_transform_null_in_subqeury_with_not_nullable_type +03526_columns_substreams_in_wide_parts +03529_quantile_deterministic_ubsan +03530_insert_into_distributed_different_types_sparseness +03531_insert_removing_sparse_transform +03532_divideOrNull_jit_crash +03532_dynamic_column_inside_map_rollback +03532_redis_empty_variant_key +03532_window_function_and_null_source_max_threads +03533_analyzer_correlated_column_check +03533_named_tuple_supertype +03533_skip_index_on_data_reading +03533_xirr +03534_npy_output_to_url +03534_skip_index_bug89691 +03538_analyzer_correlated_query_collect_columns_fix +03538_analyzer_filter_analysis_alias_columns +03538_analyzer_scalar_correlated_subquery_fix +03538_array_except +03538_higher_order_functions_null_filter +03538_optimize_rewrite_regexp_functions +03538_validate_setting_merge_max_block_size +03540_date_trunc_old_behaviour +03541_table_without_insertable_columns +03542_TTL_dict +03545_analyzer_correlated_subqueries_use_equivalence_classes +03545_analyzer_correlated_subqueries_use_equivalence_classes_2 +03545_analyzer_correlated_subquery_exists_asterisk +03545_array_join_index_set_bug +03545_map_contains_bloom_index_bug +03545_number_of_rows_in_ttltransform +03545_union_allow_column_with_no_common_type +03546_03545_analyzer_correlated_subquery_exists_asterisk_crash +03546_join_key_value_storage_with_casted_key +03546_merge_tree_projection_shared_snapshot +03546_multiple_join_use_nulls_matcher +03546_part_granule_offset +03547_analyzer_correlated_columns_check_bug +03547_analyzer_correlated_subqueries +03547_equals_optimizer_lowcardinality +03547_reinterpret_to_array +03548_analyzer_indentifier_resolution_invariant +03548_optimize_syntax_fuse_functions_clash +03549_aggregate_arithmetic_logical_error +03549_conv_function +03549_system_dimensional_metrics +03549_window_collation +03549_wkb_function +03550_analyzer_remote_view_columns +03550_projection_with_part_offset_ttl +03550_s3queue_no_settings +03550_union_intersect_except_default_mode_rewrite_exception_safety +03551_cast_decimal_to_float +03551_no_alter_for_columns_to_sum +03552_inconsistent_formatting_operator_as_table_function +03553_inconsistent_formatting_of_dictionary +03555_inconsistent_formatting_ttl +03557_parasitic_cse_in_formatter +03558_no_alias_in_single_expressions +03559_explain_ast_in_subquery +03560_low_cardinality_keys_filter +03560_new_analyzer_default_expression +03560_parallel_replicas_external_aggregation +03560_validate_max_insert_block_size +03561_analyzer_cte_cycle_resolve_bug +03561_colorSRGBToOKLCH +03561_two_mvs_bad_select +03562_colorOKLCHToSRGB +03562_geometry_type +03562_json_date_as_integer +03562_parallel_replicas_subquery_has_final +03562_short_circuit_for_and_or +03563_coarser_minmax_indexes_first +03565_clickhouse_smaller_indexes_first +03565_union_all_nullptr +03566_analyzer_single_with_scope +03566_inconsistent_formatting_functions_codecs +03566_low_cardinality_nan_unique +03566_one_row_summing_merge_tree +03567_analyzer_single_with_scope_cycle +03567_finalize_write_buffer_valid_utf8 +03567_join_using_projection_distributed +03567_json_extract_case_insensitive_edge_cases +03567_nowInBlock64 +03568_ddsketch_merge +03568_json_extract_case_insensitive +03568_mutation_affected_rows_counter +03569_max_joined_block_size_rows_bug +03570_dateTimeToUUIDv7 +03570_date_to_datetime64_overflow +03570_limit_by_all +03571_join_inequality_constants +03571_trying_to_get_name_of_not_a_column_asterisk +03572_planner_merge_filter_into_join_bug +03573_concurrent_hash_scatter_bug +03573_create_query_parameters_in_to_in_materialized_view +03573_join_storage_not_change_kind +03573_linear_regression_timeseries_functions_various_arguments +03573_planner_merge_filter_into_join_bug_2 +03574_analyzer_merge_filter_into_join_bug +03574_parallel_replicas_last_right_join +03575_analyzer_merge_filter_into_join_bug_2 +03575_modify_column_null_to_default +03575_modify_column_null_to_default_cross_type +03576_analyzer_recursive_window +03577_server_constant_folding +03577_temporary_table_as +03577_ub_max_column_in_block_size_bytes +03578_parallel_replicas_formatting_tuple +03578_ttl_column_in_order_by_validation +03579_mergeTreeIndex_params +03579_multi_if_short_circuit +03579_system_columns_column_alias +03580_external_merge_sort_with_lazy_columns +03580_heredoc_ambiguity +03580_improve_prewhere +03580_join_runtime_filter_column_type +03580_join_runtime_filter_prewhere +03580_join_runtime_filter_pushdown +03581_bool_literal_column_name +03581_read_in_order_use_virtual_row_WHERE +03582_initcap_fixedstring +03582_normalize_utf8_empty +03583_rewrite_in_to_join +03588_multiple_root_workloads +03591_optimize_prewhere_row_policy +03592_dictionary_columns_trailing_comma +03593_allow_projection_with_parent_part_offset +03593_any_join_swap_tables +03593_backup_with_broken_projection +03593_remote_map_in +03594_alias_subcolumns +03594_coalescing_merge_tree_segfault +03594_constraint_subqery_logical_error +03594_is_valid_ascii +03594_is_valid_ascii_errors +03594_json_extract_decimal_precision +03594_like_perfect_affix_rewrite_pass +03594_push_more_filters_down_joins +03594_system_grants_parameters +03595_alter_drop_column_comment_if_exists +03595_alter_if_exists_mixed_commands +03595_alter_if_exists_runtime_check +03595_analyzer_lateral_join +03595_changes_timeseries_functions_various_arguments +03595_convert_any_join_to_semi_or_anti +03595_exists_as_scalar_subquery +03595_pread_threadpool_direct_io +03596_parquet_prewhere_page_skip_bug +03597_alter_column_with_subcolumn_in_key +03599_bad_date_and_datetimes_inference +03599_lightweight_delete_vertical_merge +03600_analyzer_setting_bool +03600_default_nullable_query_parameters +03600_replace_fixed_string_bug +03601_histogram_quantile +03601_inconsistent_table_names +03601_insert_squashing_remove_const +03601_replace_regex_fixedstring_empty_needle +03601_temporary_views +03602_alter_update_nullable_json +03602_embeddedrock_path +03602_query_system_tables_definer +03603_getSubcolumnType_msan +03603_ip_binary_operators +03604_and_join_use_nulls_bug_83977 +03604_dynamic_key_in_join +03604_functions_to_subcolumns_outer_join +03604_join_reorder_pinned_bug +03604_key_condition_set_tuple_bug +03604_parallel_with_query_lock +03604_plan_step_description_limit +03604_string_with_size_stream +03604_test_merge_tree_min_read_task_size_is_zero +03605_dynamic_to_nullable_low_cardinality_bug +03610_disjunctions_pushdown_optimization +03610_remote_queries_with_describe_compact_output +03611_cte_deterministic +03611_point_in_polygon_key_condition_bug +03611_window_definition_parsing +03612_explain_indexes_bugs +03613_empty_tuple_permute_with_limit +03613_window_functions_in_order +03620_analyzer_distributed_global_in +03620_json_advanced_shared_data_seek_bug +03620_mergeTreeAnalyzeIndexes +03620_mergeTreeAnalyzeIndexes_columns +03620_mergeTreeAnalyzeIndexes_regressions +03620_mergeTreeAnalyzeIndexes_sets +03620_mergeTreeAnalyzeIndexes_skip_indexes +03622_distributed_index_analysis_fallback_to_localhost +03622_generic_aggregate_functions__state_compatibility +03622_ttl_infos_where +03623_convert_any_join_to_semi_or_anti_2 +03623_datetime64_preepoch_fractional_precision +03623_lazy_materialization_array_sizes_bug +03623_parquet_bool +03623_setting_boolean_shorthand_err_test +03624_csv_empty_array_from_empty_string +03624_parquet_row_number +03624_pr_lefl_right_joins_chain +03624_resource_exhaustion_window_function +03625_auto_statistics +03625_auto_statistics_alter +03625_auto_statistics_validation +03625_case_without_condition_non_constant_branches +03625_prewhere-and-default-bug +03625_upper_lower_utf8_different_number_of_code_points +03626_case_function_with_dynamic_argument +03627_non_constant_replacement_in_replace_regexp +03628_named_tuple_element_in_order_by_key +03628_parse_date_time_short_circuit +03629_duplicate_partition_keys_crash +03629_starts_endswith_caseinsensitive +03630_any_join_to_semi_storage_join_guard +03630_hash_join_max_block_size +03630_join_blocks_with_different_constness +03630_parquet_bool_bug +03631_select_replace_comprehensive +03632_default_minmax_indices_alter +03632_join_logical_assert_85403 +03632_lowcard_join +03632_temporary_table_not_allowed_columns +03633_negative_limit_offset +03633_set_index_bulk_filtering +03635_in_function_different_types_many_columns +03636_empty_projection_block +03636_index_analysis_with_session_tz +03636_storage_alias_row_policy +03636_storage_alias_syntax +03638_merge_max_dynamic_subcolumns_in_compact_part +03638_merge_max_dynamic_subcolumns_in_wide_part +03639_hash_of_dynamic_column +03640_skip_indexes_data_types_with_or +03640_skip_indexes_with_or +03640_skip_indexes_with_or_and_not +03640_variant_array_null_map_subcolumn +03641_analyzer_issue_85834 +03641_group_by_injective_functoon_bad_arguments +03642_column_ttl_sparse +03642_system_instrument_symbols +03643_paste_join_disable_filter_pushdown +03643_system_instrumentation_no_suspicious_lowcardinality +03644_explain_indices +03644_join_order_mixed_comma_and_left +03644_min_level_for_wide_part +03646_array_join_empty +03647_morton_encode_empty_tuple +03651_merge_tree_compact_read_string_size_subcolumn +03651_positional_argument_agg_projection +03652_explain_input_header +03652_join_using_legacy_step +03652_union_columns_2 +03653_fractional_limit_offset +03653_updating_minmax_idx_after_mutation +03654_case_non_constant_null +03654_grouping_sets_any_min_max +03656_nan_comparison +03657_gby_overflow_any_sparse +03657_hash_vs_full_sorting_merge_join +03657_rollup_constant +03658_joined_block_split_single_row_bytes +03660_udf_subquery +03663_parameterized_views_formatting_of_substitutions_excessive_backticks +03664_parameterized_view_restart +03666_count_matches_complexity +03667_accurate_cast_datetime_overflow +03667_drop_inner_table_size_limits +03667_insert_columns_description +03667_pr_join_with_cross_join_on_left +03668_shard_join_in_reverse_order +03669_min_max_projection_with_reverse_order_key +03670_aggregate_projection_in_view +03671_dict_in_subquery_in_index_analysis_context_expired +03671_pk_in_subquery_context_expired +03672_columns_same_as_subcolumns +03672_nested_array_nested_tuple +03680_mergetree_shrink_const_from_prewhere +03681_lazy_materialization_with_read_in_order +03690_parameterized_view_array_subquery_param +03699_reverse_utf8 +03701_analyzer_correlated_subquery_plan_reference +03701_column_ttl_fully_expired +03701_create_or_replace_temporary_table +03701_distinct_but_no_group_by_projection_table_use_check +03701_limit_by_in_order +03701_optimize_inverse_dictionary_lookup_basic +03701_replicated_column_short_circuit_filter +03701_temporary_files_buffer_size +03702_alter_codec_index +03702_alter_codec_pk +03702_alter_column_modify_secondary_index_general +03702_alter_column_update_and_delete_secondary_index_general +03702_encode_decode_memory_usage +03702_function_dict_get_keys_basic +03702_geometry_functions +03702_inject_random_orderby_doesnt_change_limit +03702_optimize_inverse_dictionary_lookup_composite_and_layouts +03703_distinct_projection_type_mismatch +03703_function_dict_get_keys_large +03703_optimize_inverse_dictionary_lookup_dictget_family +03703_prelimit_explain_message +03703_primary_key_condition_boolean_column +03703_statistics_low_cardinality +03704_default_empty_order_by +03704_fractional_limit_with_ties +03704_function_dict_get_keys_cache_type +03705_count_if_asterisk +03705_fix_compression_T64_unaligned +03705_function_dict_get_keys_multiple_dict_and_no_caching +03707_analyzer_convert_outer_any_to_inner +03707_empty_parts_with_non_empty_projections_merge +03707_join_duplicate_columns +03707_set_index_bad_get_null_bug +03707_statistics_cache +03708_analyzer_convert_any_outer_to_inner_2 +03708_exact_rows_before_limit_in +03708_flush_async_insert_queue_for_table +03708_join_or_to_right_any_bug +03708_join_to_in_output_header +03708_low_cardinality_aggregate_state_compatibility +03708_statistics_estimator_cast_type +03709_anti_join_runtime_filters +03709_coalescing_final +03709_final_prewhere_special_columns +03709_remove_unused_columns_from_prewhere +03709_replicated_columns_right_join +03710_analyzer_limit_by_aggregate_validation +03710_argAndMinMax +03710_array_join_in_map_bug +03710_midpoint +03710_midpoint_jit +03710_pr_join_with_mv +03711_contingency_window_function +03711_read_in_order_through_join +03711_top_k_by_skip_index +03711_top_k_by_skip_index_negative +03712_nested_loop_join_merge_tree +03712_tuple_inside_nullable_implicit_cast_for_in_function_1_1 +03712_tuple_inside_nullable_implicit_cast_for_in_function_1_2 +03712_tuple_inside_nullable_implicit_cast_for_in_function_2 +03713_data_types_binary_deserialization_stack_overflow +03713_optimize_inverse_dictionary_lookup_setting_rewrite_in_to_join +03713_replicated_columns_in_external_data_bug +03714_base32_base58_short_string +03714_queries_escaping_1 +03714_queries_escaping_2 +03715_projection_settings +03715_tuple_inside_nullable_in_qualified_expression +03716_anti_join_runtime_filters_2 +03716_join_duplicate_columns_89411 +03716_join_right_side_sorting +03716_multiple_joins_using_top_level_identifier +03716_topk_bad_data +03717_system_unicode_enums +03718_lambda_multiif_bool_uint8_type +03719_generic_hash_over_constant_and_non_constant +03719_ntile_no_partition_by_check +03720_datetime64_bad_inference +03720_file_engine_second_crash +03720_insert_mem_no_self_deduplication +03720_ntile_double_order_by_check +03720_rocksdb_multicolumn_primary_key +03720_ubsan_dictionary_parameters +03721_aggregate_projection_actions_dag +03721_check_natural_sort_key +03721_concurrent_right_join_flags_per_row_bug +03721_insert_replicated_array_nested_sizes_check +03721_join_residual_condition_bug_88635 +03721_statistics_alter_type_bug +03722_function_trim_ltrim_rtrim_alias +03722_iceberg_hash_bug +03722_max_insert_block_size_bytes_client_row_format +03722_normal_projection_key_columns +03722_random_utf8_bug +03723_incorrect_implicit_projection +03724_filter_assume_not_null_materialize +03724_to_date_time_or_null_negative_arg_bug +03725_json_dynamic_subcolumn_prewhere_zero_index_granularity_bytes +03725_variant_element_null_map_subcolumn_prewhere_zero_index_granularity_bytes +03726_distributed_alias_column_order +03727_alter_with_localhost_remote +03727_block_structure_mismatch_after_filter_push_down +03727_concat_with_separator_subquery +03727_ipv4_parsing_bug +03727_prewhere_intermediate_columns +03727_rename_nested_and_modify_in_one_later +03727_tolowcardinality_nullable_cast +03728_analyzer_identifier_resolution_join +03728_explain_column_structure +03730_qbit_in_order_by_and_comparison_functions +03732_join_on_exists_bug +03732_json_duplicated_path_in_dynamic_paths_and_shared_data_bug +03732_json_duplicated_path_in_dynamic_paths_and_shared_data_compact_part_bug +03732_toweek_partition_pruning +03733_anti_join_runtime_filter_3 +03733_base58_decode_bug +03733_has_function_key_condition +03733_has_function_key_condition_explain +03733_join_order_dp +03733_sparse_negative_zero +03733_summing_merge_tree_nested_low_cardinality +03734_has_function_key_condition_skip_index +03734_has_function_key_condition_skip_index_explain +03735_async_insert_mergetree_count +03735_excessive_buffer_flush +03736_table_stats_hint +03737_ttl_delete_vertical_merge +03738_aggregation_stats +03740_alter_modify_query_dict_name_in_cse +03741_insert_select_subquery_from_file +03741_subcolumns_of_materialized_columns_in_mutation +03742_apply_row_policy_after_final +03742_array_filter_is_null_empty_array +03742_lazy_materialization_of_array_after_alter_add_column +03742_test_flattened_crash +03743_alp_codec_aggregations +03743_alp_codec_basic_roundtrip +03743_alp_codec_block_sizes +03743_alp_codec_special_values +03743_apply_row_policy_after_final_safety +03743_fix_estimator_crash +03743_summing_and_aggregating_merge_tree_with_json_merge +03745_fix_dynamic_structure_in_compact_part +03747_float_parsing_subnormal +03747_optimize_functions_to_subcolumns_columns_as_substreams +03747_tuple_inside_nullable_untuple_function +03748_coalescing_merge_tree_tuple_low_cardinality_and_dynamic +03748_default_minmax_indices_alter +03748_tuple_of_sparse_elements_bug +03749_arrayROCAUC_variant_type +03749_cross_join_use_nulls_matcher +03749_dictionary_hierarchical_null +03749_implicit_index_ephemeral_alias +03749_in_function_rewrite_lambda_lhs_non_const_rhs +03749_materialized_view_not_supports_parallel_write +03749_table_function_argument_asterisk +03749_tuple_inside_nullable_tuple_names_function +03750_tuple_inside_nullable_tuple_to_name_value_pairs_function +03751_empty_constant_expression_fix +03751_if_uint64_int32_type_mismatch +03751_join_empty_string_nullable +03751_summing_coalescing_merge_tree_sparse_columns_in_header +03752_constant_expression_with_untuple +03752_fractional_limit_offset_small_blocks +03752_join_part +03753_anti_join_runtime_filter_4 +03753_fractional_limit_with_ties_small_blocks +03753_join_runtime_filter_dynamically_disable +03753_log_engine_shared_prefixes_bug +03753_negative_index_for_tuple +03753_replacing_empty_order_by +03753_segfault_with_empty_callback +03754_fractional_limit_offset_multiple_streams +03754_h3_polygon_to_cells_const +03754_point_in_polygon_primary_key_index +03755_circular_dictionary +03755_concurrent_hash_join_dispatch_bug +03755_distinct_low_cardinality +03755_enable_sparse_nullable_consistently +03755_final_prewhere_duplicate_columns +03755_hive_partitioning_used_to_break_insert +03755_large_primary_key_explain +03755_nested_recursive_cte +03755_obfuscate_query +03756_capn_proto_message_size_limit +03756_high_cardinality_primary_key_set +03756_high_cardinality_primary_key_set_explain +03756_mongodb_secret_arguments +03756_sparse_serialization_nullable_in_tuple +03756_time_series_wrong_tags_group +03756_update_query_formatting +03757_ast_not_formatting +03757_nothing_null_safe_comparison +03757_optimize_skip_unused_shards_with_type_cast +03758_positional_argument_agg_projection +03758_validate_ngram_length +03759_join_filterpushdown_granules_read +03760_consistent-in-formatting +03760_join_reorder_outer_inner_nulls +03760_primes +03760_split_join_filter +03761_convert_outer_to_inner_join_keeps_header +03761_count_distinct_optimization_window +03761_inconsistent_ast_formatting +03761_join_using_empty_list +03761_lazy_materialization_split_expr +03761_log_with_string_size +03762_analyzer_convert_any_outer_to_inner_with_injective_function +03762_count_distinct_optimization_multiple_columns +03762_has_in_function_key_condition_deterministic_function_chain_explain +03762_mutation_of_columns_in_wide_part_with_new_type_serialization_version +03763_column_conflicting_with_subcolumn +03763_no_new +03764_join_nothing_type_column_crash +03765_parallel_non_joined_rows_processing +03765_remote_loop_table_function +03766_subcolumns_resolution_in_aliases +03767_implicit_minmax_index_dynamic_variant +03768_rename_alias_column_implicit_index +03769_implicit_index_alias_simple_reference +03770_long_index_name_hash +03771_tokens_crash +03771_tuple_inconsistent_formatting +03772_key_condition_match_function_relaxed +03773_deserialise_malformed_aggregate_state +03773_deterministic_functions_key_condition +03773_deterministic_functions_key_condition_explain +03773_group_concat_overflow +03773_join_on_formatting +03773_key_condition_not_materialize_not_cast +03773_lightweight_update_index_subquery +03773_parquet_roundtrip_bug +03773_semi_join_equivalent_sets +03774_join_pushdown_sharding_bug +03774_ttl_group_by_lowcardinality +03774_wide_part_mutation_sparse_ratio_setting_bug +03775_group_format +03775_join_on_disk_max_files_to_merge +03775_modulo_legacy_key_condition +03775_too_large_temporary_files_buffer_size +03776_text_index_covered_sparse_grams +03777_analyzer_unused_columns_removal_correlated_subquery +03777_join_precalculate_keys +03777_join_runtime_filter_duplicate_columns +03777_join_runtime_filter_empty_header +03777_join_runtime_filter_prepared_right_table +03777_join_runtime_filter_unsupported_type +03777_join_runtime_filter_with_consts +03777_join_runtime_filter_with_nulls +03777_merge_engine_with_aliases_bug +03777_runtime_filter_and_merge_table +03777_top_k_dynamic_filtering_respect_header_bug +03778_bool_in_operator_casting +03778_mutation_bad_sparse_cration_with_altered_ration +03778_read_subcolumns_from_projection +03779_distinct_order_by_limit_by_const_column +03779_float_nan_key_condition +03779_lexer_pointer_overflow_ubsan +03779_missing_type_jit +03779_not_found_subcolumn_in_mv_query_during_alter_of_src_table +03779_time_series_tags_functions +03780_AST_formatting_inconsistencies_in_debug_check +03780_colorOKLABToSRGB +03780_colorSRGBToOKLAB +03780_function_variant_adaptor +03780_has_all_tokens_empty_array +03780_max_insert_block_size_settings_squashing_on_insert_select +03780_min_insert_block_size_settings_squashing_on_insert_select +03780_setting_use_primary_key +03781_json_max_dynamic_subcolumns_control_on_parsing +03781_merge_hostname_remote +03781_split_join_filter_bug +03781_variant_throw_on_type_mismatch +03782_contingency_window_functions_state_serialize_deserialize +03782_non_constant_in_array_func_negative +03782_parse_describe_select_without_parentheses_around_select +03784_correlated_subquery_from_storage +03784_functions_various_bugs +03784_h3_invalid_inputs +03784_materialize_index_subcolumns +03784_msan_token_iterator +03785_rebuild_projection_with_part_offset +03786_clear_column_with_alias_and_index +03786_outer_to_semi_or_anti +03786_storage_join_type_conversion +03787_optimize_inverse_dictionary_lookup_remote_shards +03787_storage_join_type_conversion_2 +03788_hash_join_with_empty_right_side_skip_left_side +03788_parquet_writer_bad_bool +03788_semi_join_filter_pushdown_bug +03788_statistics_part_pruning +03788_statistics_part_pruning_nan +03788_statistics_part_pruning_partial +03788_statistics_part_pruning_precision +03788_statistics_part_pruning_stale_null_count +03788_table_function_results_race +03788_window_function_lag_lead_remote +03789_read_in_order_constant_column_direction +03789_right_join_column_replicated +03789_skip_index_bad_utf8 +03789_to_year_week_monotonicity_key_condition +03789_tuple_inside_nullable_in_function_edge_cases +03790_materialized_postgresql_nullptr_dereference +03790_uniqTheta_error +03791_backup_engine_with_one_arg_must_not_crash +03791_decimal_string_zero +03791_function_to_subcolumns_optimization_on_subcolumns +03791_system_parts_files_column +03792_implicit_index_modify_column +03792_jit_date32 +03792_jit_time64 +03792_push_to_set_via_mv_with_an_error +03792_sparse_offsets_in_substreams_cache_compact_part +03793_alter_with_dependencies_scalar_subquery +03793_logical_expressions_optimizer_group_by_use_nulls +03793_with_fill_staleness_long_jump +03793_with_fill_staleness_overflow +03794_global_in_nullable_type_mismatch +03794_setting_use_lightweight_primary_key_index_analysis +03796_set_index_nested_indexhint_constant +03797_convert_field_to_type_decimal_overflow +03797_set_index_multiple_conditions_same_expression +03798_nullable_primary_key_logical_error +03799_array_autocorrelation +03799_parallel_right_join_flag_per_row +03799_row_order_optimize_duplicate_sorting_columns +03799_statistics_minmax_negative_max +03800_assume_not_null_coalesce_if_null_monotonicity_key_condition +03800_explain_syntax_operators_as_functions +03800_extended_to_start_of_interval +03800_functions_without_parentheses +03800_projection_row_policy_filter_column +03800_string_size_stream_in_nested_types +03800_use_const_adaptive_granularity_vertical_merge +03800_use_const_adaptive_granularity_vertical_merge_nested +03801_domain_empty_string_msan +03801_materialized_cte +03802_aggregating_agg_func_tuple_element +03802_aggregating_nested_tuple_element +03802_aggregating_simple_agg_func_tuple_element +03802_aggregating_unnamed_tuple_element +03802_coalescing_merge_tree_tuple_element +03802_ephemeral_enum_type +03802_float_to_enum_overflow +03802_positional_arg_in_view_distributed_query +03802_storage_alias_referential_check +03802_summing_merge_tree_tuple_sum_and_partition_keys +03803_const_string_comparison_cast_settings +03804_cast_keep_nullable_low_cardinality +03804_date_time_date32_pre_epoch +03804_insert_select_parentheses +03805_array_filter_nullable_lambda +03805_merge_table_filter_push_down_uninitialized_plan +03806_tuple_in_set_with_low_cardinality +03807_top_k_limit_zero +03808_inconsistent_formatting_index_ttl_alias +03808_with_duplicate_alias_nested_scopes +03809_inconsistent_formatting_constraint_alias +03809_virtual_row_with_sparse_primary_key_index +03810_inconsistent_formatting_column_default_alias +03811_contingency_window_functions_nested_combinators_merge +03811_inconsistent_formatting_storage_alias +03811_inconsistent_formatting_ttl_where_alias +03811_join_using_top_level_matcher_type +03811_sparse_column_aggregation_with_sum +03811_test_hint_after_comment +03812_column_function_prewhere_filter +03812_fuse_function_pass_nullable_argument +03812_join_order_ubsan_overflow +03812_quantile_timing_deserialization_bug +03812_reading_subcolumns_of_aliases +03813_size_subcolumn_of_dynamic_subcolumn +03813_subquery_column_aliases_in_join +03814_in_function_strict_conversion +03814_optimize_read_in_order_projection +03814_subquery_parser_partially +03814_system_unload_dictionaries +03814_system_unload_dictionary +03820_limit_after_until +03821_analyzer_group_by_use_nulls +03821_direct_join_empty_table +03821_materialized_cte_with_sets +03821_numbers_primes_filter_bound +03821_remote_grouping_set_aggregation_keys_assert +03821_uniq_speedup_boundaries +03822_alias_column_skip_index_no_merge +03822_insert_null_into_non_nullable_enum +03822_join_reorder_fix_expression_sources +03822_lttb_date32_negative +03822_lwu_patch_type_mismatch_crash +03822_not_ready_set_explain_pipeline +03822_numbers_table_function_edge_cases +03822_window_function_large_preceding_offset +03823_dictionary_circular_dep_deadlock +03823_drop_readd_column_stale_data +03823_gorilla_codec_mismatched_size +03823_lwu_patch_type_mismatch_dataloss +03823_optimize_dry_run +03823_optimize_dry_run_cleanup +03823_optimize_dry_run_patch_parts +03823_optimize_dry_run_projections +03823_optimize_dry_run_timeout +03823_prefetched_read_pool_priority_assertion +03823_skip_index_disjunction_oob +03823_table_disk_cache_key_collision +03824_index_reader_const_granularity_last_mark +03825_array_with_constant_fixed_string +03825_bitxor_if_mixed_types +03825_exists_constant_folded_action_name +03825_join_right_sorting_empty_maps +03825_xxh3_128_hash_function +03826_array_join_in_bloom_filter +03826_coalesce_reversed_args_key_condition +03826_right_outer_join_runtime_filters +03826_xxh3_128_types +03827_cross_join_no_right_columns +03827_right_any_join_runtime_filters +03828_multi_join_wrong_column_resolution +03829_distance_transposed_pass_nullable_nothing +03829_insert_deduplication_info_memory +03829_log_engine_ephemeral_subcolumn +03830_vertical_merge_inject_column_after_drop +03831_index_of_assume_sorted_const_exception +03832_log_engine_alias_subcolumn +03833_server_ast_fuzzer +03834_fuzz_query_function +03835_join_transitive_predicates +03835_join_transitive_predicates_dedup +03835_join_transitive_predicates_edge_cases +03835_join_transitive_predicates_outer +03835_todate_monotonicity_boundary +03836_array_join_in_filter_partial_evaluation +03836_tpch_join_order_plans +03837_negative_limit_by +03837_subquery_ndv_propagation_join_order +03838_right_join_using_nullable_type_mismatch +03844_point_in_polygon_variant_const_key_condition +03891_predicate_pushdown_union_in_join_on +03900_replace_one_byte_fast_path +03901_issue_70015_minus_type_mismatch +03902_format_datetime_fractional_msan +03902_jit_cast_to_bool +03903_cancellation_checker_large_timeout +03903_join_alias_dups +03904_explain_format_null +03904_fix_empty_statistics_load +03904_fuse_function_pass_lowcardinality_nullable_argument +03904_has_function_partition_pruning_key_condition +03905_select_replace_where_same_column +03905_set_partition_pruning_key_condition +03905_skip_index_set_null +03905_window_function_constant_in_group_by +03906_group_by_lowcardinality_parallel_hash_join +03908_distributed_in_select_with_analyzer +03908_lazy_materialization_replacing_merge_tree +03909_union_all_remote_predicate_pushdown +03910_limit_always_read_till_end_with_constant_false_having +03910_skip_index_empty_expression +03911_to_low_cardinality_clone_nullable +03912_set_index_dynamic_type +03913_data_type_function_null_arg_hash +03913_ipcrypt_functions +03913_jemalloc_cache_arena_metrics +03913_minmax_statistics_nan_ubsan_error +03913_multijoin_equivalent_sets +03913_partially_materialized_statistics +03913_semi_anti_join_column_access +03913_text_index_preprocessor_expression +03914_create_table_with_constraint_crash +03914_dynamic_illegal_subcolumn +03914_has_any_all_tokens_with_tokenizer +03914_ipcrypt_functions_errors +03914_join_using_projection_alias +03914_json_functions_with_object_type +03914_parquet_v3_prewhere_non_bool_filter +03915_auto_statistics_replacing_merge +03915_bech32_invalid_witness_version +03915_row_policy_should_respect_final_by_default +03915_spilling_hash_join +03916_coalescing_merge_tree_const_column_from_index +03916_contingency_state_variant_serialization_match +03916_except_intersect_all_multiset +03916_has_to_in +03916_ifnull_variant_group_by +03916_lazy_materialization_union_all +03916_merge_tree_order_by_subquery +03916_system_fault_injection_points +03916_system_log_indexes +03916_ttl_minmax_projection_epoch_bug +03917_arrayFold_lambda_as_accumulator +03918_array_element_negate_int_min +03918_arrayjoin_function_with_join_and_where +03918_convert_join_to_in_arrayjoin_dangling +03918_if_transform_strings_to_enum_nullable +03918_insert_squashing_const_different_values +03918_json_lazy_type_hints_merge +03918_replace_table_clone_as_verbose_result +03918_variant_adaptor_nothing_type +03919_json_lazy_type_hints_incompatible +03919_startsWithUTF8_use_primary_key +03919_variant_adaptor_lowcardinality +03920_projection_empty_order_by_formatting +03921_internal_functions_have_internal_category +03921_ip_trie_nullable_key +03921_merge_tree_settings_readonly +03921_quoted_all_column_in_order_group_limit_by +03923_masking_policy_on_cluster_format +03923_union_all_cte_skip_index_prewhere +03924_constant_granularity_last_mark +03924_join_use_nulls_function_result_type +03924_sorting_step_stats +03924_table_readonly_setting +03925_exists_with_mutations_execute_on_initator +03925_fix_lambda_arrow_token_consumption +03925_grouping_function_constant_argument +03925_sparse_values_in_substreams_cache_bug +03925_tuple_comparison_nothing_type +03925_variant_adaptor_const_lowcardinality +03926_convert_to_full_recursive_tuple_sparse +03926_group_by_use_nulls_constant_type +03926_semi_join_swap_tables +03926_system_stemmers +03927_anti_join_swap_tables +03927_correlated_subquery_table_function_context +03927_except_all_ast_formatting_roundtrip +03927_formatting_consistency_tuple_on_clause +03927_join_use_nulls_subcolumn +03927_json_typed_path_tuple_element +03927_nested_columns_duplicate_identifier +03927_recursive_materialized_cte +03927_row_filter_in_read_in_order_optimization +03927_sumcount_compatibility +03928_deferred_filters_after_final_in_explain +03928_full_join_swap_tables +03928_isNull_nullable_tuple_subcolumn +03928_materialized_cte_index +03928_merge_lambda_alias_columns +03929_index_hint_final_remove_unused_columns +03930_pr97672_validation_error_paths +03935_with_fill_by_sorting_prefix_collation +03950_identity_preserves_geometry_type +03960_join_order_dphyp_algo_combo +03960_join_order_dphyp_basic +03960_join_order_dphyp_bridge +03960_join_order_dphyp_chain10 +03960_join_order_dphyp_clique +03960_join_order_dphyp_cycle +03960_join_order_dphyp_fallback +03960_join_order_dphyp_hyperedge +03960_join_order_dphyp_limits +03960_join_order_dphyp_merge_filter_fallback +03960_join_order_dphyp_multi_predicate +03960_join_order_dphyp_null_safe +03960_join_order_dphyp_over_limit +03960_join_order_dphyp_search_budget +03960_join_order_dphyp_single_table_predicates +03960_join_order_dphyp_star +03960_join_order_dphyp_transitive_predicates +03960_join_order_dphyp_tree +03960_join_order_dphyp_triangle +03960_materialized_view_insert_wider_target_enum_107635 +03970_quantile_exact_exclusive_overflow_ubsan +03976_geometry_functions_accept_subtypes +03977_pr_expected_join +03977_rollup_lowcardinality_nullable_in_tuple +03978_alter_table_execute_expire_snapshots_parse +03979_datetime64_preepoch_partition_pruning +03980_datetime64_preepoch_partition_pruning_explain +03984_in_single_column_reference +03984_table_function_arg_in_remote_with_join_using +03985_lateral_join +03985_parenthesized_from_join +03987_concat_variant_low_cardinality +03987_not_operator_precedence +03988_concat_with_separator_format_variant_low_cardinality +03988_grace_hash_join_leftover_blocks +03988_lazy_final_replacing_merge_tree +03988_map_contains_key_like_tokenbf +03988_map_with_buckets_create_and_write +03988_mutations_with_analyzer +03988_setting_use_partition_pruning +03989_codec_ignore_nulls_formatting +03989_map_subcolumn_function_to_subcolumns +03989_set_low_cardinality_in_tuple +03990_alter_rename_column_swap_different_types +03990_map_subcolumn_skip_index +03990_set_dynamic_low_cardinality_join_runtime_filter +03991_set_variant_low_cardinality_in_global_in +03992_join_using_remote_table_function_with_alias +03992_map_subcolumns_small_memory +03993_join_no_overlapping_columns_85622 +03993_map_subcolumns_small_compact +03994_map_subcolumns_small_wide +03996_create_user_ssh_key_marker_reserved +03997_map_subcolumns_key_types +03998_map_subcolumns_nullable_and_complex_values +03999_alter_modify_constraint +03999_empty_to_equals_rewrite_for_nullable +03999_key_condition_multi_atom +03999_lwd_combined_mutation_with_index +04000_anti_join_runtime_filter_multi_key +04000_map_subcolumns_prewhere +04000_nullable_tuple_null_subcolumn_ambiguity +04001_attach_clone_part_level_reset +04001_clone_as_part_level_reset +04001_inconsistent_ast_formatting_confusing_array_with_subquery +04001_join_reorder_through_expression +04001_logical_error_with_cube +04001_parquet_prewhere_missing_column +04001_virtual_row_conversions_join_column_names +04002_cast_nullable_read_in_order +04002_deterministic_filter_chain_partition_pruning_key_condition +04002_join_using_top_level_array_join +04002_sign_jit_miscompilation +04003_array_join_in_filter_outer_to_inner_join +04003_cast_nullable_read_in_order_explain +04003_deterministic_filter_chain_partition_pruning_key_condition_explain +04003_geojson_input_format +04003_interpolate_element_with_alias_formatting +04003_join_lazy_indexing +04003_text_index_search_mode +04004_alter_modify_column_ttl_without_type +04004_cast_nullable_monotonicity_key_condition +04004_finalize_projection_parts_synchronously +04004_insert_compound_select_formatting +04004_integral_col_comparison_with_float_key_condition +04004_log_alias_subcolumn +04005_case_with_expression_nullable_nothing +04005_correlated_column_in_lambda +04005_ddsketch_corrupted_data +04005_dictionary_read_excessive_num_streams +04005_empty_part_name +04005_merge_table_virtual_column_filter_bad_cast +04005_primes_numbers_system_table_float_literal +04005_share_nested_offsets +04005_window_single_line_formatting +04005_with_fill_limit_by +04006_convert_join_to_in_dummy_column +04006_correlated_columns_collector_scope +04006_materialize_index_race_with_drop +04006_not_subquery_not_like_formatting +04006_nullable_partition_minmax_merge +04006_parquet_bool_to_fixedstring +04006_parquet_date_to_enum_insert +04006_skip_empty_columns_on_insert +04006_table_function_in_expression_context +04007_low_cardinality_in_column +04007_pipeline_stuck_ping_pong_deadlock +04007_remove_unused_columns_join_header_mismatch +04007_skip_empty_columns_mutations +04008_count_distinct_optimization_with_qualify +04008_log_engine_nested_subcolumn_cache +04008_skip_empty_columns_lifecycle +04009_cross_join_inner_join_using +04009_dict_get_or_default_nullable_key_short_circuit +04009_join_using_cross_join_projection_alias +04009_projection_aggregate_empty_block_from_ttl +04010_column_replicated_handling_in_partial_sorting_transform +04010_create_or_replace_table_clone_as +04010_empty_database_name_parameter +04010_explain_actions_pretty_and_verbose +04010_filter_pushdown_non_boolean_output +04010_lift_up_functions_missing_sort_column +04010_negate_nullable_from_join_use_nulls +04010_null_safe_cmp_dynamic_const +04010_prewhere_in_subquery_merge_tree +04010_subquery_in_order_key +04010_text_index_incompelete_granules +04011_compress_per_column_in_compact_parts +04011_detach_rename_attach_column +04011_explain_pretty_join +04012_explain_pretty_output +04012_versioned_collapsing_final_filter +04013_loop_function_output_columns +04014_json_compact_each_row_null_string +04015_json_compact_each_row_int128_parsing +04016_exists_group_by_resolution +04017_column_alias_set_operations +04018_insert_with_scopes_disabled +04019_pipeline_stuck_sort_overflow +04020_lc_null_full_join +04021_join_on_false_chunk_rows +04022_triple_join_using_bad_cast +04023_rollup_totals_memory_limit +04024_create_table_empty_comment_as_select_formatting +04024_drop_column_alias_dependency +04024_fold_utf8 +04024_jit_multiif_mixed_types +04024_json_least_supertype_merge +04024_json_skip_index_bloom_filter +04024_json_skip_index_larger_granularity +04024_json_skip_index_text +04024_json_skip_index_token_ngram +04024_parse_datetime_best_effort_invalid_words +04024_prewhere_parquet_keycondition +04025_ip_trie_nullable_key +04026_prewhere_qualify_text_index +04027_base58_optimized +04027_final_prewhere_constant_where_remove_unused_columns +04027_json_input_format +04027_redundant_equals_variant_type +04027_redundant_trailing_bytes_aggregate_function_deserialization +04027_remote_input_table_function +04027_reverseUTF8_invalid_utf8 +04027_set_index_or_non_indexed_column +04028_recursive_cte_remote_view_segfault +04028_squashing_with_strict_bounds_bytes_underestimation +04029_join_convert_to_fixed_hash_table +04029_json_columns_input_format +04029_multiply_monotonicity +04029_read_in_order_expression_virtual_row +04029_ttl_delete_filter_vertical_merge_subquery +04029_window_parallel_arrow_memory_guard +04029_with_fill_staleness_cross_chunk +04030_array_fold_memory_peak_guard +04030_correlated_subquery_untuple +04030_text_index_condition_logical_error +04031_financial_functions_bfloat16 +04031_nan_in_pk_index_binary_search +04031_patch_parts_without_part_offset +04032_alter_version_column_nonexistent +04032_and_comparison_filter_optimization_1 +04032_and_comparison_filter_optimization_2 +04032_and_comparison_filter_type_conversion +04032_commit_order_projection +04032_filter_push_down_const_having +04032_fixedstring_prefix_key_condition +04032_naive_bayes_dictionary +04032_nested_function_preserves_lowcardinality +04032_query_tree_pass_order +04033_commit_order_projection_replacing_merge +04033_dynamic_disk_allow_from_env +04033_empty_string_pk_monotonicity +04033_ephemeral_column_conflicts_with_virtual +04033_except_transformer_with_alias +04033_exists_with_limit_offset +04033_issue_94659 +04033_naive_bayes_dictionary_negative +04033_text_index_empty_block_during_merge +04033_top_k_dynamic_filter_nullable_string +04034_any_left_join_in_subquery_default_value +04034_buffer_sample_no_sampling_key +04034_commit_order_projection_validation +04034_h3_functions_default_if_invalid +04034_patch_parts_column_order_mismatch +04034_top_k_skip_index_nullable_guard +04035_alp_auto_codec_basic_roundtrip +04035_alp_rd_codec_basic_roundtrip +04035_alp_rd_codec_special_values +04035_bech32_bip173_raw_encoding +04035_buffer_sample_with_sampling_key +04035_cast_keep_nullable_dynamic +04035_commit_order_projection_mutation +04035_create_as_select_intersect_settings +04035_highlight_too_many_needles +04035_materialized_cte_lazy_analysis +04035_normalize_utf8_nfkc_casefold +04035_text_index_map_values_in +04035_toDaysInMonth +04036_columns_replicated_with_unreferenced_rows +04036_commit_order_projection_index +04036_regex_primary_key_optimization +04036_text_index_map_keys_values_in +04037_cast_nullable_fixedstring_too_large +04037_commit_order_projection_deferred +04037_map_key_subcolumn_tuple_value_mergetree +04037_text_index_map_empty_values_in +04037_time_datetime64_comparison +04038_ascii_cjk_tokenizer +04038_check_table_sparse_tuple_dynamic +04038_printf_dynamic_format +04038_text_index_no_negated_functions +04038_text_index_preprocessor_type_validation +04039_commit_order_projection_materialize_level0 +04039_count_nullable_tuple_subcolumn +04039_explain_union_settings_formatting_roundtrip +04039_intersect_except_duplicate_column_names +04039_jemalloc_fragmentation_validation +04039_limit_after_until_regression +04039_materialize_projections_on_insert +04039_prune_array_join_columns +04039_statistics_in_single_param +04039_text_index_direct_read_select_alias +04039_text_index_map_values_subcolumn +04039_ttl_where_in_subquery_vertical_merge +04040_alter_drop_part_non_literal +04040_alter_ephemeral_column_conflicts_with_virtual +04040_cascades_semi_join_broadcast_correctness +04040_clear_column_with_projection_index +04040_commit_order_projection_merge_levels +04040_defaults_dependency_order +04040_like_escape +04040_limit_after_until_subquery +04040_map_subcolumn_having_bug +04040_materialize_projections_on_merge +04040_union_block_structure_prewhere_projection +04040_vertical_merge_cancel_rows_sources +04040_window_funnel_strict_deduplication +04041_attach_table_no_partition_key_metadata_cache +04041_cascades_anti_outer_join_broadcast_correctness +04041_format_create_as_select_with_output_options +04041_limit_after_until_subquery_combinations +04041_parquet_use_filter_in_decoder_with_offset_index +04041_text_index_direct_read_or_multi_column +04041_vertical_merge_stop_start_race +04042_drop_detached_part_non_literal +04042_hash_join_allocated_size_tracking +04042_limit_after_until_nullable +04042_materialized_cte_union +04042_nan_pk_multi_row_granule +04042_some_keyword +04042_text_index_lightweight_delete +04042_text_index_prewhere_alias_select +04042_time_datetime_supertype +04042_time_series_range_overflow +04043_limit_after_all +04043_natural_join +04043_support_set_time_zone +04043_text_index_in_with_preprocessor +04043_time_datetime_tz_comparison +04044_limit_after_until_errors +04044_mutation_ephemeral_materialized +04044_recursive_cte_remote_view_actual_recursion +04044_text_index_hash_token_boundaries +04045_aggregate_functions_null_for_empty_non_nullable_result +04045_crc32_fixed_string_empty_column +04045_limit_after_until_chunk_boundary +04045_merge_function_missing_columns_remote +04045_reverse_order_virtual_row +04046_alter_modify_query_settings_formatting +04046_detach_attach_secondary_index_metadata_cache +04046_filling_step_overflow +04046_format_alter_modify_query_with_settings +04046_midpoint_mixed_types +04046_rollup_cube_with_external_group_by +04046_sipHash128Keyed_map_with_empty_arrays +04047_arrow_uuid_nested_reader +04047_grouping_sets_with_external_group_by +04047_join_filter_pushdown_equivalent_using_types +04047_kill_query_const_column +04048_correlated_exists_limit_offset +04048_projection_alias_column_order_by +04048_sumcountif_nullable_backward_compat +04049_aggregate_function_numeric_indexed_vector_self_merge +04049_arrayRemove_nullable_tuple +04049_clear_column_projection_compact_merge +04049_explain_ast_parenthesized_access_queries +04049_inject_required_columns_dangling_reference +04049_is_true_false_unknown +04049_negative_limit_with_ties_basic +04049_numeric_indexed_vector_negative_scalar_ubsan +04049_remote_subquery_in_unresolved_table_function_argument +04049_statistics_enum_invalid_value +04049_timeseries_aggregate_function_parallel_replicas +04049_values_clause_standard_sql +04049_virtual_row_overlap +04049_with_func_alias_in_view +04050_accurateCastOrDefault_const +04050_explain_ast_insert_with_output_options +04050_iceberg_virtual_columns_return_bug +04050_join_merge_table_duplicate_columns +04050_lc_nullable_query_parameters +04050_mark_cache_compact_part_mutation +04050_profile_events_skip_indexes_on_data_read +04050_prune_array_join_numeric_index +04050_text_index_lazy_extreme_selectivity +04050_text_index_map_keys_in_subquery +04050_text_index_starts_ends_with +04050_truncate_order_by_after_group_by_keys +04050_with_fill_step_abs_int64_min +04051_array_first_last_variant +04051_clear_column_rebuild_dependencies +04051_max_streams_for_union_step +04051_optimize_dictget_tuple_element +04051_pk_analysis_stats +04051_runtime_filter_variant_type +04051_similar_to +04051_toStartOfInterval_overflow +04051_top_k_dynamic_filter_read_in_order +04051_variant_filter_shared_columns_bug +04052_extract_postgres_units +04053_alter_add_rename_column_in_single_query +04053_alter_command_segments_validation +04053_create_view_asterisk_with_aliases +04053_describe_subquery_alias +04053_estimate_compression_ratio_huge_block_size +04053_final_prewhere_window_remove_unused_columns +04053_fuzz_issues_from_obsolete_version +04053_group_by_cube_with_rollup_ast_formatting +04053_h3_validate_cells_and_edges +04053_in_subquery_prewhere_not_ready_set +04053_merge_tree_analyze_indexes_union_all +04053_mv_bool_filter_with_optimizations_disabled +04053_negative_limit_with_ties_offset_fetch +04053_prewhere_statistics_decimal_overflow +04053_render_tab_as_spaces_regression +04054_ast_json_serialization +04054_block_mismatch +04054_caseWithExpression_nullable_when +04054_compound_interval_literals +04054_create_or_replace_materialized_view +04054_hash_join_with_row_store +04054_join_optimizer_overlapping_column_names +04054_limit_with_ties_offset_syntax +04054_merge_after_alter_to_tuple +04054_parse_datetime_best_effort_overflow +04054_readwkb_bounds_checking +04054_remove_unused_columns_duplicated_column_names +04054_sample_offset_formatting_ambiguity +04054_transform_const_default_column +04054_view_union_intersect_precedence +04055_block_mismatch_mv +04055_min_max_nan_consistent_with_order_by +04055_negative_limit_offset_aggregation +04055_optimize_prewhere_final_and_unused_columns +04055_rand_distribution_parameter_limits +04055_storage_alias_bake_currentDatabase +04056_ast_json_limits +04056_highlight_null_terminator +04056_jit_sort_string_columns +04056_mutation_session_timezone_datetime_literals +04056_negative_limit_with_ties_large_mt +04056_nullable_named_tuple_in_set +04056_parquet_bloom_filter_empty_in +04056_statistics_i128 +04056_ulid_non_ascii_validation +04057_aggregate_function_nothing_with_parameters +04057_explain_except_ast_formatting +04057_explain_pretty_expressions +04057_map_buckets_coefficient_validation +04057_materialized_cte_with_totals +04057_negative_limit_with_ties_edge_cases +04057_rand_distribution_settings +04057_ulid_non_ascii_input +04057_virtual_row_many_parts +04058_constraint_subst_correlated_subquery_crash +04058_explain_pretty_aggregation_sorting +04058_positive_modulo_ubsan +04058_statistics_bad_cast +04059_alias_column_correlated_subquery +04059_explain_pretty_filters +04059_has_lowcardinality_tuple_key_crash +04059_toStartOfInterval_weeks_overflow +04060_coalescing_merge_tree_array_tuple_with_column_param +04060_explain_pretty_joins_sets +04060_with_fill_scale_int64_overflow +04061_array_dot_product_empty_arrays +04061_explain_pretty_child_plans +04061_intdiv_array_tuple_type_mismatch +04061_row_policy_query_log_subqueries +04061_spilling_hash_join_overflow_limits +04061_storage_generate_args_order +04061_trivial_count_aggregate_function_argument_types +04062_analyzer_inline_view_type_conversion +04062_explain_pretty_nested_merge_child_plans +04062_join_order_optimizer_outer_join +04062_use_partition_pruning_disable_minmax_count_projection +04063_analyzer_inline_view_row_policy +04063_columns_cache_edge_cases +04063_in_subquery_lowcardinality_tuple_key +04063_lazy_materialization_projection_prewhere_crash +04063_parse_datetime_best_effort_many_fractional_digits +04063_polygon_dict_simple +04063_text_index_in_tuple +04063_ttl_sparse_column +04064_additional_result_filter_union_column_identifier +04064_alias_datetime_timezone_cast +04064_columns_cache_metrics +04064_describe_show_create_temporary_table +04064_distributed_cast_constant_in_where +04064_duplicate_alias_error_message +04064_format_cte_column_aliases +04064_generate_series_negative_step +04064_join_on_or_is_not_distinct_from +04064_join_use_nulls_apply_lambda_multiple_joins +04064_minmax_index_null_inf_ordering +04064_parameterized_view_scalar_subquery +04064_planner_duplicate_column_identifier +04064_recursive_cte_multiple_subqueries +04064_tokenize_and_highlight_query +04064_unused_interpolate_columns_without_wrapper +04064_with_select_identifier +04065_columns_cache_composite_types +04065_count_exact_ranges_max_rows_to_read +04065_direct_join_column_const_mismatch +04065_join_shard_by_pk_with_qcc +04065_negative_limit_fractional_limit_explain_pipeline +04065_toStartOfInterval_overflow +04066_columns_cache_partial_ranges +04066_json_value_tuple_array +04066_parseReadableSize_near_uint64_max +04066_smallest_column_subquery_projection +04066_union_all_column_identifier_collision +04067_group_by_use_nulls_apply_aggregate +04067_regexp_invalid_pattern +04068_aggregate_null_for_empty_with_null_combinator +04068_arrayTranspose +04068_columns_cache_range_intersections +04068_geo_wkt_wkb_uppercase_aliases +04068_lazy_materialization_map_nested_alter_add +04068_lwd_minmax_projection_recovery +04068_multi_text_idx_lwd_vertical +04068_projection_index_settings +04068_recursive_cte_type_inference +04069_index_type_with_settings +04070_array_exists_to_has_null +04070_columns_cache_read_write_settings +04070_date_time_best_effort_default +04070_decimal_min_max_jit_signedness +04070_exact_count_max_rows_to_read +04070_global_in_subquery_prewhere +04070_join_using_type_coercion_round +04070_mergetree_analyze_indexes_optimizations_no_crash +04070_no_crash_extreme_compress_block_size +04070_pad_string_asan_overflow +04070_rename_ephemeral_to_virtual_column +04070_staleness_sorting_prefix_cross_chunk +04070_subnormal_float_literal +04070_summing_mt_final_partition_pruning +04070_truncate_all_tables_skip_views +04070_view_with_projection_not_found_column +04070_with_trailing_comma +04071_columns_cache_json +04071_insert_values_string_to_complex_type +04071_jit_decimal_aggregates +04071_materialize_projections_on_merge_different_sets +04072_jit_decimal_expressions +04073_backup_from_snapshot_ast_format +04073_columns_cache +04073_divide_intdivide_monotonicity_key_condition +04073_float_itoa_fast_path +04073_lc_cast_key_condition_crash +04073_rocksdb_virtual_columns +04073_row_policy_subquery_crash +04074_columns_cache_correctness +04074_map_dynamic_substreams_cache +04074_where_large_int_boolean_predicate +04075_analyzer_inline_view_subcolumns +04075_array_join_using_compatibility_setting +04075_buffer_virtual_column_table +04075_delta_lake_snapshot_version_without_kernel +04075_float_to_string_format +04075_join_reorder_outer_join_filter_pushdown +04075_memory_userspace_pagecache_metrics +04075_right_any_join_incorrect +04075_statistics_selectivity_overflow +04075_text_index_apply_mode +04075_text_index_apply_mode_lazy +04075_text_index_apply_mode_lazy_segment_advance +04075_text_index_correctness +04075_text_index_linear_scan_block_skip +04075_text_index_posting_list_format +04076_allow_statistics_blocks_add_drop +04076_array_symmetric_difference_nullable_tuple +04076_json_in_min_max_index_bug +04076_map_key_value_subcolumn_cache_bug +04076_materialized_cte_dependency_ordering +04076_overlay_sql_standard_syntax +04076_planner_merge_filter_into_join_bug_3 +04076_tuple_json_dotted_subcolumn_bug +04076_virtual_row_preliminary_merge +04077_datetime32_overflow +04077_formatdatetime_w_is_a_variable_length_formatter +04077_in_strict_decimal_inside_composites +04077_lazy_materialization_array_join +04077_lwd_materialized_ephemeral +04077_lwd_multiple_cycles +04077_lwd_optimizer_flag +04077_lwd_qualified_column +04077_lwd_read_in_order +04077_lwd_row_exists_hidden +04077_lwd_trivial_count +04077_materialized_cte_union +04077_range_hashed_dictionary_validate_max_attribute +04077_vector_similarity_cosine_msan +04077_virtual_column_table_log_stripelog +04077_wide_part_writer_cancel_on_exception +04078_error_hint_parsing_exception +04078_grace_hash_join_read_in_order +04078_key_condition_todatetime_date_monotonicity +04078_truncate_tables_like_format_space +04078_virtual_column_alias_log_stripelog +04079_crosstab_window_state_variant_cast +04079_memory_engine_table_virtual_column +04080_contingency_negative +04080_sort_key_encoding_correctness +04081_comparison_constant_folding_null_variant_lc +04082_materialize_skip_indexes_text_index +04082_workload_negative_float64_settings +04084_system_completions_no_duplicates +04086_03711_positive_modulo_tuple +04089_decimal_datetime64_minmax_if +04090_indexof_assume_sorted_low_cardinality +04092_cast_empty_tuple_unexpected_data +04092_delta_iceberg_metadata_log_hostname +04092_format_unlock_snapshot +04092_geometry_cast_custom_type_name +04092_hash_join_shrink_replicated_columns +04092_in_function_empty_set_key_condition +04092_kafka_named_tuple_dot_access +04092_pretty_print_json +04092_text_index_like_large_postings +04092_truncate_order_by_group_by_array_join +04092_ttl_sparse_column_source_fix +04092_view_filter_type_mismatch_crash +04093_best_effort_datetime_timezone_boundary_range_check +04093_json_enum_null_whole_object +04093_merge_function_custom_defaults_remote +04093_negative_time_datetime_comparison +04093_projection_virtuals_in_normal_projection +04093_text_index_like_overflow_fallback +04093_text_index_separate_analysis +04094_ast_formatting_keyword_function_names +04094_asterisk_include_virtual_columns_memory +04094_foreach_combinator_alignment +04094_groupConcat_invalid_data_size +04094_kql_conformance_pql +04094_lazy_materialization_final +04094_printf_trailing_percent +04094_projection_with_where +04094_sz_find_null_needle_oob +04094_text_index_like_large_postings +04095_aggregation_in_order_merge_wrong_column_order +04095_join_reorder_type_changes +04095_text_index_like_overflow_fallback +04097_buffer_subcolumn_virtual_column_crash +04097_prewhere_in_subquery_primary_key_analysis +04097_system_parts_default_compression_codec +04097_tuple_inside_nullable_subcolumn_descendants +04098_grant_format_no_duplicate_backward_compat +04098_row_policy_disjunction_optimization +04098_text_index_read_once +04098_tuple_inside_nullable_subcolumn_cache_reads +04099_04103_is_distinct_from_array_map_null +04099_assume_not_null_key_condition +04099_distinct_aggregate_projection_partial_projection_data +04099_tuple_inside_nullable_subcolumn_across_blocks +04100_bloom_filter_low_cardinality +04100_collect_sets_crash_with_unresolved_in_function +04100_summing_merge_tree_sort_order_float_nan +04100_system_table_no_auto_statistics +04101_any_right_join_bug +04101_common_expression_single_arg_collapse +04101_crosstab_window_state_serialization_pool +04101_parseDateTime64BestEffort_double_dot_fractional +04101_schema_inference_length_error_no_crash +04101_variant_adaptor_propagate_exceptions +04101_variant_dynamic_type_mismatch_settings +04101_volume_reducing_function_push_down +04102_lazy_materialization_with_patch_parts +04102_lightweight_update_v2_smoke +04102_storage_alias_insert_dedup_token +04102_text_index_alias_direct_read +04102_text_index_hasAny_hasAll +04103_cast_string_to_date_time_mode_nullable +04103_deltalake_parquet_metadata_cache +04103_fuse_quantiles_distributed_alias_clash +04103_lightweight_update_v2_parallel_read_sort_check +04103_obfuscate_table_function_settings +04103_randomStringUTF8_null_terminators +04103_text_index_alias_direct_read_map +04104_103049_nullable_and_overflow_filter +04104_any_join_semi_anti_not_ready_set +04104_functions_context_lifetime_in_defaults +04104_lightweight_update_v2_eager_patch_discard +04104_negative_limit_by_explain +04104_parquet_null_as_default_non_nullable +04104_qbit_writeslice_structure_equals +04104_read_in_order_aggregation_parallelism +04105_array_top_k_bottom_k +04105_explain_syntax_parameterized_view +04105_in_non_constant_tuple_type_promotion +04105_key_condition_nested_lc_variant +04105_lazy_final_unordered_expand_pipeline +04106_assert_type_equality_column_replicated +04106_limit_by_into_sort +04107_array_distance_const_full_chunk +04107_count_digits_int_min_ubsan +04107_negative_limit_by_large_mt +04107_parallel_hash_join_partition_correctness +04108_chunk_buffer_reader_writer_race +04108_jsonhas_native_json +04108_lambda_column_name_collision_bug +04108_negative_limit_by_edge_cases +04108_replicated_and_non_replicated_columns_merge +04109_jsonextractbool_native_json +04109_read_in_order_with_normal_projection +04109_sort_propagation_apply_order +04109_timeseries_aggregate_function_parameter_type_mismatch +04109_todate32_monotonicity_boundary +04110_chunk_buffer_max_threads_1 +04111_array_fill_empty_strings +04111_rocksdb_alter_setting_validation +04112_bson_nullable_array_read_rollback +04113_best_effort_unix_timestamp_micro_nano +04113_compact_part_writer_cancel_on_exception +04113_flame_graph_string_traces +04113_function_timeslots_combinations +04113_has_subsequence_empty_haystack +04113_system_sync_filesystem_cache_format +04114_aggregate_function_flamegraph +04114_coalesce_two_column_index_pruning +04115_coalesce_n_column_index_pruning +04115_function_time_window_errors +04116_coalesce_partial_constant_index_pruning +04116_function_formatdatetime_edges +04117_aggregate_state_multiply_self_merge_uaf +04117_lightweight_delete_nonadaptive_granularity +04117_mappopulateseries_int8_overflow +04117_parser_system_query_variants +04117_top_k_optimization_with_final +04119_object_storage_bad_arg_count_no_logical_error +04119_parser_snapshot_query_ast_format +04120_parseDateTime_format_specifiers +04123_kql_operators +04123_spilling_hash_join_peak_under_cap +04124_parser_system_query_extra +04125_array_levenshtein_types +04126_parser_alter_query_variants +04127_bitmap_functions_int_types +04128_sequence_next_node_directions +04129_distinct_json_paths_aggregator +04130_column_variant_operations +04131_prometheus_query_parser +04132_column_sparse_ops +04133_group_array_variants +04134_single_value_data_complex_types +04136_window_functions_frame_bounds +04137_conversion_functions_edges +04138_higher_order_lambda_functions +04139_aggregate_function_states +04141_array_lowcard_arithmetic_monotonicity +04141_divide_by_zero_constant_monotonicity +04141_fuzz_query_max_query_length +04141_generate_random_engine_argument_order +04141_h3_polygon_to_cells_with_containment +04141_kql_floor_single_arg +04141_system_instrument_remove_no_args +04141_system_sync_replica_if_exists_missing_db +04141_text_index_alias_lambda_with_constants +04141_variant_low_cardinality_version_only_keys +04142_array_low_cardinality_version_only_keys +04142_executable_storage_settings_coverage +04142_position_huge_start_pos +04143_if_decimal_int_literal_jit +04143_skip_index_after_alter_modify_column +04143_ub_parsing_datetime +04144_filter_union_all_no_group_by +04144_low_cardinality_map_wrong_value_nonadaptive +04145_consistent_lambda_alias_paren_round_trip +04145_extract_plain_ranges_relaxed_not_in +04145_h3_polygon_to_cells_invalid_type +04145_minmax_block_number_offset_part_pruning +04145_system_commands_coverage +04145_vertical_merge_wide_rows_small_block_size +04146_analyzer_group_by_const_grouping_sets_struct +04146_array_fold_lowcardinality_nonconst +04146_hashed_array_dictionary_shards_update_field +04146_ipv6_hashing_distinct_values +04146_max_bytes_ratio_before_external_join +04146_merge_tree_mutations_cleanup_truncate_drop_partition +04146_merge_tree_optimize_row_order_if_no_order_by +04146_minmax_block_number_upgrade +04146_obfuscate_query_known_identifiers +04146_parser_system_query_lightweight_from_and_filesystem_cache_offset +04146_settings_float_overflow +04146_short_circuit_evaluation_for_nulls +04146_spilling_hash_join_low_threshold +04146_system_instrument_add_invalid_argument +04146_timeseries_attach_detach +04146_to_hour_monotonicity_dt64_timezone +04146_to_millisecond_negative_datetime64 +04146_tuple_duplicate_element_names +04146_validate_nested_types_setting_bypass +04147_alias_table_engine_non_experimental +04147_minmax_block_columns_require_enable_settings +04147_sparse_column_coverage +04147_system_instrument_add_argument_out_of_range +04148_key_condition_safe_cast_coverage +04148_minmax_block_number_offset_in_index_table +04148_stid_3520_3e11_materialized_cte_outer_alias +04149_minmax_block_number_partition_filtering +04149_msan_join_optimizer_non_deterministic_filter +04150_generate_random_types_coverage +04158_unique_key_optimize_rejected +04159_unique_key_ttl_rejected +04160_unique_key_backup_rejected +04161_geometry_constant_folding_variant_discriminator +04161_null_subcolumn_after_metadata_only_nullable_alter +04161_unique_key_insert_duplicate +04165_skip_index_stale_type_after_alter +04201_action_name_lowcardinality_args +04201_add_subtract_subsecond_with_timezone +04201_alter_materialized_view_modify_sql_security_invoker_error +04201_analyzer_self_join_group_by_expr +04201_argMinMax_nullable_wide_numeric +04201_array_index_of_count_equal_nullable_value +04201_array_shift_insert_many_from_specializations +04201_attach_table_missing_database +04201_columns_cache_rename_column +04201_consecutive_keys_nullable_findkey +04201_consistent_format_aliased_tuple_and_window_offset +04201_date_trunc_subsecond_with_timezone +04201_direct_join_type_mismatch_rocksdb +04201_dot_product_const_nonconst_size_mismatch +04201_force_null_for_omitted_jsoncolumns +04201_hashed_array_dictionary_invalid_backlog +04201_int_div_or_zero_decimal_with_date +04201_inverse_dictionary_lookup_edge_cases +04201_is_prime +04201_join_runtime_filter_min_probe_rows +04201_json_extract_keys_and_values_low_cardinality_input +04201_low_cardinality_multiple_dicts_single_mark +04201_max_streams_to_max_threads_ratio_positive_overflow +04201_merge_tree_part_info_legacy_max_level +04201_minmax_index_for_pointinpolygon_with_holes +04201_morton_encode_zero_rows_branch +04201_read_in_order_limit_with_filter +04201_refreshable_mv_to_inner_uuid_rejected +04201_rocksdb_direct_join_using_type_mismatch +04201_set_index_in_subquery_disabled_fallback +04201_stid_3760_nested_coalesce_skip_index_disjunction_oob +04201_storage_join_restore_order_after_attach +04201_summing_merge_tree_block_offset +04201_time_series_selector_join_stateful +04201_to_millisecond_negative_datetime64 +04201_too_many_optimizations_window_array_join +04201_too_negative_max_execution_time_setting +04201_trivial_count_with_additional_filter +04201_virtual_column_override_where_filter +04202_analyzer_identifier_cache_literal_in +04202_array_dot_product_combine_overflow +04202_clamp_multirow_mixed_branches +04202_cte_with_sample +04202_inverse_dictionary_lookup_pruning_key_condition +04202_jemalloc_jit_arena_metrics +04202_linestring_multirow_wkt +04202_move_partition_to_non_mergetree +04202_move_partition_to_table_too_many_parts +04202_offset_with_scalar_subquery +04202_parsedatetime_or_null_zero_post_instruction_errors +04202_percent_rank_invalid_frame +04202_projection_prewhere_materialize +04202_prometheus_query_datetime64_nanosecond_modern_timestamp +04202_regexp_position +04202_reserved_user_name_jwt_marker +04202_set_default_preserves_max_threads_auto +04202_storage_fuzzquery_engine +04202_variant_adaptor_all_incompatible +04202_variant_basic_mode_only_nulls +04203_analyzer_having_non_aggregate_compat +04203_gcd_codec_real_compression_path +04203_jemalloc_mergetree_arena_metrics +04204_crosstab_variant_merge +04204_distinct_outside_cte_103785 +04204_empty_unicode_quoted_identifier_syntax_error +04204_lower_upper_utf8_large_buffer +04204_mergetree_arena_routes_writes +04204_polygon_dict_bytes_allocated +04204_rocksdb_optimize_unsupported_modifiers +04205_field_visitor_convert_to_number_ubsan_103817 +04205_jit_decimal_cast_branches_parity +04205_top_k_dynamic_filtering_variable_length +04206_direct_join_merge_tree_column_order +04206_tuple_string_compare_nested_nullable_inference +04207_alias_map_arrayelement_subcolumn +04207_cld2_msan_oob_read +04207_cross_join_starts_with_memory +04207_drop_partition_integer_overflow_date +04207_lazy_final_prewhere_is_deleted_null_deref +04207_parquet_metadata_cache_local_file +04207_schedule_merge_basic +04207_top_k_through_join +04208_schedule_merge_disabled +04208_top_k_through_join_safety +04209_column_name_matching_mode_default +04209_extractAll_nullable +04209_rank_dense_rank_no_arguments_49526 +04209_running_accumulate_state_combinator +04209_statistics_retry_load +04209_top_k_through_join_read_in_order_gate +04209_values_keyword_column_subscript +04210_alter_clear_column_nested_tuple_89537 +04210_consistent_format_subquery_paren_round_trip +04210_dict_get_or_null_nullable_key_no_corruption +04210_intdiv_array_nullable +04210_show_remote_databases_in_system_tables +04210_skip_index_on_data_read_leaf_limit +04210_top_k_through_join_right_join_deferral +04211_uuid_parser_strict_validation_86714 +04212_aggregate_projection_sumif_in_set +04212_cast_datetime_keep_timezone +04212_file_table_function_array_argument +04212_internal_async_flush_counters +04212_settings_bool_out_of_range_float +04212_system_functions_arity_determinism +04213_array_join_low_cardinality_unaligned +04213_optimize_trivial_group_by_limit_query +04214_create_function_normalized_union_query +04214_trivial_group_by_limit_threads +04215_91595_uniq_theta_intersect_empty_state +04215_trivial_count_with_sparsity_filter +04216_materialized_view_reused_target_name_dependency +04216_skip_index_disjunction_nested_coalesce +04217_array_concat_json_extract_keys_index +04217_arrayjoin_set_index_lowcardinality_70058 +04217_create_table_as_with_settings +04218_avro_confluent_extra_coverage +04218_format_readable_precision +04218_partition_pk_pruning_constants_folding +04218_running_accumulate_state_uaf +04219_explain_plan_pretty_default +04219_partition_minmax_skip_index_constants_folding +04220_arrayjoin_after_sort_with_limit +04220_partition_id_constants_folding +04221_dictgetordefault_arrayjoin_80703 +04221_optimize_use_normal_projection_with_sorting +04221_partition_id_with_minmax_constants_folding +04222_prewhere_final_replacing_86268 +04223_text_index_direct_read_like_90802 +04224_special_columns_prewhere_final_91849 +04225_row_policy_groupby_final_91946 +04226_rls_projection_filter_not_in_select_94789 +04227_case_with_expression_array_result_78352 +04227_create_or_replace_refresh_mv +04227_inconsistent_ast_function_lambda_after_comma_104605 +04227_materialized_cte_reused_with_in_subquery +04227_prewhere_parameterized_view_join_102074 +04228_check_optimize_alter_temporary_scoping_100966 +04228_materialized_cte_nested_in_subquery_pk +04228_row_policy_view_join_analyzer_102651 +04229_anyheavy_sparse_defaults +04229_attach_partition_implicit_primary_key +04229_bit_rotate_determinism +04229_defer_partition_pruning_after_final +04229_implicit_minmax_block_number_offset_basic +04229_lazy_concurrency_control_insert_with_mv +04229_lower_utf8_turkish_expansion +04229_memory_mutation_timeout_break +04229_numeric_indexed_vector_scalar_uint64_overflow +04229_row_order_optimize_unsupported_nested_types +04229_top_k_through_join_collation +04229_trivial_group_by_limit_profile_events +04229_untracked_memory_async_metric +04230_columns_cache_rename_and_add_same_statement +04230_implicit_minmax_block_number_offset_mutations +04230_length_nullable_fixed_string +04230_top_k_through_join_join_swap_gate +04231_concat_with_separator_nullable_lc +04231_timezone_select_with_changed_setting +04232_round_down_nan_determinism +04234_direct_join_nullable_left_rocksdb +04234_explain_pipeline_compact_repeated_processor_chains +04234_filter_push_down_const_null_union +04234_format_query_from_json_identifier_case +04234_non_constant_rhs_in +04234_partitioned_group_by +04234_set_alias_compatibility_tracking +04234_top_k_through_join_final_desc_gate +04234_transform_const_default_cast +04234_where_and_low_cardinality_nullable_constant_104393 +04235_create_or_replace_source_table_view_dependencies +04235_format_query_from_json_string_array_validation +04235_moving_impl_multiply_self_merge_uaf_0988_2212 +04235_streaming_queries_distinct_in_order +04235_streaming_queries_explain_analyze_stream_read +04235_streaming_queries_sparsity_stream_skips_trivial_count +04235_streaming_queries_text_index_direct_read +04235_string_vs_const_fixedstring_comparison +04236_format_query_from_json_use_assignment_validation +04236_ifnull_if_fixedstring_string_trim +04236_merge_with_alias_missing_target_104740 +04238_attach_timeseries_external_metrics +04238_clone_as_select_rejected +04238_columns_cache_rename_and_add_same_signature +04238_group_concat_second_arg_preserves_limit +04238_md5_multi_buffer +04238_storage_alias_missing_target_merge +04239_consistent_format_in_alias_nested_1941_1bfa +04239_detach_table_on_temporary_table_103475 +04240_bfloat16_string_compare +04240_clear_column_special_merge_required_columns +04240_consistent_hash_bigint +04240_exchange_tables_drops_mv_source_dependencies +04240_intexp2_jit_overflow +04240_jit_float_to_big_int_libcalls +04240_json_extract_invalid_time_string +04240_statistics_countmin_numeric_types +04241_alias_array_to_string +04241_alias_cardinality +04241_alias_regexp_substr +04241_alias_stddev +04241_alias_string_agg +04241_alias_unnest +04241_any_all_on_arrays +04241_date32_week_overflow +04241_date_part_as_extract +04241_format_query_from_json_required_fields +04241_get_server_setting_live_values +04241_inconsistent_ast_codec_tuple_paren_round_trip_1941_1bfa +04241_join_runtime_filter_shared_fixed_hash_table +04241_parameterized_view_used_twice +04241_rename_table_mv_source_dependencies +04242_dict_clickhouse_source_backslash_key +04242_enum_contains_numeric_name +04242_projection_implicit_minmax_via_settings +04242_query_condition_cache_topk_collate +04242_space_filling_curve_encode_non_const_mask +04244_loop_remote_group_by_chunk_info_104863 +04247_attach_table_storage_clauses_without_engine_error +04248_97771_lazy_materialization_alias_invalid_chunk +04249_packed_skip_indices_round_trip +04249_parseDateTime64BestEffort_unix_timestamp_subsecond +04249_query_condition_cache_fine_grained_granules +04249_text_index_lazy_all_duplicate_tokens +04251_packed_skip_indices_weird_names +04251_stid_2635_empty_pipe_reverse_order +04252_packed_skip_indices_setting_change +04252_storage_alias_query_log_views +04253_global_in_tuple_duplicate_columns +04253_packed_skip_indices_drop_name_prefix +04254_memory_apply_patches_no_op +04254_packed_skip_indices_setting_expansion_mutation +04255_packed_skip_indices_contraction_mutation +04255_stringsearcher_utf8_invalid_needle +04256_105207_detach_dictionary_permanently_dep_check +04256_99959_left_anti_join_right_key_default +04256_extremes_transform_partial_populate_on_exception +04256_min_max_mapped_arrays_nan_consistent +04256_packed_skip_indices_layout_transitions +04256_reinterpret_array_lowcardinality +04256_system_tables_materialized_view_target +04256_text_index_lazy_apply_with_patterns +04257_aggregation_in_order_mismatch +04257_intersect_empty_input +04257_packed_skip_indices_text_excluded +04257_replace_temporary_table_must_exist_102924 +04257_system_constraints +04257_text_index_lazy_profile_events +04258_except_empty_left_input +04258_packed_skip_indices_long_name_prewarm +04258_set_skip_index_float_where_issue_105355 +04258_text_index_lazy_intersect_heap +04259_case_with_expression_null_equals_null_101262 +04259_count_distinct_optimization_nullable +04259_cte_subquery_dot_column_leak +04259_dictgetordefault_nullable_default_short_circuit +04259_interpolate_with_fill_limit_by +04259_limit_by_array_join_replicated +04259_materialized_cte_fuzzer_bug +04259_prewhere_after_pushdown +04259_range_signed_overflow +04259_skip_index_set_ngrambf_or +04260_case_with_expression_lowcardinality_nullable_105556 +04260_cast_keep_nullable_dynamic +04260_detach_permanently_referential_dep_check +04260_dynamic_subcolumn_compressed_memory +04260_explain_pipeline_materialized_cte +04260_json_empty_as_default_yield_strings +04260_variant_null_insert_values_format +04261_nested_dynamic_variant_in_minmax_aggregate +04261_text_index_partial_mark_read +04262_uniq_state_or_null_with_rollup +04263_single_value_or_null_merge_state +04264_variant_throw_on_type_mismatch_value_error +04265_histogram_unsorted_input +04265_to_string_nullable_timezone_null_value +04266_datetime_out_of_range_clamping +04266_decimal_parsing_ubsan_stid_0937_2022 +04266_min_max_by_aliases +04266_partition_by_function_of_subcolumn +04266_quantile_fuse_name_mapping_complete +04266_statistics_basic_prewhere +04266_ttl_with_subcolumn_expression +04267_alias_create_query_without_columns +04267_array_distance_mixed_types +04267_clear_column_explicit_summing_columns_to_sum_105782 +04267_estimate_compression_ratio_window_accumulation +04267_flamegraph_int64_min +04267_limit_by_in_order_sparse_serialization +04267_mergeTreeCodecBlockCounts_basic +04267_mongodb_empty_collection_crash +04267_on_fly_mutation_lc_passthrough_conversion +04267_orc_in_subquery +04267_parquet_in_subquery +04267_values_template_tuple_size_mismatch +04268_array_distance_simd_coverage +04268_bool_partition_alter +04268_cast_keep_nullable_variant +04268_json_extract_typed_path_default_values +04268_limit_by_explain +04268_mergeTreeCodecBlockCounts_alter +04268_mongodb_dictionary_empty_collection +04268_on_fly_mutation_delete_modify_chain +04268_time_series_tags_to_map +04269_bitmap_contains_type_range +04269_mergeTreeCodecBlockCounts_compact +04269_time_series_metric_type_to_suffixes +04270_mergeTreeCodecBlockCounts_per_substream +04270_toStartOfSubsecond_ubsan_int64_min +04272_89802_set_index_mv_nullable_column_type +04272_create_table_to_inner_uuid_without_engine +04273_uniq_state_or_null_rollup_consumers +04274_105649_if_partial_result_canUnsignedBeSigned_variant +04274_105650_isNotDistinctFrom_string_group_by +04275_104781_qcc_prewhere_skip_index_attribution +04275_105738_left_anti_join_where_projection +04275_aggregator_const_keys_prefetch_msan +04276_create_view_param_db_with_param_select +04276_function_dict_get_keys_edge_cases +04277_distr_in_negative_array +04277_iceberg_hash_unsupported_wide_types +04277_merge_read_in_order_with_prewhere +04277_text_index_function_like_escape +04278_105827_left_join_on_false_null_filtering +04278_codec_t64_estimate_compression_ratio +04278_distributed_filter_pushdown_table_function +04278_explain_pipeline_compact_repeated_chains_header +04278_function_session_user +04278_interpolate_empty_with_sorting_prefix +04278_parallel_replicas_coordinator_mode_collision +04278_sparsity_nullable_correctness +04279_array_join_nested_prefix_with_alias_column +04279_fold_filter_through_materialize +04279_projection_zero_row_rebuild_no_orphan +04279_sparsity_persist_exact_num_defaults +04280_udf_normalizer_dangling_source_columns +04285_sparsity_decimal_lossy_constant +04290_set_index_is_true_false_unknown +04292_primary_key_like_escape_bug105885 +04295_04278_materialized_cte_in_union_runtime_set +04295_105912_modify_column_to_nullable_with_statistics +04295_105916_intersect_except_format_union_parens +04295_set_skip_index_or_lc_nullable_issue_105938 +04295_system_instrument_format_arguments +04296_part_level_min_max_in_partitioned_projection +04296_system_instrument_sleep_invalid_arguments +04299_alter_column_null_modifier +04299_analyzer_identifier_cache_scalar_in_node_reuse +04299_at_time_zone +04299_constraint_subst_correlated_subquery_root +04299_key_condition_not_positive_monotonicity +04299_limit_by_collation +04299_localtime_localtimestamp_aliases +04299_mvt_encode +04299_table_engines_documentation +04300_analyzer_identifier_cache_context_correctness +04300_dedup_subtrees_on_filter_merge +04300_mvt_clip +04301_virtual_row_per_block_wide_partial_granule +04302_alter_segments_partition_validation +04303_cross_join_reorder_restriction +04303_ddsketch_bin_key_validated_on_insert +04303_extract_timezone_hour_and_minute +04303_join_runtime_filter_query_condition_cache +04303_key_condition_ifnull_coalesce_boolean +04303_read_in_order_memory_issue_52624 +04303_stid_3993_36c1_optimize_partition_time_column +04303_stid_4697_4326_mutation_exists_column_identifier +04303_text_index_function_multiSearchAny +04304_extract_from_interval +04304_lazy_crash_2 +04304_limit_after_until_settings_limit +04304_prewhere_statistics_column_grouping +04304_primary_key_is_true_false_unknown +04304_text_index_function_multiMatchAny +04305_adaptive_codec_default_merge +04305_aggregate_function_combinators_documentation +04305_any_join_dry_run_in_anti_conversion +04305_array_distance_bfloat16 +04305_ast_fuzzer_skips_backup_restore +04305_constraint_const_substitution_correlated_subquery +04305_create_handler_basic +04305_database_engines_documentation +04305_date32_pre_epoch_monotonicity +04305_dictionary_layouts_documentation +04305_distributed_shuffle_join_type_mixed +04305_dpsub_outer_join +04305_formats_documentation +04305_lwd_merge_projection_rebuild +04305_mutation_in_subquery_column_identifier +04305_regexp_extract_no_capture_group +04305_rfmt_remove_unused_columns_duplicated_filter_outputs +04305_rfmt_remove_unused_columns_duplicated_filter_outputs_2 +04305_storage_join_composite_keys +04305_text_index_match_fold_required_into_alternatives +04305_time64_to_time_datetime_cast +04306_data_skipping_index_types_documentation +04306_date32_upper_overflow +04306_dictionary_sources_documentation +04306_distributed_aggregation_correctness_guards +04306_h3_polygon_to_cells_multipolygon_cap +04306_keycondition_nan_equality +04306_sip_hash_keyed_empty_array +04307_ast_json_roundtrip_lossless +04307_datetime64_pre_epoch_subsecond_monotonicity +04307_disk_types_documentation +04307_distributed_read_error_terminates +04307_limit_after_large_mt +04307_text_index_function_multi_search_match_validation +04308_ast_json_validation_hardening +04308_date32_pre_epoch_part_pruning +04308_distributed_totals_not_distributed +04308_on_fly_mutation_filtered_update_chain +04308_regexp_extract_vector_constant_oob +04308_text_index_function_multiMatchAny_regex_cases +04309_distributed_aggregation_persisted_exchange +04310_any_join_not_ready_set_wrong_results +04311_system_tables_skipping_indices_types +04311_text_index_non_utf8_needle_no_prune +04312_array_dot_product_bfloat16 +04312_asterisk_like_ilike +04312_explain_analyze +04312_grace_hash_vs_hash_join_key_types +04312_in_order_aggregation_inconsistency +04312_in_order_optimizations_with_collation +04312_limit_with_ties_collation +04312_partition_constants_folding_eval_error +04312_reverse_key_obsolete_setting +04312_text_index_lazy_segment_cache_reuse +04313_limit_by_sorted_prefix_key +04313_partition_constants_folding_column_name_collisions +04314_limit_by_const_key +04314_partition_constants_folding_derived_key +04315_cnf_substitute_columns_no_descend_into_subquery +04316_106082_scalar_subquery_equality_loses_row +04316_array_join_nested_prefix_non_array_sibling +04316_chinese_tokenizer_text_index +04316_fix_scatter_buffer_reuse_window +04316_limit_by_in_order_reverse_key +04316_reader_executor_basic +04316_sparse_pk_index_analysis_truncation +04317_106083_mergetree_order_by_limit1_equality +04317_sparse_pk_index_analysis_space_filling_curve +04318_arrayjoin_after_sort_with_limit_by +04318_polygon_dict_nan_inf_coordinates +04318_scalar_subquery_in_tuple +04318_sparse_pk_index_analysis_last_mark_null +04319_106573_minmax_count_projection_partition_key_group_by +04319_array_norm_bfloat16 +04319_asof_join_parallel_hash +04319_base58_respects_time_limit +04319_dict_get_keys_vector_null_nan_consistency +04319_distributed_plan_set_operation_const_columns +04319_limit_by_permuted_in_order +04319_merge_tree_optimize_row_order_explicit_opt_out +04319_optimize_limit_by_function_keys +04319_query_parameter_as_function_name +04319_sparse_pk_index_analysis_const_false +04319_timeseries_two_stacks +04319_timeseries_window_memoization +04319_timeseries_window_splits_step +04320_arrayjoin_no_sort_limit_pushdown +04320_ast_json_review_hardening +04320_columns_cache_on_fly_mutations +04320_default_compression_codec_recompress_ttl +04320_distributed_plan_read_rejects +04320_negative_limit_by_permuted_in_order +04320_obfuscate_query_cache_nondeterministic +04320_optimize_injective_functions_in_limit_by +04320_parser_system_background_controls +04320_total_uncompressed_bytes_mergetree_metric +04321_array_join_clause_limit_pushdown +04321_distributed_plan_count_implicit_projection +04321_optimize_limit_by_keys_combined +04321_push_limit_by_into_sort_permuted +04322_105501_correlated_materialized_cte_in_subquery +04322_106474_session_timezone_lowcardinality_datetime +04322_limit_by_monotonic_desc_key +04322_memory_mutate_no_op_commands_2380_3043 +04322_optimize_limit_by_variant_dynamic_keys +04323_avro_schema_registry_retry_settings +04323_limit_by_collapsing_keys +04323_multi_if_asterisk_table_function +04323_optimize_limit_by_with_group_by_modifiers +04324_if_const_nothing_no_logical_error +04324_jit_in_scalar_subquery_stack +04324_nested_asterisk_ilike_join_rewrite +04324_optimize_function_keys_non_deterministic +04324_parse_datetime_non_ascii +04324_read_in_order_virtual_row_union +04324_regexp_required_substring_escape_106382 +04324_sip_hash_keyed_varying_key_arrays +04324_summap_custom_named_summable +04324_union_all_narrow_read_in_order +04325_decode_html_component_expanding_entities +04325_limit_by_in_order_outer_sort +04325_or_join_keys256_merge +04325_sparsity_float_negative_zero_excluded +04326_adaptive_codec_mixed_block_read +04326_aggregation_two_level_decision +04326_ast_json_update_parameterized_table +04326_create_or_replace_size_check_pre_flight +04326_limit_offset_settings_via_subquery +04326_negative_limit_redundant_sort +04326_reject_create_index_granularity_zero +04326_sparsity_enum_defaultness +04326_text_index_empty_part_marks_prewarm +04327_106948_minmax_skip_index_nan +04327_107032_like_without_wildcards_pk_range +04327_adaptive_codec_explicit_default +04327_aggregation_in_order_limit_pushdown_multithreaded +04327_allow_lossy_numeric_supertype +04327_array_levenshtein_weighted_overflow +04327_array_resize_decimal_size +04327_ast_json_dml_output_options +04327_compare_substrings_out_of_range_offset +04327_correlated_subquery_duplicate_column_join +04327_data_type_families_documentation +04327_distributed_plan_local_log_formatted_queries +04327_encrypt_decrypt_constant_key_no_iv +04327_enum_value_out_of_range +04327_geohashesInBox_const_mix_and_bfloat16 +04327_group_by_use_nulls_exact_key_comparison +04327_inconsistent_ast_aliased_lambda_under_operator_1941_1bfa +04327_join_on_nothing_typed_residual +04327_join_runtime_filter_json +04327_key_condition_multi_atom_datetime_operators +04327_lazy_materialization_topk_filter_column_position +04327_lc_nullable_partition_key_minmax_idx +04327_like_constant_haystack_nonconstant_needle +04327_materialized_cte_in_recursive_with +04327_mv_squash_parallel_inserts_visited_views +04327_nullable_partial_sort_limit_equal_ranges +04327_packed_composite_key_join +04327_parquet_v3_prewhere_shared_intermediate +04327_quantile_tdigest_date_no_overflow +04327_reader_executor_metrics +04327_recursive_cte_qualified_matcher +04327_round_down_nan_boundaries_104877 +04327_single_argument_or_in_join_on +04327_stid_1499_6033_statistics_lc_cast +04327_summing_merge_tree_tuple_dotted_name_vs_key_column +04327_trim_long_characters +04327_wait_timeout_chrono_overflow +04328_106533_partition_pruning_nan_inversion +04328_adaptive_codec_none_selection +04328_key_condition_multi_atom_string_key +04328_low_cardinality_single_key_join +04328_set_index_variant_low_cardinality +04328_sparsity_big_integers +04328_summing_merge_tree_tuple_array_not_fake_map +04328_union_branch_sparse_header_mismatch +04329_adaptive_codec_projection +04329_key_condition_multi_atom_relaxation_safety +04329_key_condition_variant_low_cardinality +04329_like_fixedstring_constant_match_everything +04329_or_join_packed_key_merge +04329_tuple_element_aggregation_reject_nullable_tuple +04330_join_disjunctions_pushdown_using_type_mismatch +04330_join_global_left_semi_chunk_consistency +04330_key_condition_multi_atom_deterministic_transforms +04330_show_policies_format_clause +04330_tuple_element_aggregation_disabled_by_default +04331_coalescing_merge_tree_nested_map +04331_key_condition_multi_atom_in_sets +04331_mergeTreeCodecBlockCounts_nested_subcolumns +04332_key_condition_multi_atom_type_normalization +04332_summing_merge_tree_tuple_leaf_column_name_collision +04333_coalescing_merge_tree_key_tuple_element +04333_key_condition_multi_atom_curves_polygon +04334_cascades_paste_join +04334_key_condition_multi_atom_partition_pruning +04334_tuple_element_aggregation_alter_validation +04335_analyzer_identifier_cache_clone_on_retrieval +04335_arrow_memory_limit_error_code +04335_create_table_sql_security_unsupported +04335_group_by_use_nulls_constant_key_source_expression +04335_grouping_function_group_by_use_nulls +04335_join_using_dynamic_key_aggregate +04335_key_condition_multi_atom_skip_indexes +04335_packed_composite_key_set +04335_storage_join_right_join_const_conjunct_pushdown +04335_summing_merge_tree_tuple_map_in_sorting_key +04336_key_condition_multi_atom_consumers +04336_storage_join_low_cardinality_read +04337_array_similarity_zero_weights_sum +04337_ast_json_typed_child_hardening +04337_cross_left_join_transitive_predicates +04337_encrypt_decrypt_block_modes +04337_key_condition_multi_atom_no_lost_pruning +04337_limit_by_permuted_key_gallop_overshoot +04337_low_cardinality_nested_function_fast_paths +04337_obfuscate_as_expression +04337_optimize_function_keys_shared_non_deterministic +04337_point_in_polygon_preprocessed_cache +04337_prometheus_query_nan_timestamp +04337_recursive_cte_inner_ref_no_logical_error +04337_rewrite_aggregate_function_with_if_respect_nulls +04337_s3_hive_partition_id_compatibility_validation +04337_top_k_skip_index_lightweight_delete +04337_ttl_aggregate_function_column_reject +04338_04305_values_non_column_argument_logical_error +04338_async_insert_current_user +04338_changedate_datetime64_scale_array_push +04338_columns_cache_write_estimate_prewhere +04338_has_map_dynamic_key_lowcardinality_arg +04338_negative_limit_by_permuted_key_gallop_overshoot +04338_obfuscate_int64_min_keeps_sign +04338_on_fly_mutation_read_overwritten_lc_source +04338_prewhere_after_pushdown_file +04338_query_construction_settings_subqueries +04338_replace_partition_no_resurrect_after_restart +04338_s3_duplicate_key_value_argument_bad_arguments +04338_statistics_countmin_estimate_type_mismatch +04338_text_index_codec_setting_change_merge +04338_window_funnel_deserialize_event_bounds +04339_105356_nullable_tuple_subcolumn_sort_order +04339_aggregation_in_order_limit_filter +04339_analyzer_rand_constant_resolution_cache +04339_ast_json_review_followup_hardening +04339_chinese_tokenizer_rune_encoding +04339_columns_cache_multi_range_task +04339_deltaSumTimestamp_signed_types +04339_in_subquery_partition_pruning_not_ready_set +04339_obfuscate_inner_query_result_limits +04339_text_index_block_size_zero_rejected +04339_virtual_row_prefetch_filtered_out +04340_any_join_not_ready_set_null_in +04340_chinese_tokenizer_factory_in_functions +04340_intdiv_variable_constant_monotonicity +04340_orc_fast_decoder_char_overflow +04340_rapidjson_memory_tracking +04340_set_index_row_policy_const_folded_function +04341_analyzer_identifier_cache_shared_expression_mutation +04341_broken_mutation_part_log_flush +04341_cascades_constant_in_no_subquery +04341_distributed_plan_join_function_key_type_mismatch +04341_dynamic_mutation_variant_discr_streams +04341_group_format_sparse +04341_join_reorder_imprecise_stats_label +04341_limit_after_with_limit_by +04341_mergeTreeCodecBlockCounts_json +04341_remote_storage_engine_restore +04342_ast_json_create_child_typing +04342_cascades_outer_join_distribution +04342_distributed_plan_read_with_projection +04342_dynamic_mutation_dummy_placeholder_stream +04342_group_format_serialization +04342_inconsistent_ast_move_part_to_shard +04342_join_reorder_aggregation_subquery_imprecise_stats +04342_limit_after_non_selected_columns +04342_parquet_v3_prewhere_intermediate_name_collision +04342_position_caseinsensitive_utf8_low_byte_needle +04342_remote_storage_engine_settings +04343_ast_json_enum_data_type_roundtrip +04343_cascades_view_aggregation_distributes +04343_secret_args_finder_mixed_named_positional +04343_startswith_endswith_caseinsensitive_utf8_empty_needle +04344_ast_json_select_child_typing +04344_lambda_in_non_lambda_argument_position +04344_server_ast_fuzzer_insert_limit +04345_ast_json_identifier_and_value_typing +04345_construction_settings_on_write_query +04346_ast_json_original_text_keyword_casing +04347_construction_settings_top_level_no_double_apply +04348_limit_after_until_plan_serialization +04349_construction_settings_from_context +04349_limit_after_union_settings_limit +04350_106533_statistics_pruning_nan_inversion +04350_ast_json_parser_impossible_field_combinations +04350_limit_after_replace +04351_bloom_filter_text_index_like_escape +04351_limit_after_intersect_except_settings +04353_text_index_explicit_tokenizer_argument +04354_limit_after_reject_array_join +04355_text_index_table_settings +04356_compatibility_skips_obsolete_settings +04356_constant_join_right_semi_anti +04356_datetime64_extended_range +04356_format_window_function_in_codec +04356_geojson_geometry_values +04356_key_condition_ifnull_coalesce_boolean_entry_points +04356_limit_after_boundary_non_selected_column +04356_packed_skip_indices_vertical_merge +04356_partition_minmax_for_primary_key_pruning +04356_threshold_for_parallel_hash_2 +04356_where_field_aggregate_projection_no_prune +04357_analysisOfVariance_deserialize_size +04357_constraint_subst_correlated_subquery_having +04357_join_order_dp_uniqcombined +04357_join_runtime_filter_size_from_hash_table_stats +04357_set_skip_index_lowcardinality_hastoken_like +04357_system_documentation_table +04357_ytsaurus_lookup_settings_table_engine_rejected +04358_geojson_duplicate_geometry_member +04359_geojson_empty_compound_coordinates +04360_geojson_misplaced_geometries_member +04361_geojson_duplicate_feature_type +04362_geojson_duplicate_top_level_type +04363_geojson_misplaced_coordinates_member +04364_geojson_unrequested_unsupported_geometry +04365_bloom_filter_arrayJoin_in +04365_dictionary_lazy_load +04365_lazy_materialization_split_step_oob +04365_materialized_cte_delayed_remote_null_logger +04365_msgpack_empty_fixstr_schema_inference +04365_order_by_lowcardinality_limit_after_join +04365_query_views_log_secrets_masking +04365_token_index_lowcardinality_constant +04366_filter_push_down_limit_by +04367_construction_settings_in_view +04367_lambda_arg_backquoted_dot_no_logical_error +04368_group_array_moving_array_combinator_parameter +04370_distinct_combinator_correlated_subquery_group_by_use_nulls +04401_110037_minmax_index_lowcardinality_nullable_is_null +04401_aggregate_function_deserialize_allocation_bomb +04401_alter_incompatible_default_breaks_attach +04401_columns_transformer_alias_on_asterisk +04401_date32_zerotransform_monotonicity_pruning +04401_datetime64_range_hashed_dictionary +04401_detect_charset_language_large_input_ubsan +04401_formatDateTime_out_of_range_date32 +04401_format_single_cte_consistent_indent +04401_geojson_ignored_members +04401_geojson_nullable_id +04401_implicit_minmax_block_number_offset_alter_column +04401_intdivorzero_mixed_signed_unsigned +04401_join_by_virtual_column +04401_join_left_column_pruning_with_spill_threshold +04401_join_runtime_filter_low_cardinality_nullable +04401_key_condition_is_not_distinct_from +04401_low_cardinality_fixed_string_partition_pruning +04401_low_cardinality_negative_zero_normalization +04401_mutate_all_columns_preserve_skip_index_checksums +04401_nullable_bool_where_count +04401_obfuscate_inner_settings_limit_stable +04401_optimize_aggregators_of_group_by_keys_low_cardinality +04401_orc_timestamp_scale_aware_conversion +04401_parameterized_view_scalar_subquery_in_with +04401_recursive_cte_correlated_subquery +04401_rocksdb_backup_restore +04401_skip_index_on_tuple_subcolumn_with_tuple_element +04401_sparse_pk_index_analysis_unknown_const_false +04401_trim_left_unchanged_fast_path +04401_update_nonexistent_column_error +04402_ast_json_view_targets_duplicate_kind +04402_cascades_task_budget_exceeded +04402_digits +04402_float_parsing_corner_cases +04402_ip_trie_dict_get_single_key_no_tuple +04402_map_functions_lowcardinality +04402_materialized_cte_union_body_in_subquery +04402_modulo_or_null_float_no_fpe +04402_obfuscate_query_cache_default_seed_key +04402_regexp_all_word_boundary_context +04402_remote_storage_engine_insert_table_function +04402_replace_regexp_dot_nl_106830 +04402_similar_to_analyzer_cnf +04402_skip_index_on_variant_subcolumn_with_variant_element +04402_sparse_pk_index_analysis_truncated_isnull +04402_storage_join_emit_non_first_column +04402_text_index_push_ranges_to_analyzer +04403_adaptive_codec_recompress_ttl +04403_dot_product_transposed +04403_naive_bayes_bad_models +04403_obfuscate_datetime_timezone +04403_remote_storage_engine_async_insert +04403_skip_index_on_qbit_subcolumn_with_tuple_element +04403_text_index_push_ranges_first_token_postings +04403_totime64_saturate_clamp +04404_get_client_http_header_non_deterministic +04404_qbit_int8 +04404_text_index_push_ranges_any_single_token +04405_naive_bayes_memory +04405_obfuscate_integer_type_edge_cases +04405_qbit_int8_distance +04405_qbit_length +04406_naive_bayes_dictionary_lifecycle +04406_obfuscate_datetime_dst_transition +04407_datalake_getcatalog_deprecated_settings_guard +04407_naive_bayes_empty_input +04407_obfuscate_inner_settings_default_reset +04407_quantize_bfloat16_int8 +04408_array_element_with_array_index +04408_ast_json_user_name_with_host_child_typing +04408_create_or_replace_refresh_mv_to_target +04408_datediff_datetime64_overflow +04408_hypothetical_index_partial_read +04408_lazy_materialization_part_offset_prewhere +04408_merged_json_patch_aggregate +04408_naive_bayes_class_id_type +04408_parseDateTimeBestEffort_nullable_regression +04408_query_phase_profile_events +04408_random_hadamard_transform +04408_system_documentation_no_empty_code_blocks +04408_text_index_serialization_version_setting +04409_array_partial_sort_per_row_limit +04409_compact_part_mixed_codec_read +04409_distributed_filter_pushdown_exact_decimal +04409_explain_actions_secret_args +04409_join_use_nulls_inequality_residual +04409_map_buckets_key_order_preservation +04409_naive_bayes_class_id_range +04409_system_documentation_source_and_entities +04409_time_series_referential_dependencies +04409_variant_escape_filename_fallback +04410_array_size_subcolumn_shared_buffer_merge +04410_bfloat16_binary_math_functions +04410_join_runtime_filter_mixed_predicates +04410_map_buckets_order_by_and_comparison +04410_xxhash64_spark +04411_block_number_wide_part_mutations +04411_chunk_buffer_correlated_subquery_set_operation +04411_constant_join_combinations +04411_map_buckets_parts_splitter_row_drop +04411_merge_sorting_queue_strategy_correctness +04411_naive_bayes_wrong_dictionary_type +04411_planner_actions_visitor_shared_subexpr_reuse +04411_point_in_polygon_const_cache_key +04411_text_index_multiple_partially_materialized +04411_window_function_self_copy_nested_types +04412_constant_join_algorithm +04412_merge_sorting_queue_strategy_vertical_granularity +04412_naive_bayes_padding +04412_projection_added_column_default +04412_settings_documentation_empty_default +04412_validate_fixed_size_column_huge_granularity +04412_window_transform_skip_materialization +04413_changeyear_nanosecond_datetime64 +04413_dict_get_keys_const_path_order_consistency +04413_documentation_no_indented_lines +04413_geojson_output_format_row +04413_merge_sorting_queue_strategy_equal_keys +04413_naive_bayes_short_input +04413_partition_disjointness_propagation +04413_window_transform_unchanged_frame_aggregates +04414_distinct_partitions_independently_heuristic +04414_window_transform_cume_dist_peer_groups +04415_distinct_partitions_independently_size_limit +04415_tostartof_datetime64_extreme_overflow +04415_use_legacy_to_time_default +04416_group_by_use_nulls_low_cardinality_constant +04416_groupconcat_tuple_sparse_subcolumn +04416_groups_window_frame +04416_mutate_all_columns_packed_prefix_collision +04416_mutate_all_columns_projection_hardlink +04416_remove_deprecated_snowflake_conversion_functions +04417_naive_bayes_ngrams +04417_numeric_indexed_vector_pointwise_multiply_all_ones +04417_partition_constants_folding_force_settings +04418_naive_bayes_classifier_nullable +04418_numeric_indexed_vector_multiply_zero_integer_bits +04418_partition_constants_folding_minmax_count_projection +04419_99495_limit_with_ties_virtual_row_empty_chunk +04419_naive_bayes_classifier_dependency +04419_numeric_indexed_vector_multiply_all_ones_index_sets +04420_foreach_combinator_zero_size_nested_state +04420_naive_bayes_classifier_dictgetordefault +04421_create_populate_view_alias_precheck +04421_naive_bayes_classifier_deterministic +04422_naive_bayes_tokenization_edge_cases +04423_naive_bayes_classifier_vs_dictget +04426_naive_bayes_oov_ignored +04427_naive_bayes_dictionary_sparse_source +04430_naive_bayes_codepoint_truncated_utf8 +04488_full_sorting_merge_join_unsupported_strictness +04489_aggregation_in_order_limit_with_ties +04489_analyzer_final_join_prewhere_pushdown +04489_compact_part_mixed_codec_uncompressed_cache +04489_constraint_comparison_wrong_arity +04489_create_table_as_inherit_engine_and_settings +04489_dot_product_transposed_partial_reads_pass +04489_geo_utm_mgrs +04489_information_schema_mysql_compat_columns +04489_masking_policies_introspection +04489_max_threads_auto_parsing_compat +04489_not_ready_set_inplace_build +04489_optimize_final_all_partitions_at_once +04489_part_starting_offset_in_subquery +04489_qbit_cast_to_array +04489_qbit_stride_create_insert_select +04489_redundant_comparisons_datetime64_scale +04489_regexp_too_complex_no_crash +04489_uniq_exact_grouping_sets_concurrent_merge +04489_vector_search_rescoring_lazy_materialization +04490_adaptive_codec_recompress_mutation +04490_any_join_constant_condition_reorder +04490_correlated_exists_zero_column_body +04490_dict_get_keys_float_signed_zero_consistency +04490_geojson_input_geometry_collection +04490_join_any_take_last_row_spilling_hash_join +04490_join_runtime_filters_index_analysis +04490_keycondition_float_pk_no_lossy_prune +04490_obfuscate_markov_order_bounds +04490_parallel_view_processing_values +04490_qbit_stride_subcolumns +04490_qualified_matcher_table_alias_over_column +04490_table_readonly_partition_commands +04490_vector_search_rescoring_prewhere_eligibility +04490_where_field_nullable_key_exact_count +04490_with_fill_interpolate_constant_fill_column +04491_dict_get_keys_const_path_non_coordinator_layout +04491_obfuscate_inner_default_only_reset +04491_qbit_stride_distance +04491_table_readonly_move_partition_to_table +04491_vector_search_rescoring_lightweight_delete_filter +04492_aggregate_partitions_independently_max_rows_to_group_by +04492_ai_functions_default_credentials +04492_ast_json_rename_scalar_coercion +04492_create_or_replace_materialized_view_populate_keeps_subscription +04492_json_datetime64_number_input +04492_lightweight_delete_filtered_projection +04492_max_insert_threads_auto_default +04492_optimize_and_compare_chain_work_budget +04492_optimize_or_like_chain_embedded_nul +04492_parallel_full_sorting_merge_join +04492_projection_ttl_default_divergence +04492_qbit_stride_mergetree +04492_regexp_pattern_with_nul_byte +04492_schedule_merge_retry_on_busy_pool +04493_ast_json_alter_ttl_select_validation +04493_atomic_populate_materialized_view_features +04493_correlated_subquery_join_runtime_filter_dup_column +04493_external_distinct +04493_float_parsing_in_formats +04493_jit_simple_regexp +04493_lazy_final_prewhere_derived_filter_column +04493_optimize_or_like_chain_match_vectorscan_incompatible +04493_parallel_full_sorting_merge_join_no_shard_cases +04493_qbit_distance_nullable_reference +04493_sqr +04494_aggregating_dimensions_in_sorting_key +04494_ast_json_create_system_identifier_validation +04494_columns_cache_patch_part_write_estimate +04494_external_distinct_key_types +04494_jit_simple_regexp_extract_replace +04494_qbit_stride_dot_product_transposed +04495_ast_json_nested_uuid_rejection +04495_columns_cache_write_budget_soft_threshold +04495_external_distinct_limits +04495_jit_regexp_drop_compiled_cache +04495_optimize_or_like_chain_fixed_string_enum +04495_parallel_full_sorting_merge_join_float_keys +04495_parallel_full_sorting_merge_join_read_in_order +04495_qbit_stride_cast_to_array +04495_sort_setting_reject_empty_and_zero_positional +04496_external_distinct_pre_distinct_pass_through +04496_group_by_limit_pushdown_partial_aggregation +04496_optimize_or_like_chain_like_derived_embedded_nul +04496_parallel_full_sorting_merge_join_json_keys +04497_external_distinct_metrics +04497_optimize_or_like_chain_invalid_escape_skipped +04497_parallel_full_sorting_merge_join_priority_order +04497_qbit_stride_max_groups +04498_async_insert_dedup_optimize_on_insert_merge_tree +04498_crosstab_variant_to_variant_merge +04498_external_distinct_set_operations +04498_geojson_precise_float_parsing +04498_join_runtime_filters_multihop +04498_json_extract_cast_string_to_date_time_mode +04498_optimize_or_like_chain_non_deterministic +04498_packed_skip_index_uncompressed_size +04498_parallel_full_sorting_merge_join_dynamic_keys +04498_parallel_hash_read_in_order_through_join +04498_redundant_comparisons_date_datetime_truncation +04498_sample_ratio_exponent_overflow +04498_tostartof_hour_interval_extreme_overflow +04499_cascades_nondeterministic_single_node +04499_json_extract_precise_float_parsing +04499_key_condition_bare_key_column_multi_atom +04499_redundant_comparisons_lossy_conversions +04499_toStartOfInterval_floor +04499_tostartof_minute_interval_extreme_overflow +04500_cascades_sort_size_limits +04500_key_condition_multi_atom_deterministic_alongside_direct +04500_optimize_or_like_chain_non_utf8 +04500_parallel_full_sorting_merge_join_sorted_inputs +04500_prewhere_final_nondeterministic_condition +04500_read_in_order_through_partial_merge_join +04500_toStartOfInterval_origin_subscale +04500_wkb_empty_polygon_canonical +04501_dict_get_root +04501_format_local_join +04501_full_sorting_merge_join_shard_stream_divergence +04501_group_by_ttl_block_number_offset +04501_group_by_ttl_infinite_rollup +04501_inner_join_key_column_not_ambiguous +04501_key_condition_null_containing_constant +04501_mutation_materialize_block_number_offset +04501_qbit_cast_between_params +04501_qbit_distance_transposed_nullable_partial_reads +04501_qbit_distance_transposed_truncate_reference +04501_quantize_bfloat16_int8_array_qbit +04502_alter_drop_column_default_with_alias +04502_correlated_subquery_deep_nested_reference +04502_group_by_ttl_materialized_column +04502_group_by_ttl_merge_of_finished_parts +04502_inconsistent_ast_create_index_expr_paren_round_trip +04502_parseDateTime_variable_length_microseconds +04502_qbit_distance_transposed_dynamic_reference +04502_tuple_combinator_state_compatibility +04503_cascades_aggregation_settings +04503_reinterpret_array_to_string +04503_tuple_combinator_multiple_tuples +04504_cascades_topn_exact_rows_before_limit +04504_transposed_distance_quantized +04504_variant_discriminators_cow_safe_rows_offset +04505_distributed_plan_any_scatter_spread +04505_in_function_table_first_argument +04505_json_object_hash_split_invariance +04505_materialize_statistics_on_insert_compatibility +04505_qualified_column_names_in_delete +04505_tuple_combinator_state_variants +04506_csv_float_quoted_bad_value +04506_distributed_plan_window_function +04506_exact_ranges_not_merged_across_seek_gap +04506_geometry_intersect +04506_in_function_array_column_right_argument +04506_lwu_modify_order_by_with_patches +04506_naive_bayes_priors_literal +04506_read_in_reverse_order_final +04506_sparsity_fixed_string_empty +04506_tuple_combinator_parallel_merge +04507_array_aggregation_bfloat16 +04507_data_type_name_numeric_roundtrip +04507_dpsub_chained_outer_join_null_side +04507_exclusion_search_max_steps +04507_intersect_except_all_packed_composite_key +04507_lwu_merge_on_key_duplicate_keys +04507_materialized_cte_union_merge +04507_mergeTreeCodecBlockCounts_pushdown +04507_mvt_encode_state_serialize +04507_naive_bayes_source_values_fit_declared_types +04507_parallel_single_level_merge_group_by_limit +04507_sparsity_count_expression_semantics +04507_storage_join_right_direct_read +04507_view_orderby_expression_no_pushdown +04508_connection_reconnect_on_stale +04508_construction_settings_default_reset_in_view +04508_exclusion_search_max_steps_correctness +04508_function_conv_fixedstring +04508_lwu_subcolumn_sorting_key +04508_mergeTreeCodecBlockCounts_patch_parts +04508_naive_bayes_dictionary_checked_at_analysis +04508_parallel_join_with_additional_filter_2 +04508_shared_part_schema_metadata +04509_additional_table_filters_illegal_type +04509_array_comparison_bigger_types +04509_array_sort_numeric_fast_path +04509_backup_to_memory_cleanup_after_error +04509_cascades_distributed_final_lanes +04509_construction_settings_default_reset_union_arm +04509_create_xgboost_model +04509_icu_tokenizer +04509_key_condition_deterministic_transform_unsupported_cast +04509_least_greatest_nullable_variadic +04509_lwu_sorting_key_common_prefix +04509_mergeTreeCodecBlockCounts_row_policy +04509_multipoint_type +04509_not_has_function +04509_partition_float32_no_lossy_drop +04509_reverse_key_no_final_mark_pruning +04509_split_by_regexp_tokenizer +04509_system_drop_encryption_headers_cache +04509_to_start_of_interval_fast_path +04510_bool_numeric_in_containers +04510_clamp_numeric_vectorized +04510_direct_join_merge_tree_prewhere_clone +04510_explain_analyze_join_stats +04510_key_condition_multi_atom_tuple_in_wrapped_set +04510_minmax_block_columns_projection_merge +04510_mutation_query_plan_only_virtual_columns +04510_not_has_function_explain +04510_optimize_and_compare_chain_comparison_domains +04510_small_bitmap_subset +04510_statistics_basic_default_count_survives_merge +04511_array_normalize +04511_bool_json_special_values_gate +04511_cascades_replicated_subplan_join +04511_distinct_overflow_mode_break +04511_geometry_discriminators_compatibility +04511_key_condition_wrapped_set_injective_negation +04511_lwu_apply_patches_recalculate_ttl +04511_orc_native_union_type +04511_point_in_polygon_geo_types +04511_projection_part_compression_codec +04511_reverse_nullable_key_no_final_mark_pruning +04511_statistics_basic_variant_dynamic_null_count +04512_bigquery_table_function_arguments +04512_cascades_trivial_count_sparsity_gating +04512_constraint_on_subcolumn +04512_correlated_subquery_cross_join_aggregate_dedup +04512_eval_table_function +04512_every_database_engine_must_have_documentation +04512_filter_push_down_limit_by_nondeterministic +04512_format_row_no_newline_empty_row_underflow +04512_in_function_array_subquery_right_argument +04512_inconsistent_ast_aliased_in_under_function_arg +04512_lowcardinality_const_key_distributed_merge_aggregation +04512_map_enum_key_subcolumn +04512_materialize_implicit_minmax_index_block_offset +04512_max_bytes_limits_count_string_arena +04512_min_max_aggregation_from_statistics +04512_orc_native_union_branch_hints +04512_orc_native_union_write +04512_pco_codec +04512_point_in_polygon_geometry_type_mismatch +04512_postgresql_regexp_operators +04512_random_hadamard_transform_hartley_9 +04512_shared_null_map_default_implementation_for_nulls +04512_short_circuit_constant_false_join +04512_wide_type_pair_kernels_via_conversion +04513_array_element_enum_key_map +04513_cascades_two_phase_aggregation_bucket_order +04513_every_data_type_must_have_documentation +04513_lwu_merge_on_key_combine_patches +04513_orc_fast_decoder_obsolete_setting +04513_orc_native_union_integer_targets +04513_pco_codec_gating +04513_pg_catalog_compatibility_functions +04513_prewhere_map_subcolumn_read_cost +04513_prewhere_statistics_cost_ordering +04513_type_pair_matrix_comparison +04514_every_format_must_have_documentation +04514_lwu_merge_on_key_many_patches +04514_mergetree_analyze_indexes_alias_predicate +04514_type_pair_matrix_arithmetic +04515_every_server_setting_must_have_documentation +04515_orc_native_union_bool_targets +04516_every_compression_codec_must_have_documentation +04516_ie_join_duckdb_countzeros +04516_join_order_estimation_pruned_parts +04516_join_reorder_duplicate_names_merge_expression +04516_orc_native_union_struct_branch_null +04516_parallel_full_sorting_merge_join_nested_read_in_order +04516_projection_part_column_drift +04516_recursive_cte_union_seed +04517_every_aggregate_function_combinator_must_have_documentation +04517_explain_syntax_single_record +04517_ie_join_duckdb_predicate_expressions +04517_lazy_final_join_with_statistics +04517_parallel_full_sorting_merge_join_nested_pk_range_sharding +04518_every_data_skipping_index_type_must_have_documentation +04518_group_by_all_tuple_order_by +04518_ie_join_duckdb_events +04518_type_pair_matrix_comparison_integer_left +04519_every_dictionary_layout_must_have_documentation +04519_ie_join_duckdb_minimal_overlap +04519_type_pair_matrix_arithmetic_signed_wide +04520_every_dictionary_source_must_have_documentation +04520_ie_join_duckdb_projection +04521_every_disk_type_must_have_documentation +04521_ie_join_duckdb_timestamps +04522_every_function_must_have_documentation +04522_ie_join_duckdb_unsupported_shapes +04523_every_table_function_must_have_documentation +04524_create_as_select_temp_cleanup_size_guard +04524_every_table_engine_must_have_documentation +04524_ie_join_read_in_order +04527_cast_resolver_expired_context +04528_ie_join_outer_default_padding +04529_ie_join_outer_vs_oracle +04530_ie_join_duckdb_semi_anti_ranges +04532_ie_join_right_semi_anti_swap +04535_ie_join_band_join +04536_ie_join_operators_vs_oracle +04537_aggregation_in_order_serialized_keys +04537_ie_join_edge_cases +04537_valid_for_interval +04538_datetime64_zerotransform_monotonicity_pruning +04538_delta_codec_decode_roundtrip +04538_eval_construction_settings +04538_ie_join_duckdb_east_west +04538_join_use_nulls_full_outer_to_inner +04538_lwu_alter_sorting_key_column_type +04538_lwu_nested_multi_subcolumn_validation +04538_materialized_view_comment_implicit_alias +04538_null_safe_cmp_bigger_types +04538_query_cache_normalize_default_settings +04538_session_query_ids +04539_arithmetic_context_free_execution +04539_enum_string_search_dictionary +04539_ie_join_duckdb_basic +04539_lazy_final_read_in_order_limit_disabled +04539_projection_reject_storage_settings +04539_tonullable_monotonicity_pruning +04539_uniq_combined_fixed_string_no_key +04540_correlated_subquery_cnf_column_count +04540_enum_search_hastokenornull_nullmap_expand +04540_ie_join_duckdb_null_keys +04540_lazy_materialization_final_limit_no_order +04540_packed_part_long_filename_consistency +04540_read_wkt_point_empty +04541_ie_join_duckdb_union_inputs +04542_create_if_not_exists_as_select_skips_create_only_validation +04542_ie_join_float_nan_inf +04543_ie_join_outer_empty_input +04544_array_min_max_nan_zero_bit_pattern +04544_ie_join_detection_negatives +04545_add_days_fixed_offset_time64 +04545_asof_join_constant_condition +04545_base64_decode_padding_leniency +04545_bloom_filter_index_transform_null_in +04545_correlated_exists_right_join_tlp +04545_correlated_subquery_in_set_speculative_build +04545_create_as_select_fast_path_existence_parity +04545_format_table_function_zero_rows_schema +04545_full_join_storage_join_using_nullable_key +04545_full_sorting_merge_join_enum_default +04545_grace_hash_join_read_after_cancel +04545_group_bitwise_batch_single_place +04545_group_by_all_rollup_use_nulls +04545_group_by_use_nulls_grouping_sets_const_fold_equals +04545_ie_join_low_cardinality +04545_join_on_uint8_condition_not_boolean +04545_naive_bayes_ngrams_special_columns +04545_negative_limit_distinct +04545_optimize_or_like_chain_aggregate_lhs +04545_parquet_minmax_stats_type_mismatch +04545_prewhere_final_summing_implicit_bool_key +04545_read_wkt_leading_whitespace +04545_set_param_colliding_with_setting +04545_streaming_queries_bounded +04545_throwif_notlike_lowcardinality +04545_tostartof_month_week_day_interval_extreme_overflow +04545_totime_key_use_legacy_to_time_mismatch +04545_zxc_codec +04546_constant_join_any_first_row_multiple_blocks +04546_constant_join_compressed_non_joined +04546_constant_join_max_joined_block_bytes_zero +04546_constant_join_replicated_right_column +04546_constant_join_shrink_stored_blocks +04546_constant_join_spill_non_joined +04546_ie_join_type_extremes +04546_map_element_duplicate_keys_first_match +04546_naive_bayes_ngrams_start_token_only +04546_partial_merge_join_float_nan +04546_qbit_subcolumn_missing_column_default +04546_statistics_simple_batch_single_place +04546_text_index_merge_fsync +04546_ttl_delete_where_recalc_after_update +04547_create_as_select_destination_not_visible_during_populate +04547_ie_join_size_limits +04547_partial_merge_join_multikey_track +04547_read_wkt_point_measure_valid +04548_compact_multi_codec_dedup +04548_distributed_plan_window_parametric_aggregate +04548_ie_join_algorithm_priority +04548_part_storage_type_column +04549_array_comparison_bigger_types_nullable +04549_ie_join_residual_outer_vs_oracle +04549_lowcardinality_shared_dictionary_ownership_validator +04549_text_index_exclusion_search_max_steps +04550_distinct_in_order_array_join_phantom_sort +04550_ie_join_residual_semi_anti +04550_single_value_data_string_multi_refill +04551_ie_join_residual_null_and_edges +04551_substreams_cache_ownership_validator_more_paths +04553_ie_join_duckdb_predicate +04555_sqlite_table_function_metadata_without_file +04556_ie_join_detection_strictness_negatives +04557_ie_join_residual_low_cardinality +04559_ie_join_keep_presort +04560_ie_join_tuple_dynamic_keys +04560_union_subqueries_in_mutations +04561_ie_join_storage_join +04562_ie_join_anti_bit_boundary +04563_text_index_merge_heterogeneous_children +04600_orc_native_union_timestamp_kinds +04600_system_documentation_full_page_no_synthetic_sections +04601_orc_native_union_struct_projection +04601_valid_for_non_interval_rejected +04601_window_clause_query_parameters +04602_orc_native_union_nested +04602_parallel_full_sorting_merge_join_fallback_strict_keys +04602_valid_until_pre_1900_rejected +04603_analyzer_compatibility_multiple_joins_qualify_column_names +04603_async_insert_dedup_multi_partition +04603_bit_to_array_big_int +04603_cte_column_aliases_intersect_except +04603_explain_analyze_join_matched_rows +04603_join_using_nested_projection_alias +04603_limit_offset_settings_union +04603_materialize_statistics_on_insert_size_gate +04603_orc_native_union_oversized +04603_projection_part_type_ignores_base_quantize_codec +04603_reservoir_sampler_multiply_total_values_overflow +04603_sz3_codec_non_finite +04603_valid_until_year_zero_rejected +04603_xgboost_experimental_flag +04604_adaptive_aggregator_compaction +04604_negative_limit_with_limit_offset_settings +04604_orc_native_union_string_kinds +04604_qbit_bfloat16_low_precision_centre_fill +04604_reader_executor_min_size +04604_sz3_codec_lorenzo_reg +04604_valid_until_epoch_zero_not_infinity +04605_adaptive_aggregator_thaw +04605_fractional_limit_with_limit_offset_settings +04605_orc_native_union_struct_branch_pruning +04605_valid_until_range_bypass_rejected +04606_adaptive_aggregator_nothing_state +04606_computed_limit_with_limit_offset_settings +04606_valid_until_no_authentication +04607_negative_offset_with_limit_offset_settings +04607_tuple_combinator_respect_nulls_state_name +04608_with_ties_limit_settings_cap +04611_bool_literal_to_string_const_eval +04611_cascades_broadcast_join_keeps_left_partitioning +04611_correlated_subquery_grouping_sets_use_nulls +04611_join_any_take_last_row_auto_algorithm +04611_join_runtime_filters_index_analysis_skip_index +04611_random_hadamard_transform_hartley_truncation +04611_streaming_queries_max_streams_clamp +04611_valid_until_method_level_precedence +04612_alp_codec_float32_decimal_ratio +04612_alter_drop_column_alias_in_set +04612_ast_json_projection_where +04612_cascades_join_width_from_column_sizes +04612_constant_join_decorrelated_duplicate_columns +04612_fixedstring_const_string_key_condition +04612_full_sort_join_skip_not_matched +04612_function_replicate_preserves_const +04612_hash_join_right_key_timezone +04612_join_runtime_filters_index_analysis_multi_key_anti +04612_key_condition_nested_cast_lowcardinality +04612_key_condition_pending_alter_lowcardinality_key +04612_left_join_additional_filter_right_any_scatter +04612_random_hadamard_transform_generalized_hartley +04612_reverse_key_index_analysis +04612_table_same_name_as_database +04612_timeseries_version_setting +04612_valid_until_pre_epoch_normalized +04613_and_compare_notequals_chain_null_variant_constant +04613_ast_json_create_variant_clause_ownership +04613_column_ttl_fully_expired_single_column +04613_compatibility_page_limit_offset_not_changed +04613_constant_join_left_anti_short_circuit +04613_constant_sort_keys +04613_create_or_replace_view_over_dictionary +04613_distributed_plan_merge_broadcast_join +04613_estimate_compression_ratio_none +04613_parse_comment_rollback +04613_pipe_operators +04613_row_policy_additional_table_filter_shared_column +04613_system_users_valid_until_datetime64 +04613_variant_constant_folding_distributed +04614_ai_functions_insecure_endpoint +04614_analyzer_view_cte_qualified_identifier +04614_array_fixedstring_ipv6_comparison +04614_ast_json_create_inner_uuid_target_shape +04614_async_insert_dedup_identical_multi_partition +04614_group_array_state_resample_finalize_no_crash +04614_group_by_top_k_array_join_projection +04614_jit_compiled_disjunctive_filter +04614_join_runtime_filter_shared_fixed_hash_table_key_cast +04614_join_runtime_filters_index_analysis_partial_filter +04614_malformed_nested_tuple_type_parser +04614_merge_sorting_queue_strategy_part_offset_projection +04614_ownership_validator_prefix_cache_shared_dictionary +04614_scalar_subquery_in_skipped_table_function_argument +04614_uniq_sparse_no_key +04614_uniq_state_read_merge_roundtrip +04614_utm_to_geo_band_letter +04614_valid_for_ast_traversal +04615_ast_json_optimize_manifest_show_like_where +04615_join_runtime_filters_shared_fixed_hash_table_pruning +04615_lambda_captures_lazy_replication +04615_logsql_dialect +04615_parameterized_view_scalar_subquery_param_ctas +04615_substreams_prefix_cache_map_shared_data_subobject +04616_ast_json_column_type_and_cursor_tree_validation +04616_experimental_codec_in_merge_tree_settings +04616_json_lazy_type_hints_key_safety +04616_map_like_functions_lazy_pattern_replication +04617_ast_json_auto_increment_result_type_pk_slots +04617_read_in_order_virtual_row_front_source_limit +04618_obfuscate_inner_settings_do_not_loosen_outer_limits +04619_streaming_queries_shared_snapshot_strip_race +04620_jit_compile_nothing_argument +04621_toStartOfInterval_subsecond_overflow +04622_datetime_number_quoted_escaping_formats +04622_detach_partition_fsync_part_directory +04623_delete_in_partition_unsupported_storage +04623_union_aggregate_state_in_tuple_header +04624_obfuscate_union_and_output_settings_query_cache_key +04625_ast_json_drop_optimize_explain_owned_fields +04626_and_compare_chain_nothing_collapsed_and +04626_ast_json_nested_uuid_serialization_rejection +04626_caseinsensitive_long_needle_simd_extend +04626_lwu_sort_key_column_with_default +04626_minmax_block_number_downgrade_merge +04626_mutation_in_partition_query_parameter +04626_right_join_duplicate_left_column_union_all +04626_text_index_flush_settings +04627_analyzer_compatibility_final_all_joined_tables +04627_ast_json_check_optimize_partition_type +04627_direct_join_dictionary_nullable_key +04627_filter_push_down_constant_predicate +04627_mergeTreeCodecBlockCounts_no_substream_marks +04627_obfuscate_positional_arguments_remote +04627_parallel_full_sorting_merge_join_virtual_row_through_join +04627_prewhere_final_sorting_key_not_projected +04627_set_index_null_const_no_prune +04627_streaming_queries_unordered +04627_text_index_flush_memory_tracking +04627_timeseries_tf_string_arg_wrappers +04627_trivial_insert_select_max_threads_cap +04628_ai_functions_compatibility_defaults +04628_and_compare_chain_index_hint +04628_ast_json_alter_update_partition_shape +04628_ephemeral_column_type_is_not_masked +04628_join_runtime_filter_reverse_key +04628_multistep_prewhere_default_column +04628_qbit_lloyd_max_prefix_centroid +04628_rand_distribution_no_hang +04628_read_nothing_step_serializable +04628_regexp_quoted_datetime_number_full_consumption +04628_secret_args_expression_derived_key +04628_settings_limit_offset_default_union +04628_split_filter_name_clash_header_leak +04628_tolastdayofweek_extreme_daynum_overflow +04628_union_intersect_except_child_format_parens +04629_ast_json_delete_partition_and_alias_identifiers +04629_dynamic_order_by_shared_data +04629_finalize_aggregation_mismatched_state +04629_lwu_patch_parts_mixed_versions +04629_multistep_prewhere_default_column_patch_parts +04629_propagate_predicate_across_equi_join_runtime_filters_nested +04629_rand_binomial_invalid_probability +04630_ast_json_projection_index_expression_list +04630_default_over_virtual_column +04630_prewhere_subcolumn_guard_throwing_expression +04631_ast_json_partition_shape_and_user_names_nonempty +04631_promql_count_subquery_in_range_function +04631_query_condition_cache_topk_compatibility +04631_valid_for_subsecond_interval_rejected +04633_async_insert_select_break_writes_nothing +04635_geometry_variant_local_discriminators +04635_in_tuple_subquery_rewrite_in_to_join +04635_lazy_materialization_gcs_no_etag_pin +04635_orc_native_union_boolean_enum +04635_skip_empty_columns_rename_drop +04636_orc_native_union_numeric_widening +04638_tuple_combinator_nested_suffix_nulls_action +04639_ast_json_wasm_function_arguments_children +04640_ast_json_table_override_list_and_explain_shape +04640_query_log_map_columns_serialization +04641_ast_json_projection_order_by_shape +04641_date32_extended_range_preimage +04645_refreshable_materialized_view_reject_populate +04647_columns_cache_projection_index +04647_exact_range_unloaded_key_columns +04647_matcher_in_lambda_join_use_nulls +04647_spilling_hash_join_post_build_phase +04647_text_index_lazy_single_posting_segment +04648_count_substrings_utf8_complexity +04648_distinct_sorted_overflow_throw_with_limit +04648_join_dummy_only_both_children +04648_join_on_constant_null_conjunct +04648_library_dictionary_source_removed +04648_multi_atom_null_and_fixed_string_guards +04648_mutation_statistics_type_mismatch +04648_parameterized_view_non_equals_argument +04648_query_condition_cache_and_chain_split +04648_query_condition_cache_vector_search +04648_timeseries_samples_codecs +04648_toStartOfInterval_origin_result_overflow +04648_ttl_group_by_consecutive_keys_optimization +04648_url_secret_masking_forms +04649_atomic_populate_materialized_view_query_local_parallel_replicas +04649_distinct_in_order_final_float_equality +04649_ytsaurus_empty_cypress_path_rejected +04650_join_use_nulls_repeated_on_condition_in_where +04650_materialize_statistics_on_insert_planner_cold_load +04650_min_max_wide_integers +04651_aggregation_in_order_reverse_key +04651_date32_out_of_lut_calendar_normalization +04651_gini_aggregate +04651_intdiv_const_variable_monotonicity +04651_intdiv_const_variable_monotonicity_controls +04651_intdiv_const_variable_monotonicity_decimal_float +04651_intdiv_const_variable_monotonicity_ip +04651_parallel_full_sorting_merge_join_fallback_top_k +04651_rand_binomial_degenerate_probability +04652_column_alias_list_in_view_function +04652_compound_key_monotonicity +04652_datetime_number_variant_try_path +04652_delta_kernel_rs_setting_alias +04652_direct_join_dictionary_sparse_key +04652_enum_constant_vs_string_column +04652_group_by_top_k_pruning_memory +04652_intdiv_ip_key_monotonicity +04652_lazy_materialization_replace_node_header_order +04652_mutation_materialize_block_columns_some +04652_nested_merge_prewhere_type_mismatch +04652_nullable_tuple_element_subcolumn_of_dynamic_variant +04652_part_minmax_block_columns_mutation +04652_pr_plan_based_join_correlated_subquery +04652_prewhere_final_move_skipped_when_deferred +04652_system_documentation_settings_history +04652_url_wildcard_index_pages_userinfo +04652_valueless_setting_column_level +04652_wide_integer_to_string +04653_adaptive_aggregator_admission +04653_ast_json_codec_and_statistics_shape +04653_atomic_populate_materialized_view_rollback_on_error +04653_bloom_filter_fixed_string_constant_scalar +04653_distributed_plan_auto_rewrite_in_to_join +04653_group_by_top_k_size_hint_gate +04653_identity_variant_passthrough_type +04653_join_runtime_filters_index_analysis_refiner +04653_mutation_rewrite_stale_part_column_type +04653_profile_events_external_sort_read_rows +04653_quantile_deterministic_merge_split_independent +04653_table_function_proxy_prewhere_type_drift +04653_text_index_prewhere_deferred_after_final +04653_valueless_setting_format_roundtrip +04653_values_bool_to_textual_column_native +04654_bloom_filter_array_fixed_string_constant +04654_create_view_param_db_in_body +04654_distributed_plan_parallel_replicas_auto_disabled +04654_lazy_materialization_shadowed_input_name +04654_matcher_in_default_expression +04654_merge_filter_into_join_condition_common_supertype +04654_propagated_disjointness_group_by_limit +04654_quantile_deterministic_legacy_state_version +04654_table_name_length_underflow +04654_text_index_merge_with_empty_part +04654_union_scalar_subquery_in_mutation_predicate +04655_ast_json_dictionary_and_time_interval_required_fields +04655_distinct_partitions_independently_join_pk_sharding +04655_distributed_plan_correlated_subquery +04655_group_by_top_k_boundary_plateau_eviction +04655_valueless_setting_subquery_limit +04656_ast_json_subquery_child_query_shape +04656_distributed_plan_workers_disable_jit_and_skip_index_read +04656_group_by_top_k_in_order_removes_synthetic_sort +04657_cuturlparameter_documented_behavior +04657_distributed_plan_text_index_direct_read +04657_explain_estimates_rewrite +04657_group_by_top_k_no_order_by_never_freezes +04657_join_result_row_count_delayed_buckets +04657_lwu_narrowed_key_identity_columns +04657_parallel_full_sorting_merge_join_set_on_the_fly +04657_streaming_queries_unique_key_reject +04657_timespan_setting_out_of_range +04658_streaming_queries_pipeline_teardown_use_after_free +04658_streaming_queries_watermark_query_parameters +04658_text_index_negative_tokens_cache +04658_uniq_variadic_if_no_key +04659_propagate_predicate_across_equi_join_no_primary_key_analysis +04659_storage_join_mixed_on_expression +04660_column_comment_after_modifiers +04660_non_constant_rhs_in_lambda_lhs +04660_random_hadamard_transform_constant_folding +04661_accurate_cast_non_integral_float_to_date_datetime +04662_kafka_num_consumers_attach +04662_view_explain_valueless_setting +04663_setting_boolean_shorthand_in_create_settings +04664_setting_boolean_shorthand_raw_engine_settings +04665_merge_filter_into_join_dynamic_key +04665_obfuscate_unsupported_types +04665_part_minmax_block_columns_after_reload +04665_remote_engine_settings_clause +04665_valueless_query_construction_setting +04666_ast_json_mutation_multiple_partitions +04666_direct_null_in_non_constant_rhs +04666_poco_json_integer_overflow +04666_set_query_parameters_ast_hash +04667_mixed_join_condition_algorithm_selection +04669_adaptive_codec_vertical_merge +04669_distributed_plan_window_end_preceding_frame +04669_fuse_filter_into_array_join +04669_join_key_no_supertype +04669_point_in_polygon_point_column_primary_key_index +04669_query_condition_cache_lightweight_delete +04670_any_join_take_last_row_no_swap +04670_buffer_no_destination_prewhere +04670_cascades_streaming_queries_gating +04670_make_distributed_plan_in_subquery_baseline +04670_query_condition_cache_unique_key +04671_join_const_propagation_partition_pruning +04671_kql_string_operators +04671_make_distributed_plan_join_to_in_disabled +04671_part_minmax_block_columns_legacy_repair +04672_join_on_array_join_residual +04672_make_distributed_plan_in_subquery_set_delivery +04672_read_in_order_virtual_row_sort_prefix +04673_cross_to_inner_join_non_deterministic +04673_kql_unsupported_is_rejected +04674_key_condition_erased_fixed_string_constant +04674_kql_clickhouse_functions +04680_share_sets_between_mutation_tasks_index_analysis +04691_array_intersect_smallest_argument +04691_intdiv_by_minus_one_minimal_signed +04691_replace_regexp_unmatched_capture_group_ubsan +04691_ttl_expression_rebuild_after_constant_fold +04692_bool_tag_faithful_in_set +04692_functions_to_subcolumns_merge_support +04692_insert_dedup_retry_sparse_tuple +04692_insert_dedup_sparse_serialization +04692_point_in_polygon_point_column_non_lightweight +04692_rewrite_array_filter_length_to_array_count +04692_totime_key_reload_use_legacy_to_time +04693_kql_geo_h3 +04693_point_in_polygon_point_key_index_analysis_modes +04695_analyzer_group_by_use_nulls_matcher_projection_names +04695_date32_field_to_datetime_coercion +04695_enable_experimental_codec_settings +04695_geohashes_in_box_zero_area_value +04695_parallel_single_level_merge_group_by_no_aggregates +04695_spilling_hash_join_memory_spill_scheduler +04695_text_index_postings_read_order +04695_to_string_monotonicity +04695_tuple_element_serialization_version_per_part +04696_enable_experimental_codec_setting_sz3 +04696_grace_hash_honors_max_bytes_before_external_join +04696_quantized_codec_shared_part_metadata +04697_custom_type_name_shared_part_metadata +04697_in_join_limits_are_hard_caps +04698_legacy_join_size_limits_spill_trigger +04700_merge_temporary_database +04700_set_index_nullable_operand_in_expression +04701_kv_container_key_set_cast +04708_functions_to_subcolumns_file_storages +04711_view_no_subcolumn_optimization +04714_scatter_by_partition_finished_output +04716_text_index_ipv6_string_constant +04718_workload_ratio_settings_overflow +04719_packed_skip_index_logical_name_collision +04723_virtual_row_interpolate_column_set +04726_streaming_queries_commit_order_snapshot_plan +04727_part_minmax_block_columns_legacy_repair_merged +04730_array_remove_at +04734_distributed_plan_window_aggregate_state_variant +04735_ttl_delete_where_shared_time_expression +04738_merge_subcolumn_of_alias_parent +04741_buffer_two_filters_converted_column +04743_buffer_two_filters_converted_column_parquet +04745_join_low_cardinality_wide_int_key +04755_groupconcat_fixedstring +04756_nested_sibling_shared_offsets_prefetch +04757_alter_modify_projection_settings +04757_explain_analyze_join_filled_and_constant +04757_logsql_format_case +04757_numeric_indexed_vector_index_type_width +04757_optimize_to_date_preimage +04757_part_minmax_block_columns_setting_widened +04757_streaming_queries_parallel_replicas +04758_explain_analyze_join_stats_merge_algorithms +04758_optimize_date_preimage +04759_array_count_legacy_uint32_result +04759_atomic_populate_materialized_view_rollback_on_runtime_error +04759_explain_analyze_join_matched_rows_merge_algorithms +04759_merge_num_streams_uint32_truncation +04759_single_argument_or_in_join_on +04760_storage_join_composite_key_read +04763_variant_adaptor_cancellation +04766_merge_max_block_size_bytes_below_empty_column_size +04767_array_lexicographic_nothing_element +04770_nested_subcolumn_shared_offsets_continuation +04771_compression_method_hint_case_insensitive +04772_system_databases_index_hint_not_ready_set +04773_dotted_nested_null_subcolumn_metadata_alter +04791_lossy_codec_key_column +04792_array_exists_to_has_string_family +04796_create_or_replace_internal_drop_not_ignored +04797_create_or_replace_view_internal_drop_not_ignored +04811_aggregate_functions_timeseries_topk_bottomk_limitk +04811_alter_column_type_with_key_subcolumns +04811_constant_lambda_rhs_in +04811_current_setting_timezone +04811_incremental_refreshable_mv +04811_logsql_subquery_scoping +04811_mixed_join_condition_dictionary_join_use_nulls +04811_prewhere_statistics_ordering_compact_parts +04811_prewhere_subcolumn_size_setting +04811_promql_topk_bottomk_limitk +04811_promql_topk_bottomk_limitk_streaming +04811_statistics_part_pruning_nan_negation +04811_text_index_pattern_bypass_cache +04812_alter_modify_projection_settings_index_projection +04812_arrayFlattenedLength +04812_explain_analyze_branch_time +04812_explain_analyze_join_matched_rows_across_chunks +04812_incremental_refreshable_mv_at_least_once +04812_logsql_field_overwrite_and_ranges +04812_merge_alias_in_prepared_set +04812_merge_children_distributed_plan_const_mismatch +04812_multi_atom_injective_key_exact_ranges +04812_nested_member_subcolumn_unrewritten_part +04812_non_constant_rhs_in_non_nullable_element_types +04812_predicate_pushdown_untuple +04812_prewhere_statistics_tautology_last +04812_row_policy_top_k_optimization +04812_tsv_int_leading_zeros +04812_view_if_permitted_else_operator_formatting +04813_allow_statistics_blocks_column_declaration +04813_block_nested_loop_join_routing +04813_eval_union_per_arm_construction_settings +04813_explain_analyze_join_matched_rows_across_chunks_parallel +04813_gcd_codec_hash_signedness +04813_non_constant_rhs_in_without_identifiers +04814_gcd_codec_on_negative_integers +04814_merge_prewhere_bare_column_explain_analyze +04814_non_constant_all_null_tuple_rhs_in +04814_theilsu_window_tiny_entropy +04815_atomic_populate_materialized_view_to_target_rollback +04815_block_nested_loop_join_inner_left +04816_block_nested_loop_join_use_nulls +04816_direct_join_virtual_column +04816_group_by_top_k_abandoned_for_projection +04816_promql_shared_subqueries_materialized +04817_block_nested_loop_join_right_full +04817_constantjoin_replicated_column_use_after_free +04817_filesystem_cache_dashboard_metrics_coverage +04817_logsql_time_offset_and_calendar_rate +04817_time_series_selector_bare_pk_conditions +04817_window_partition_by_aggregate_function_state +04818_block_nested_loop_join_empty_sides +04818_group_by_top_k_desc_evict_only_keeps_heap +04819_block_nested_loop_join_semi_anti +04820_block_nested_loop_join_any +04820_merge_streams_multiplier_overflow +04820_quantile_deterministic_stripe_log +04820_rewrite_in_to_join_prewhere_exists +04821_block_nested_loop_join_spill +04821_kql_datetime_local_utc_and_set_escape +04821_logsql_rate_civil_time_and_transformers +04821_parse_remote_description_long_address +04821_postgresql_array_position +04822_block_nested_loop_join_overflow +04822_logsql_numeric_filters_time_validation_and_pack +04822_quantile_deterministic_create_as_select +04823_block_nested_loop_join_optimizer_passes +04823_postgresql_array_position_null +04824_cross_type_non_constant_rhs_in +04824_logsql_exact_numbers_and_timestamp_precision +04824_quantile_deterministic_external_aggregation +04824_view_if_permitted_ast_json_shape +04825_block_nested_loop_join_block_size +04825_non_constant_stateful_rhs_in +04825_quantile_deterministic_alter_add_modify_column +04826_block_nested_loop_join_prepared_storage +04826_logsql_rate_intersection_exact_pipes_and_decimal +04826_parallel_insert_sinks_too_many_parts_self_race +04826_runtime_null_lhs_in_heterogeneous_rhs +04827_merge_table_make_distributed_plan_child_plan +04827_tuple_lhs_non_constant_scalar_rhs_in +04828_block_nested_loop_join_retained_blocks +04828_filter_pushdown_input_type_mismatch +04828_fold_filter_masked_secret_hidden +04828_logsql_nested_global_filter +04828_runtime_null_lhs_in_non_constant_rhs +04828_time64_to_datetime_not_monotonic +04828_view_table_function_ast_json_shape +04829_block_nested_loop_join_build_squashing +04829_mixed_type_non_constant_rhs_in +04830_block_nested_loop_join_probe_window +04830_columns_cache_rename_and_add_after +04830_logsql_range_infinities_unroll_rate_avg +04833_injective_plus_minus_type_gate +04833_merge_row_policy_in_subquery +04836_bloom_filter_map_fixed_string_constant +04836_nullable_keys_better_hash_external_merge +04836_parenthesized_definitions_attach_partition_from +04836_tree_hash_ast_identity +04836_trivial_group_by_limit_aggregate_functions +04836_valid_until_trailing_characters_rejected +04837_date32_to_datetime64_field_overflow +04837_distributed_plan_window_partition_shuffle +04837_geometry_discriminators_row_binary +04837_trivial_group_by_limit_projection_guards +04838_alter_column_referenced_by_key_or_ttl +04838_cascades_filter_selectivity +04838_distributed_plan_window_shapes +04838_in_subquery_lowcardinality_result_type +04838_index_hint_non_uint8_constant +04838_lazy_materialization_for_join +04838_nested_column_declaration_statistics +04838_overflow_in_no_supertype_non_constant_rhs_in +04838_timeseries_tags_column_contains_all_tags +04838_trivial_group_by_limit_aggregates_profile_events +04839_lazy_materialization_for_join_final +04839_mixed_type_scalar_non_constant_rhs_in +04839_trivial_group_by_limit_aggregate_projection +04839_variant_escape_filename_compact_map_buckets +04840_json_skip_index_combined_subcolumn +04840_trivial_group_by_limit_projection_guards +04841_logsql_subquery_rate_scope +04843_part_minmax_block_columns_setting_widened_merge +04844_join_add_block_after_data_release +04846_bloom_filter_map_keys_values_array_spellings +04846_explicit_null_in_non_constant_rhs_transform_null_in +04846_logsql_pooled_sum_and_string_stats +04846_materialized_view_target_is_materialized_view +04846_streaming_queries_join_unknown_estimate +04846_tounixtimestamp_datetime64_key_pruning +04847_bloom_filter_map_has_low_cardinality_key +04847_ttl_where_json_subcolumn +04848_logsql_switch_and_numeric_stats +04849_buffer_converted_column_text_index_and_lazy_final +04851_read_in_order_virtual_row_buffering_deferred_sources +04852_statistics_part_pruning_no_subquery_execution +04852_vector_search_distributed_plan_header_order +04854_ie_join_on_array_join_residual +04855_csv_tuple_nested_element_null +04858_missing_column_marker_type_conflict +04859_quantile_interpolated_integer_boundary +04860_space_filling_curve_not_a_key_column +04861_codec_hash_type_derived_params +04869_any_semi_right_join_or_conditions +04869_cascades_read_cost_granule_volume +04869_clear_column_materialized_over_alias +04869_clear_column_materialized_with_block_columns +04869_dpsub_single_table_filter_placement +04869_duplicate_cte_column_aliases +04869_materialized_chain_on_fly_read +04869_materialized_over_alias_column_mutation +04869_merge_filter_into_join_non_boolean_condition +04869_mutation_updated_header_compact_readonly_dependency +04869_number_no_supertype_scalar_non_constant_rhs_in +04869_on_fly_mutation_read_set_closure +04869_postgresql_tls_trailing_arguments +04869_skip_index_stale_type_absent_column +04869_sparse_tuple_element_missing_column_read +04870_filter_push_down_non_boolean_condition +04870_skip_index_stale_type_metadata_only_alter +04870_tuple_lhs_bare_scalar_column_rhs_in +04871_in_tuple_single_key_rewrite_in_to_join +04871_skip_index_stale_type_subcolumns +04871_text_index_lazy_always_false_on_cancel +04871_tuple_lhs_string_column_rhs_in +04871_vector_search_no_rescoring_vector_column_consumers +04872_bloom_filter_array_fixed_string_pruning +04872_running_concurrency_join_conversion_wrong_results +04873_tuple_subcolumn_pushdown_case_insensitive_collision +04874_running_concurrency_query_result_cache +04876_running_concurrency_short_circuit +04881_low_cardinality_default_value_needle +04882_deferred_filter_after_final_bare_column +04885_enum_empty_label_json_subcolumn_index +04888_distributed_plan_window_const_partition +04891_agg_if_combinator_null_fold +04891_distributed_plan_join_runtime_filters +04891_explain_analyze_join_estimation +04891_logsql_typed_fields_review +04891_mergetree_index_respects_row_policy +04891_optimize_inverse_dictionary_lookup_single_key_tuple +04891_query_condition_cache_join_by_pk_ranges +04891_query_log_join_columns +04891_streaming_queries_watermark_simple +04891_time_window_functions +04891_time_window_functions_wrapped_interval_overflow +04891_timeseries_lowcardinality_id +04892_array_join_with_grouping_sets_distributed +04892_ast_json_removed_window_view_state +04892_distributed_plan_join_runtime_filters_edge_cases +04892_time64_accurate_cast +04893_comparison_can_throw_replicated_columns +04893_kafka_num_consumers_hard_limit +04893_obfuscate_ast_json_shape +04893_time64_to_time64_accurate_cast +04894_distributed_plan_runtime_filter_nested_join_placement +04894_in_subquery_lowcardinality_type +04894_lazy_materialization_shadowed_constant +04895_distributed_plan_runtime_filter_admission +04896_distributed_plan_runtime_filter_tree_delivery +04896_inconsistent_ast_view_subquery_paren_round_trip_1941_1bfa +04896_orfill_merge_group_by_overflow_any +04897_distributed_plan_rollup +04897_distributed_plan_runtime_filter_exact_string_transport +04897_key_condition_multi_atom_tuple_membership_packed +04897_point_in_polygon_primary_key_invalid_polygon +04897_promql_offset_in_range_selector +04898_distributed_plan_grouping_function +04899_distributed_plan_cube +04900_distributed_plan_grouping_sets +04901_distributed_plan_group_by_modifiers_corner_cases +04903_merge_join_alias_column_resolution +04903_nonliteral_const_aggregate_function_parameter +04903_not_has_secondary_index +04903_quantile_datetime64_boundary_no_ub +04903_query_parameters_in_subquery_settings +04903_text_index_direct_read_join_header +04903_time64_values_conversion +04904_alter_two_modify_column_same_column_default +04904_explain_analyze_join_parallel_hash_unique_keys +04904_low_cardinality_missing_column_read +04904_propagate_predicate_across_equi_join_throwing_predicate +04904_quantile_decimal_wide_boundary_no_ub +04906_final_prewhere_special_columns_kept_positions +04907_bloom_filter_fixed_string_constant_array_scalar +04907_group_by_top_k_stable_string_erase_keys +04907_obfuscate_datetime_full_range +04907_partition_key_shadowed_by_array_join +04907_to_decimal_string_rounding_carry +04907_vector_search_no_rescoring_row_policy +04908_asof_join_unsupported_algorithm_error +04908_group_by_top_k_max_k_cap +04908_json_each_row_lowercase_field_names +04908_logsql_review_followups +04908_max_table_size_settings +04908_merge_generate_random_limit_num_streams +04908_optimize_final_empty_table +04908_query_parameters_query_level_settings +04909_distinct_projection_order_by_non_distinct_column +04909_final_split_layers_duplicate_header_columns +04909_group_by_top_k_freeze_after_eviction_burst +04909_key_condition_null_under_not +04909_merge_file_num_streams_limit +04909_s3_globbed_path_implicit_partition_strategy +04910_group_by_top_k_long_serialized_erase_keys +04910_h3_array_building_no_quadratic_realloc +04910_max_table_size_merge +04910_merge_tinylog_num_streams_limit +04911_max_table_size_patch_parts +04911_query_plan_aggregation_bucket_top_k +04913_drop_refreshable_mv_not_ignored +04918_s2_get_neighbors_reserve_once +04919_dictionary_validate_primary_key_type_low_cardinality +04920_timeseries_drop_low_sorting_name +04925_array_reduce_in_ranges_zero_size_state +04926_block_nested_loop_join_explain_analyze +04926_cascades_aggregation_pushdown +04926_distributed_plan_read_in_order +04926_explain_analyze_sql_security_view_join +04926_grouping_specializations_validation +04926_intra_column_stream_filename_collision +04926_merge_log_num_streams_limit +04926_nullable_void_keys_better_hash_external_merge +04926_promql_clamp_round_argument_errors +04926_quota_interval_missing_comma +04926_system_statements +04926_time_to_date_not_monotonic +04927_cascades_aggregation_pushdown_correctness +04927_date_preimage_result_correctness +04927_distributed_plan_read_in_order_array_join +04927_kql_review_regressions +04927_materialized_recompute_stage_mutation_version +04927_system_documentation_statements +04927_uniq_injective_tuple_nullable +04930_jit_compiled_if_date_to_datetime +04930_query_condition_cache_non_deterministic_virtual_columns +04935_text_index_lazy_alter_conversion +04945_loop_over_table_expression_without_columns +04947_modify_order_by_reverse_key_direction +04947_modulo_partition_key_alter_partition +04948_distributed_plan_runtime_filter_mixed_local_remote +04949_distributed_plan_runtime_filter_receiver_no_lingering +04950_distributed_plan_runtime_filter_delivery_from_join_stage +04950_minmax_count_projection_unusable_bound +04951_union_distinct_preliminary_distinct +05019_async_insert_json_max_dynamic_subcolumns_control_on_parsing +05019_asynchronous_metrics_key_values +05019_date_time_overflow_behavior_from_string +05019_group_by_top_k_compatibility +05019_join_shard_by_pk_ranges_pruned_side +05019_merge_url_num_streams_limit +05019_settings_constraints_nested_settings_clamp +05019_time_series_recent_samples_table +05019_ttl_tuple_datetime_overflow +05020_merge_stripe_log_num_streams_limit +05021_distributed_plan_read_locally_pruned_part +05021_json_max_dynamic_subcolumns_in_parsing_nested_objects +05021_trino_conformance +05022_json_max_dynamic_subcolumns_in_parsing_after_default_rows +05022_trino_conformance_presto_scalar +05023_86045_lambda_argument_capture_alias +05023_adaptive_codec_non_candidate_fallback +05023_arrow_type_hints_reordered_wrapped_nested +05023_cascades_grouping_sets_distributes +05023_correlated_subquery_equivalence_type_conversion +05023_dictionary_source_descriptions +05023_fold_filter_materialize_shared_nodes +05023_ie_join_selectivity_condition_choice +05023_insert_select_duplicate_column_structure_hint +05023_join_equi_key_pushdown_session_timezone +05023_join_several_disjuncts_right_keys +05023_merge_engine_projection +05023_recursive_cte_referencing_another_recursive_cte +05023_set_index_expression_widened_operand +05023_trino_conformance_tempto +05023_ttl_array_datetime_overflow +05023_ttl_group_by_lowcardinality_string_key +05023_union_subquery_query_level_settings +05023_variant_arena_deserialize_bad_discriminator +05024_aggregate_state_version_parallel_marshalling +05024_binary_string_literal_uninitialized_byte +05024_codec_gate_settings_match_registered_codecs +05024_datetime64_or_null_zero_precision +05024_dictionary_layout_descriptions +05024_jemalloc_arena_bins +05024_max_table_size_attach_partition +05024_mv_alias_in_where_in +05024_obfuscate_nested_union_seed_query_cache +05024_time_series_extract_tag_empty_input +05024_totime_copied_column_expression_consistency +05024_tpch_join_order_plans_aggregation_pushdown +05024_trino_conformance_impala +05024_ttl_nullable_tuple_datetime_overflow +05025_aggregate_state_version_in_column_views +05025_group_by_top_k_partial_aggregation_sort_pass_through +05025_group_concat_window_sparse_tuple +05025_parquet_footer_read_size +05025_time_accurate_cast_matches_time64 +05025_union_subquery_explicit_query_cache +05026_distributed_plan_passthrough_sort_column +05026_obfuscate_additional_result_filter +05026_time64_values_date_overflow_behavior +05026_time_series_recent_samples_default +05027_read_wkb_deep_nesting +05027_uniq_state_version_64bit_hashes +05028_column_alias_equals_table_alias +05028_json_merge_patch_deep_nesting +05028_randconstant_alias_common_subexpression +05028_trino_dialect_icu_base64 +05029_columns_cache_comment_keeps_cache +05029_correlated_subquery_materialized_in_set +05029_max_table_size_replace_partition +05029_merge_bounded_engines_num_streams +05029_not_has_fixed_string_key_condition +05029_on_fly_mutation_sample_factor +05029_remote_description_deep_braces +05029_timeseries_to_grid_duplicate_timestamps +05029_totime_constraint_expression_consistency +05029_unused_conflicting_aliases +05030_ml_method_malformed_state +05030_timeseries_group_array_duplicate_timestamps +05031_resample_combinator_overflow +05032_group_uniq_array_malformed_state +05033_lazy_materialization_column_function_structure_equals +05034_lazy_materialization_column_function_set_capture +05035_stream_cursor_deep_nesting +05037_key_condition_multi_atom_negated_curve_group +05037_propagate_predicate_across_equi_join_in_set +05038_function_composition_operator +05038_in_empty_set_array_join +05038_join_reorder_merged_expression_shadowing_input +05038_lwu_v2_reverse_sorting_key +05039_placeholders_partial_application +05041_cast_keep_nullable_low_cardinality_target +05042_array_membership_null_map +05042_concurrent_hash_join_memory_limit +05042_correlated_subquery_equivalence_type_conversion_2 +05042_fuse_filter_array_join_left_distributed +05042_group_by_top_k_shared_boundary +05042_ie_join_selectivity_stats_edge_cases +05042_incremental_refreshable_mv_validation +05042_logsql_typed_text_pipes_and_numeric_spellings +05042_query_log_join_columns_more_cases +05042_rename_full_database_error_order +05042_streaming_queries_lazy_materialization +05042_streaming_queries_watermark_filter_push_down +05042_system_documentation_full_system_table_pages +05042_text_index_merge_streaming_encode +05042_wide_integer_128_narrow_division +05043_array_membership_null_map_text_index +05043_columns_cache_text_index_fallback +05043_concurrent_hash_join_single_join_memory_limit +05043_correlated_subquery_substitution_usage_restriction +05043_hop_window_end_past_datetime_range +05043_memory_prewhere +05043_merge_read_in_order_prefix_within_sorting_key +05043_not_in_value_position_key_condition +05043_regexp_anchored_literal +05043_statement_documentation_related_sections +05043_trino_conformance_presto_scalar2 +05043_window_partition_by_float_scatter +05044_bloom_filter_array_in_empty_array +05044_clear_column_materialized_by_merge +05044_deeply_nested_field_comparison_linear +05044_distributed_plan_with_fill +05044_lower_array_join_function +05044_memory_trivial_count +05044_propagate_predicate_query_condition_cache +05044_query_log_join_columns_direct_rocksdb +05044_time_time64_strict_in +05044_top_k_dynamic_filtering_float_special_values +05044_trino_conformance_presto_scalar3 +05045_86045_lambda_argument_niladic_function_alias +05045_backup_uuid_not_user_settable +05045_cascades_aggregation_pushdown_merge_local +05045_deferred_filters_after_final_header_order +05045_empty_in_set_short_circuit +05045_function_composition_udf_name +05045_group_uniq_array_8bit_bitmap +05045_identifier_parsed_as_literal_quoting +05045_index_analysis_more_parts_than_threads +05045_join_order_dpsub_fallback_state +05045_memory_prewhere_row_policy +05045_merge_tree_analyze_indexes_unknown_optimization +05045_min_max_aggregation_from_basic_statistics +05045_not_has_cross_type_key_condition +05045_or_null_division_subquery_wrap_no_lost_null +05045_preliminary_distinct_abandoning +05045_query_condition_cache_lambda_nondeterministic +05045_query_log_join_columns_multiplicity +05045_read_in_order_normal_projection_fixed_key +05045_statistics_null_count_part_pruning +05045_totime_alter_payload_expression_consistency +05045_trino_dialect_semantics +05045_uniq_state_version_foreach_map_combinators +05046_aggregator_array_combinator_empty_range_ubsan +05046_cascades_aggregation_pushdown_merge_shuffle +05046_collect_sets_url_named_collection_parameterized_view +05046_create_token_parser +05046_creating_set_deduplication_abandoning_event +05046_distributed_plan_private_preview_tier +05046_json_cached_serialization_compact_wrapped +05046_minmax_index_nested_bool +05046_query_log_spilled_to_disk_needs_a_write +05046_trino_dialect_review_regressions +05047_adaptive_codec_size_substreams +05047_cascades_aggregation_pushdown_merge_spill +05047_coalescing_merge_tree_map_lowcardinality_key +05047_date_to_datetime_monotonicity_pruning +05047_distributed_plan_finished_stages_drain +05047_external_distinct_stable_spill_order +05047_lwu_patch_part_packed_storage_read +05047_projection_parts_files_column +05047_promql_selector_read_parallelism +05047_query_log_join_algorithm_switch +05047_streaming_queries_watermark_without_block_columns +05047_totime_legacy_select_column_names +05048_cascades_aggregation_pushdown_correctness_2 +05048_date_to_datetime_monotonicity_order_and_edges +05048_external_distinct_constant_columns +05048_function_composition_scoping +05048_hash_join_stored_block_registration_fault +05048_intersect_except_subquery_query_level_settings +05048_merge_tree_setting_of_a_table_under_either_name +05048_not_has_nested_mixed_sign_key_condition +05048_parse_iso8601_duration +05048_projection_selected_over_read_in_order_limit +05048_statistics_json_null_subcolumn_pruning +05048_sum_if_to_count_if_low_cardinality_nullable +05048_sum_kahan_conditional_row_offset +05048_time64_datetime64_strict_in_scale_reduction +05048_totime_legacy_mutation_expressions +05048_xgboost_layout_parameter_validation +05049_external_distinct_non_key_columns +05049_obfuscate_nested_intersect_except_seed_query_cache +05049_projection_shorter_sort_prefix_than_pk +05049_totime_legacy_create_as_nested +05050_key_condition_nan_in_container_constant +05052_tostring_two_args_not_injective_in_group_by +05053_key_condition_multiple_key_columns_per_condition_setting +05053_running_accumulate_short_circuit +05054_adaptive_codec_float_alp +05054_cascades_aggregation_pushdown_join_subtree +05054_formatdatetime_lowcardinality_timezone +05054_function_composition_name_and_alias_priority +05054_injective_plus_minus_type_gate_plan_shape +05054_join_key_common_subtype_tuple_nullable_element +05054_key_condition_multi_atom_exact_ranges +05054_nullable_key_todate_monotonicity +05054_query_log_join_columns_view_rebuilds +05054_small_parts_min_count_optimize_aggressive +05054_sparse_column_nondeterministic_function +05054_storage_alias_materialize_ttl +05054_streaming_queries_count_not_from_metadata +05054_timeseries_group_array_simple_aggregate_function +05054_timeseries_to_grid_array_of_pairs +05054_xgboost_prediction_accuracy +05055_adaptive_codec_untyped_substreams +05055_aggregate_state_bulk_deserialization_overflow +05055_aggregation_in_order_limit_order_by_prefix +05055_allow_experimental_codecs_obsolete +05055_array_intersect_nullable_argument_mix +05055_bitmap_cardinality_intersect_paths +05055_bloom_filter_index_no_negated_functions +05055_cast_literal_null_in_collection +05055_clear_column_ephemeral_materialized +05055_grace_hash_falls_back_without_spill_threshold +05055_group_by_zero_row_block +05055_jit_float_to_integer_cast +05055_join_disjunction_push_down_reaches_prewhere +05055_json_native_flattened_paths_memory_tracking +05055_key_condition_nan_normalized_constant +05055_like_perfect_suffix_escape +05055_map_combinator_duplicate_key_state +05055_memory_prewhere_added_column +05055_merge_past_multi_partition_update +05055_min_max_aggregation_from_statistics_nan +05055_normalized_query_hash_unordered +05055_not_has_tuple_layout_and_variant_key_condition +05055_obfuscate_create_table_construction_settings +05055_optimize_or_like_chain_end_anchor +05055_query_log_join_columns_same_shape_joins +05055_string_filters_during_scan_merge_tree +05055_string_filters_move_to_prewhere +05055_timeseries_deserialize_size +05055_trivial_group_by_limit_aggregates_external_aggregation +05055_xgboost_integer_feature_keys +05056_86045_nested_alias_lambda_argument_capture +05056_array_intersect_nullable_null_presence +05056_cast_literal_low_cardinality +05056_grace_hash_memory_spill_scheduler +05056_jit_bit_swap_last_two_argument_type +05056_map_combinator_state_stranded_on_throw +05056_query_log_join_columns_recursive_cte +05056_xgboost_backup_restore +05057_memory_prewhere_in_subquery +05057_query_log_join_columns_loop_table_function +05057_time_series_alter_setting_keeps_other_settings +05057_time_series_read_aggregation_in_order +05058_max_joined_block_size_rows_zero_with_bytes +05058_query_log_join_columns_nested_rebuilt_pipelines +05059_aggregate_function_state_with_low_cardinality_argument +05059_array_index_accurate_numeric_comparison +05059_conversion_wrap_around_monotonicity +05059_convert_column_to_type_bool_identity +05059_dict_join_get_context_expired_remote_subquery +05059_distributed_plan_fallback_forced_projection +05059_formatDateTime_extralong_timezone +05059_full_sorting_merge_join_output_order +05059_has_enum_array_by_name +05059_hash_join_gather_count_only +05059_injective_decoding_functions +05059_join_conversion_nondeterministic_lambda +05059_kql_range_count_int256_min +05059_limit_after_view_order_by_pushdown_inner_range +05059_lwu_patch_spanning_base_parts_v1 +05059_minmax_count_projection_after_alter_column +05059_parquet_timestamp_to_time64_no_stats_pruning +05059_prometheus_query_empty_aggregation_setting +05059_promql_empty_by_group +05059_query_condition_cache_final_bug93787 +05059_regexp_trailing_backslash +05059_storage_read_output_resize_clamped_to_max_threads +05059_system_log_common_columns +05059_text_index_direct_read_pending_mutation +05059_text_index_lazy_multi_block_windows +05059_text_index_posting_list_codec_pfor +05059_time_series_create_as_keeps_settings +05059_timeseries_sum_avg_non_finite +05059_top_k_dynamic_filter_shares_prewhere +05059_user_query_parameter_identifier +05059_vector_search_bug117723 +05060_agg_if_null_map_span +05060_array_join_in_where_blocks_numbers_limit_pushdown +05060_columns_cache_multi_block_range +05060_database_max_tables_rename_inner_tables +05060_enum_in_variant_dynamic_in_set +05060_external_distinct_non_comparable_keys +05060_grouping_function_rollup_cube_constant_key +05060_lift_up_array_join_keeps_nesting_order +05060_limit_after_view_order_by_pushdown_outer_range +05060_logical_functions_constant_float_argument +05060_map_enum_key_subcolumn_numeric +05060_nan_in_primary_key +05060_nested_member_subcolumn_cleared_column +05060_text_index_posting_list_codec_size +05060_to_unix_timestamp_date_key_wrap +05060_uniq_to_count_nullable_and_group_by_modifiers +05060_where_and_negative_constant_72577 +05061_key_condition_signed_zero_transform +05061_map_enum_key_bloom_filter +05061_query_log_settings_when_query_start_is_not_logged +05062_extract_greedy_prefix_occurrence +05062_has_enum_array_bloom_filter +05062_limit_after_sorting_properties_across_streams +05063_key_transform_tuple_key_in_set +05063_limit_after_contextual_keywords +05064_lift_up_array_join_nondeterministic_filter +05064_limit_after_with_fill_interpolate +05066_limit_after_merge_join_header_rewrite +05066_subsecond_extractors_primary_key_monotonicity +05067_join_condition_merge_nondeterministic +05069_reject_array_join_in_check_constraint +05070_clone_as_copies_constraints +05070_limit_after_correlated_boundary +05070_merge_expression_into_join_nondeterministic +05071_alter_constraint_array_join_always_rejected +05071_limit_after_count_scalar_early_short_circuit +05072_case_with_expression_nullable_enum_117206 +05072_limit_after_json_ast_invariants +05073_column_ttl_recompute_materialized +05073_limit_after_distinct_on_duplicate_range +05073_to_hour_to_minute_epoch_offset_fast_path +05073_ttl_array_join_rejected +05074_check_constraint_array_join_rejected +05074_limit_after_boundary_alias_format +05074_materialize_ttl_recompute_materialized +05075_bloom_filter_index_array_nullable +05075_limit_after_with_ties_after_limit_by +05075_materialize_ttl_materialized_extra_inputs +05076_empty_container_cast_to_variant +05076_explain_analyze_aggregation_memory +05076_external_distinct_preliminary_policy +05076_join_order_single_table_filter_placement +05076_json_lazy_type_hints_projection_safety +05076_limit_after_explain_actions +05076_limit_offset_overflow_numbers_like +05076_materialize_ttl_materialized_skip_index +05076_promql_fused_aggregation_pair +05076_promql_label_manipulation_label_names +05076_qbit_group_by +05076_row_policy_underlying_storages +05076_streaming_queries_concurrent_pipeline_removal +05076_text_index_in_set_without_elements +05077_external_distinct_memory_limit +05077_join_runtime_filter_skip_saturated_bloom_filter +05077_json_lazy_type_hints_ttl_safety +05077_promql_quantile_prefer_column_alias +05077_statistics_unknown_atom_and_merge +05077_text_index_in_storage_set +05078_external_distinct_equality +05078_text_index_in_storage_set_serialized_plan +05079_parse_aggregate_function_typed_param +05079_statistics_unknown_atom_order_independence +05080_ill_typed_skip_index_expression +05080_statistics_index_hint_not_counted_twice +05081_statistics_not_over_absorbed_unknown +05081_text_index_fixed_string_constant +05082_distinct_in_order_signed_zero +05082_field_visitor_dump_rare_types +05082_regexp_rewrite_quoted_literal +05082_statistics_not_over_unknown_atom +05083_nullable_key_exact_count +05083_projection_calculation_with_analyzer +05083_statistics_not_over_constant +05084_statistics_not_over_absorbing_clause_reused +05085_limit_with_ties_after_limit_by +05086_column_shadowing_array_size_subcolumn +05087_create_view_inferred_suspicious_type +05088_merge_drops_shadowed_column_stream +05089_constraints_in_list_incomparable +05089_low_cardinality_default_arguments_throwing_functions +05089_ttl_group_by_set_sorting_key +05090_correlated_positional_tuple_element +05090_to_date_conversion_monotonicity_wrap +05091_rewrite_in_to_join_repeated_alias +05092_low_cardinality_overload_resolution +05093_any_join_to_semi_anti_algorithm_check +05093_time_filter_preimage_type_maximum +05095_correlated_scalar_subquery_twice +05095_patch_parts_total_rows +05096_aggregation_bucket_top_k_array_join +05096_regexp_character_class_literals +05097_jit_int128_signedness +05097_regexp_fixed_prefix_flag_group +05098_conflict_detector_preserves_strictness +05098_defer_partition_pruning_final_float +05098_extract_flag_group_not_a_capture +05098_time_zone_fixed_offset_granularity +05099_conflict_detector_outer_join_join_use_nulls +05099_datetime_set_constant_range +05099_dict_get_hierarchy_not_injective +05099_divide_decimal_single_digit +05099_fuse_quantile_integer_level +05099_index_analysis_through_array_join +05099_join_shard_by_pk_prewhere_sorting_key +05099_lift_up_array_join_nondeterministic_lambda +05099_metric_log_bucketed_by_default +05099_parquet_uuid_no_minmax_pruning +05099_query_condition_cache_formatdatetime_settings +05099_rewrite_aggregate_function_with_if_nullable_condition +05099_vector_search_limit_multiplier_overflow +05102_storage_join_any_to_semi_algorithm_check +05103_index_hint_merge_table_virtual +05104_json_cached_serialization_compact_presence +05104_timeseries_changes_nan_bits +05104_ttl_group_by_parenthesized_key +05104_uniq_theta_compressed_state +05105_correlated_subquery_with_outer_filter +05105_sequence_match_datetime64 +05107_correlated_subquery_creating_sets +05108_interpolate_keeps_set_placeholder +05109_lcm_wide_integer_sign +05110_reverse_utf8_not_injective +05111_array_intersect_null_in_all_arrays +05111_count_from_set_table +05111_local_read_throttler_page_cache +05111_recursive_cte_union_branch_propagation +05111_time_filter_preimage_year_month_timezone_transition +05113_arithmetic_monotonicity_nan_endpoint +05114_read_in_order_decreasing_function_nan +05117_readd_column_after_drop_conversion +05136_117819_exact_count_nan_in_tuple_key +05136_alter_modify_setting_default +05136_analyzer_cannot_be_disabled +05136_array_aggregation_constant_lambda_empty_arrays +05136_ast_json_clone_as_shape +05136_external_distinct_row_limit_and_hint +05136_hash_join_match_stats_no_emit_probe +05136_hashed_array_dictionary_bytes_allocated +05136_interpolate_clause_query_parameters +05136_key_condition_lowcardinality_key_over_merge +05136_limit_offset_overflow_no_pushdown +05136_merge_trivial_count_row_policy +05136_top_column_in_view_show_create +05137_array_starts_with_variants +05137_convert_join_to_in_correlated_subplan_reference +05137_delete_query_parameter_predicate +05137_external_distinct_serialized_key_round_trip +05137_fuse_row_conditions_into_array_join +05137_hash_join_gather_basic +05137_idna_0_5_5_behaviour +05137_inplace_set_build_fault_injection_scope +05137_key_condition_multi_atom_tuple_membership_setting_off +05137_natural_join_ephemeral_key +05137_port_rfc_ipv6_host +05137_range_hashed_dictionary_bytes_allocated +05137_rewrite_aggregate_function_with_if_short_circuit +05137_substring_index_large_uint64_count +05138_conflict_detector_degenerate_predicate +05138_forbid_mergetree_introspection_table_functions_as_engine +05138_global_in_max_subquery_depth +05138_memory_prewhere_read_rows +05138_merge_child_row_policy_trivial_count +05138_natural_join_alias_column_order +05138_with_fill_step_below_precision +05139_array_join_reuse_nested_columns +05139_join_partial_push_down_nondeterministic_lambda +05139_join_using_merged_key_nullable_tuple_element +05139_prune_array_join_columns_subquery +05140_column_cut_shared +05140_external_distinct_merge_unique_chunks +05140_mergetree_index_key_type_after_alter +05140_t64_decode_narrow_signed_tails +05140_to_last_day_of_at_date_maximum +05141_array_index_simd_numeric +05141_external_distinct_final_merge +05141_http_dictionary_hide_header_values +05141_lwu_parenthesized_sorting_key +05141_nondeterministic_functions_with_constant_arguments +05141_remove_expired_authentication_methods +05141_row_policy_after_final_folded_lambda +05141_t64_one_bit_roundtrip +05141_time_series_select_join_settings +05142_apply_lambda_join_using_projection_name +05142_lwu_trivial_count +05142_timeseries_timestamp_of_min_max_functions +05144_join_disjunctions_push_down_nondeterministic +05147_ngrambf_like_escaped_backslash_run +05149_key_condition_datetime64_scale_cast_key +05150_kv_key_filter_date_family_literal +05151_generate_ulid_constant_argument +05153_columns_cache_retained_memory_accounting +05153_has_named_tuple_order_relaxed_key_condition +05153_is_valid_ascii_simd_boundaries +05153_jit_decimal_integer_conversion_overflow +05153_join_using_projection_alias_virtual_column +05153_lambda_stays_above_array_join +05153_optimize_extract_common_expressions_primary_key +05153_prefer_column_name_to_alias_ambiguous_join +05153_string_filters_same_column_prewhere_guard +05153_text_index_mergeTreeTextIndex_create_table_as +05153_trivial_group_by_limit_aggregates_single_stream_spill +05153_uniq_state_version_tuple_combinator +05153_variant_truncated_compact_discriminators +05153_vector_search_quantized_codes_deferred_row_policy +05153_virtual_row_widened_prefix_constant_order_by +05154_prefer_column_name_to_alias_compound_ambiguous +05154_semi_join_empty_right_side +05154_subquery_duplicate_use_query_cache +05155_columns_cache_column_added_after_part +05155_obfuscate_schema_only_validation +05156_big_integer_to_datetime_overflow +05157_86045_in_flight_alias_lambda_argument +05157_read_in_order_transform_to_nan +05158_decimal_integer_operand_overflow +05159_join_shard_by_pk_ranges_float_nan +05161_column_ttl_skip_untouched_blocks +05161_group_array_insert_at_order_by +05161_json_type_non_utf8_string +05161_least_greatest_const_columns +05161_mv_set_operation_metadata_reparse +05161_pk_tuple_nested_nan_null +05162_map_contains_value_to_subcolumn +05162_stochastic_regression_order_by +05163_bloom_filter_array_date_literal +05164_key_condition_lossy_constant_not_equals +05165_merge_expressions_non_deterministic_array_join +05166_limit_by_const_with_totals_joined_subquery +05166_nondeterministic_nested_lambda_constant_folding +05166_subcolumn_rewrite_nullable_element_type_mismatch +05170_jit_cast_nullable_to_non_nullable +05173_url_rfc_ipv6_with_ipv4_tail +05174_nullable_tuple_join_key_with_null_element +05175_comment_of_table_created_from_table_function +05175_distributed_plan_index_analysis_once +05175_hash_of_aggregate_function_state_column +05175_ie_join_selectivity_types_nulls_ties +05175_index_hint_null_constant +05175_lwu_delete_read_rows_wide_part +05175_map_has_to_subcolumn +05175_materialize_statistics_session_gate +05175_mutation_drops_shadowed_column_stream +05175_regr_aggregate_functions +05175_selectivity_estimator_type_mismatch +05175_tokens_split_by_string_block_boundaries +05175_trim_empty_chars_is_a_function_call +05175_truncate_all_tables_merges +05175_yyyymmddhhmmsstodatetime64_pre_epoch_fraction +05176_logsql_oversized_integers_and_stream_id +05176_map_keys_values_filter_only +05176_tokens_split_by_non_alpha_corner_cases +05177_tokens_split_by_string_corner_cases +05178_text_index_byte_tokenizers_corner_cases +05179_regr_aggregate_state_serialization +05179_table_backed_set_out_of_range +05181_fuzz_bits_and_generate_ulid_constant_arguments +05182_arithmetic_monotonicity_nan_const_dividend +05182_arrayJaccardIndex_coerced_types +05182_array_intersect_overflowed_element_order +05182_collapsing_stable_sort_on_insert +05182_columns_matcher_alias_columns +05182_join_order_conflict_detector_cast_null_propagation +05182_lightweight_update_materialized_cte_in_subquery +05182_limit_shrinks_block_size_with_array_join +05182_materialized_view_alter_column_comment +05182_materialized_view_alter_column_comment_mixed +05182_materialized_view_alter_column_comment_refreshable +05182_modify_setting_default_engine_checks +05182_prewhere_column_sizes_pruned_parts +05182_prewhere_partition_statistics +05182_projection_positional_arguments_with_analyzer +05182_replace_regexp_all_inline_multiline +05182_row_policy_after_final_lambda_nondeterminism +05182_skip_index_order_after_partition_pruning +05182_time_series_id_type_setting +05183_decimal_datetime64_stable_sort_on_insert +05183_join_order_conflict_detector_direct_key_null_extension +05183_prewhere_statistics_pruned_parts +05183_prewhere_statistics_throwing_partition +05183_uniq_multi_place_prefetch +05183_unreferenced_with_array_join_limit_pushdown +05185_readonly_toggle_loads_outdated_parts +05186_to_day_of_week_mode_monotonicity +05187_read_in_order_key_type_setting_divergence +05188_map_subcolumn_shadowed_by_physical_column +05189_count_bytes_in_filter_with_null +05189_update_cte_out_of_scope_database +05192_read_in_reverse_order_final_merge_table +05193_top_k_through_join_final_reverse_order +05194_array_shift_nullable_default_compatibility +05194_time_zone_libc_names +05196_modulo_mixed_sign_operands +05198_json_skip_index_typed_path_subcolumn +05202_mutation_of_attached_part_with_dropped_column +05205_vector_search_lightweight_delete_limit +05207_nullable_enum_string_search +05210_array_concat_single +05210_array_except_empty +05210_columns_cache_nested_member_offsets +05210_empty_serialized_aggregate_state_key +05210_forbid_timeseries_target_table_functions_as_engine +05210_join_runtime_filter_float_nan +05210_lightweight_update_materialized_cte_in_ignore +05210_lower_upper_utf8_mixed_ascii +05210_map_contains_value_case_insensitive_collision +05210_nullable_tuple_element_subcolumn_rewrite +05210_numeric_indexed_vector_repeated_index +05210_prewhere_column_sizes_compact_pruned_parts +05210_quantile_parameter_type_name_round_trip +05210_readonly_settings_rollback +05210_sfc_uint64_index_analysis +05210_skip_index_type_from_alter_session_setting +05210_timeseries_present_to_grid +05210_ttl_delete_vertical_merge_replacing +05211_aggregate_parameter_type_name_round_trip +05211_apply_transformer_format_escaping +05211_array_filter_uniform +05211_array_slice_identity +05211_columns_cache_write_estimate_uncompressed +05211_json_compact_shared_path_cache +05211_map_contains_like_to_subcolumns +05211_numeric_indexed_vector_multiply_divide_zero_result +05211_promql_present_over_time_absent_over_time +05211_ttl_delete_vertical_merge_collapsing +05212_compression_codec_zstd_long_range_mode +05212_isnull_non_canonical_null_map +05212_join_shard_by_pk_ranges_pruned_parts +05212_lambda_nondeterminism_filter_push_down +05212_map_has_keys_case_insensitive_collision +05212_numeric_indexed_vector_scalar_overflow_all_ops +05212_reader_executor_max_size +05212_sequence_match_trailing_actions_past_end +05212_timeseries_old_version_time_series_outer_column +05212_timeseries_quantile_to_grid +05212_ttl_delete_vertical_merge_other_ttl_families +05212_url_hierarchy_boundaries +05213_array_min_max_index +05213_compression_codec_parameter_errors +05213_limit_by_injective_unwrap_stops_at_group_by_key +05213_promql_quantile_over_time +05213_reverse_string_column +05213_some_keyword_quoting +05213_substring_identity +05213_to_valid_utf8_simdutf +05214_columns_cache_write_estimate_refiner +05214_functions_type_error_branches +05214_key_analysis_zoneless_datetime_session_tz +05214_timeseries_linear_regression_to_grid +05215_columns_cache_granule_entries +05215_h3_to_center_child_error_branches +05215_promql_predict_linear +05215_ttl_delete_vertical_merge_set_built_once +05216_columns_cache_json_dynamic_const +05216_join_order_greedy_non_equi_over_cross +05216_mergetree_minmax_topk_handle_ties +05217_columns_cache_sparse_nullable_null_map +05217_external_distinct_nested_keys +05217_inverse_dictionary_lookup_conversion_semantics +05217_join_cross_type_equi_key_pushdown_use_nulls +05217_mutation_datetime_reversed_and_in_clause +05217_reverse_short_paths +05217_text_index_map_lowcardinality_subcolumn_cast +05217_timeseries_tags_text_index +05218_allow_executable_tables +05218_alter_reset_setting_implicit_indices +05218_analyze_indexes_malformed_optimization_args +05218_analyzer_column_transformer_kind_isequal +05218_analyzer_window_node_dump_tree +05218_any_function_subquery_quoting +05218_autopr_set_building_plan_is_left_alone +05218_cast_literal_canonical_text +05218_convert_outer_join_to_inner_join_transitively +05218_external_distinct_serialized_key_identity +05218_force_and_prefer_optimize_projection +05218_grace_hash_break_stops_delayed_buckets +05218_ie_join_selectivity_pseudo_band +05218_inconsistent_ast_window_frame_residue +05218_inverse_dictionary_lookup_key_comparison +05218_join_conversion_assume_not_null +05218_join_use_nulls_lc_key_full_sorting_merge +05218_key_condition_multi_atom_sampling +05218_map_contains_key_value +05218_map_lowcardinality_key_lookup +05218_merge_children_remote_tasks_vs_subquery_sets +05218_named_tuple_metadata_only_alter_subfield_retype +05218_projection_index_filter_polarity +05218_query_plan_aggregation_having_prefilter +05218_set_engine_row_policy +05218_settings_changes_history_placement +05218_short_circuit_compact_logical_masks +05218_streaming_queries_watermark_unordered_rejected +05218_text_index_granule_tail_trimming +05218_text_index_keyvaluepairs_decode_token +05218_text_index_like_dictionary_scan_pruning +05218_time_zone_names_from_database +05218_timeseries_alp_codec +05218_tinylog_read_zero_byte_data_file +05218_trivial_count_sparsity_filter_after_metadata_only_alter +05218_truncate_all_tables_refreshable_mv +05218_uuid_ip_comparison_vectorized +05219_analyzer_interpolate_node_dump_tree +05219_external_distinct_fingerprints +05219_fixed_string_16_comparison +05219_inverse_dictionary_lookup_key_type_boundaries +05219_key_condition_multi_atom_set_candidates +05219_readonly_mixed_alter_rejected +05219_streaming_queries_part_offset +05220_analyzer_query_tree_pass_manager +05220_inverse_dictionary_lookup_simple_key_declared_type +05220_key_condition_multi_atom_disjunction_template +05220_text_index_map_key_wrapped_constant +05221_key_condition_typed_constant_pruning +05221_tokenbf_map_absent_key_fixedstring_needle +05221_top_k_through_join_n_guards +05222_key_condition_multi_atom_whole_tuple_wrapped_set +05223_array_reduce_seeded_aggregate_determinism +05223_collapsing_merge_block_boundary +05223_join_runtime_filters_index_analysis_normal_projection +05223_limit_until_after_start +05223_pk_tuple_nullable_element_bounds +05223_range_glob_total_regexp_bound +05223_streaming_queries_readonly_bounded +05223_system_disable_all_fault_injection_points +05223_text_index_fixed_string_padded_needle +05223_time64_strict_in_scale_reduction +05223_trivial_group_by_limit_aggregates_limit_after_guard +05223_uniq_state_version_arithmetic_and_cast +05224_limit_until_deferred_evaluation +05224_null_safe_join_fixed_keys +05224_trivial_group_by_limit_aggregates_top_k_arbitration +05225_limit_until_stateful_evaluation +05226_ast_json_constraint_expression_argumentless_function +05226_limit_after_evaluation_stops +05227_86045_interpolate_alias_lambda_argument_capture +05227_aggregate_arithmetic_decimal_truncation +05227_array_jaccard_nullable_hashed +05227_ast_fuzzer_no_profile_events_leak +05227_ast_json_sentinel_enum_values +05227_autopr_forced_projection_name +05227_codec_family_name_case_insensitive +05227_column_free_conjunct_join_push_down +05227_columns_cache_variant_added_by_alter +05227_custom_week_monotonicity_column_timezone +05227_final_across_partitions_float_key +05227_format_escaped_braces_59297 +05227_function_composition_alias_dispatch_and_union_scope +05227_in_nan_minmax_pruning +05227_injective_claims_tostring_datetime_and_tofixedstring +05227_inline_view_join_alias +05227_key_condition_datetime64_scale_array_cast_key +05227_key_condition_signed_zero_tuple_transform +05227_lazy_replication_respects_lambda_determinism +05227_load_outdated_parts_retryable_error +05227_max_table_size_rows_shrinking_merge +05227_memory_prewhere_in_subquery_sets_built_in_place +05227_mutation_batch_over_patch +05227_mutation_clears_shadowed_column_stream +05227_nested_correlated_beyond_outer_scope +05227_not_not_has_phrase_text_index_direct_read +05227_part_virtual_column_shadowing +05227_partition_pruning_unevaluable_subexpression +05227_pending_rename_of_nested_leaf +05227_projection_calculation_ignores_additional_table_filters +05227_qbit_one_bit_hamming_distance +05227_query_condition_cache_conversion_settings +05227_replace_regexp_all_multiline_and_empty_tail +05227_replace_regexp_all_nullable_dollar_tail +05227_set_index_dynamic_granule_range +05227_single_step_prewhere_default_column +05227_statistics_cache_per_part +05227_streaming_queries_time_attribute_filter +05227_string_filters_row_policy_guard +05227_timeseries_timestamp_t64_codec +05227_variant_offsets_uninitialized_only_nulls +05227_with_fill_non_finite_bound +05228_day_of_week_monotonicity_extended_dates +05228_index_hint_outer_join_right_side +05228_system_tables_filter_by_in_prunes_enumeration +05229_adaptive_codec_chain +05229_analyzer_column_transformer_alias_equality +05229_array_join_function_nondeterministic_placement +05229_ast_json_foreign_key_declaration_rejected +05229_column_named_from_in_parenthesized_expression +05229_custom_week_explicit_timezone_pruning +05229_logsql_exact_decimal_literals_and_normalized_values +05229_max_table_size_rows_multiple_parts +05229_minmax_index_order_after_modify_column_after +05229_nondeterministic_conjunct_join_push_down +05229_replace_partition_covers_outdated_parts +05229_text_index_local_postings_cache_no_rebuilds +05230_always_false_equals_chain_without_pruning +05230_ast_json_storage_expression_argumentless_function +05230_columns_cache_lazy_materialization_second_pass +05230_day_of_week_monotonicity_paired_weeks +05230_declining_default_arguments_nullable_no_nulls_fast_path +05230_explain_analyze_execution_breakdown +05230_materialized_cte_shared_by_two_ctes_in_set_subquery +05230_parquet_int_signedness_no_minmax_pruning +05230_vector_search_no_rescoring_dotted_column_name +05231_inverse_dictionary_lookup_variant_dynamic_key +05231_timeseries_to_grid_timestamp_scale_conversion +05231_type_tree_walk_reaches_nested_types +05232_accurate_cast_nullable_callers +05232_exclusion_search_unknown_atoms +05232_text_index_lazy_intersection_block_span_rule +05232_timeseries_selector_time_range_conversion +05232_timeseries_selector_time_range_scale +05233_aggregate_function_input_format_values_in_any_format +05233_alias_skipped_by_truncate_all_tables +05233_alter_drop_column_part_without_table_columns +05233_asof_join_nullable_key_lazy_replication +05233_assume_not_null_nullable_partition_key_pruning +05233_constraint_graph_negated_ordered_comparison +05233_dict_get_or_default_const_null_key +05233_direct_join_row_policy +05233_dynamic_adaptor_propagate_exceptions +05233_eval_table_function_explain_ast_optimize +05233_group_by_limit_dynamic_filter +05233_join_conversion_date32_default +05233_json_extract_tuple_duplicate_keys +05233_key_analysis_unconvertible_text_constant +05233_kill_throw_if_noop +05233_lateral_join_ast_json_and_locality +05233_pipeline_stuck_narrow_scatter +05233_promql_min_max_of +05233_promql_result_value_type +05233_query_log_join_columns_scalar_subquery_in_rebuilt_pipelines +05233_string_filters_fixed_string_constant +05233_text_index_lazy_brute_force_early_exit +05233_timezone_name_file_prefix_rejected +05233_uniq_up_to_saturated_hash +05233_update_with_alias_dict_name +05234_aggregate_function_input_format_parquet +05234_alp_codec_random_roundtrip +05234_array_enumerate_fixed_string +05234_array_join_replicated_array_stays_lazy +05234_foreach_streaming_aggregation_batch +05234_generate_random_null_ratio +05234_map_key_lookup_nan +05234_promql_result_timestamp_scale +05234_promql_result_timestamp_type +05234_promql_streaming_aggregation_memory +05234_row_policy_storage_join +05234_subplan_join_estimate_propagation +05234_text_index_lazy_brute_force_narrow_window +05234_text_index_postings_stream_buffer_reads +05235_alter_comment_column_alias_subcolumn +05235_dynamic_json_deep_value_read_stack_guard +05235_processors_profile_log_on_exception +05235_timeseries_to_grid_extreme_parameters +05235_wide_part_compress_block_value_alignment +05236_join_using_with_clause_alias +05236_truncate_all_tables_skip_engines_without_data +05237_alter_modify_query_comment_removed_column +05237_column_ttl_default_expression_partial_block +05237_hash_join_row_store_cache_miss +05237_json_combined_subcolumn_skip_rules +05237_killed_modify_column_nested_collected_type +05237_lateral_join_aggregate_empty_input +05237_merge_table_variant_element_subcolumn +05237_time_series_old_metric_family_name_inner_column +05237_timeseries_first_to_grid_functions +05237_trivial_count_sparsity_filter_stats_after_alter +05238_aggregate_parameter_types_always_printed +05238_analyzer_compatibility_allow_cte_redefinition +05238_array_distinct_decimal +05238_array_reverse_wide_integer +05238_dpsub_conflict_detector_cross_join_kind +05238_enum_to_datetime_overflow +05238_inverse_dictionary_lookup_float_keys +05238_key_condition_multi_atom_tuple_nan_exactness +05238_lateral_join_on_predicate_required +05238_nullable_number_void_group_by_two_level_null_group +05238_skip_index_final_exact_mode_scattered +05238_top_k_primary_key_skip_collation +05239_generate_random_json_merge_tree +05239_key_condition_nan_in_nested_set_values +05239_lateral_join_aggregate_if_combinator +05239_replace_regexp_all_quantifier_after_no_op_element +05240_external_distinct_spill_blocks +05240_to_day_of_week_monotonicity_wrapped_modes +05241_bloom_filter_map_default_value_low_cardinality_nullable_constant +05241_external_distinct_coalescing +05241_groupbitmap_invalid_run_container +05241_lateral_join_buffered_join_overflow_break +05241_low_cardinality_serialized_group_by +05241_lower_upper_ascii_byte_range +05241_mv_source_final_sample_in_subquery_issue_123270 +05241_parquet_hash_filter_output_type_value_space +05241_prometheus_query_timestamp +05241_row_policy_after_final_float_sorting_key +05241_timeseries_mad_to_grid +05241_vector_search_quantize_codec_read_task_subcolumn +05242_external_distinct_limit_remerge +05242_key_condition_negated_wrapped_set_candidates +05242_lateral_join_volatile_functions +05242_subsecond_extractors_every_scale +05242_text_index_preprocessor_lossless_conversion_haystack +05242_time_series_range_max_elements +05243_aggregate_projection_json_required_columns +05243_array_join_element_filter_block_boundary +05243_enum_unknown_literal_key_condition +05243_group_by_top_k_dynamic_filter_nan +05243_jit_bit_shift_rotate_domain +05243_join_runtime_filters_index_analysis_final_noop +05243_key_condition_erased_fixed_string_transforms +05243_key_condition_signed_zero_in_and_array_transform +05243_lateral_join_keyword_as_table_name +05243_low_cardinality_group_by_position_cache +05243_query_log_join_columns_create_populate +05243_query_log_spilled_to_disk_distinct +05243_time_series_deduplication_caches +05243_to_start_of_interval_extended_results_input_type +05244_default_minmax_indices_alter_rename_with_setting +05244_key_condition_sparse_atom_groups +05244_top_k_primary_key_skip_reverse_key +05244_window_functions_lag_lead_default_cast +05245_alter_modify_projection_fixed_granularity_guard +05245_date_time_overflow_behavior_with_fill_datetime64 +05245_key_condition_wrapping_input_dependencies +05254_parse_query_to_json_deep_query_stack_guard +05255_analyzer_identifier_cache_quoted_dotted_alias +05255_and_compare_chain_string_column_interval_bound +05255_array_min_max_index_offsets +05255_filter_output_evaluated_before_its_filter +05255_jit_decimal_scaled_conversions +05255_mutation_scalar_subquery_with_skip_index +05255_set_index_coalesce_rewrite_const_folded_atom +05255_statistics_column_missing_from_part +05255_statistics_part_pruning_row_policy +05255_streaming_queries_watermark_time_attribute_types +05255_text_index_lazy_intersection_256_tokens +05255_timeseries_external_time_ranges_table +05255_timeseries_time_ranges_table +05256_array_uniq_decimal +05256_coalesce_row_mask_updates +05256_json_extract_lowcardinality_fixedstring_padding +05256_json_number_null_not_as_default_121472 +05256_mutation_scalar_subquery_nullable_placeholder +05256_s3_uri_exception_masks_credentials +05256_statistics_not_orphaned_by_column_ttl +05256_system_unicode_notation_no_trailing_nul +05256_window_functions_range_frame_date_keys +05257_any_join_to_semi_grace_hash_without_spill_threshold +05257_cascades_shard_aggregation_group_by_limit_single_node +05257_coalesce_row_mask_subquery +05257_function_composition_array_join_alias +05257_has_enum_array_index_fixed_string +05257_join_where_guard_conjunct_order +05257_keycondition_tuple_name_mode_pruning +05257_materialize_ttl_materialized_statistics +05257_memory_prewhere_global_in_sets_built_in_place +05257_merge_tree_analyze_indexes_vector_search_integral_vector +05257_parse_date_time_best_effort_row_boundary +05257_pre_epoch_datetime64_fraction_rounds_down +05257_prewhere_after_final_float_sorting_key +05257_temporary_table_limits +05257_tokens_ngrams_utf8_boundaries +05257_vector_search_index_analysis_limit_cap +05257_window_function_state_column_type_rejected +05257_window_functions_frame_definition_errors +05257_xgboost_attach_dictionary_gate +05258_aggregation_single_level_result_fanout_query_shapes +05258_anti_join_runtime_filter_null_bypass_estimate +05258_backup_except_data_tables_keyword_names +05258_coalesce_row_mask_separate_mutations +05258_correlated_subquery_over_merge_nested_planning +05258_drop_partition_invalid_date_literal +05258_join_transitive_equality_with_direct_predicate +05258_json_shared_data_restore_after_rejected_insert +05258_memory_prewhere_column_as_filter +05258_merge_blocks_nested_thread_pool_deadlock +05258_query_condition_cache_prewhere_attribution +05258_query_condition_cache_topk_folded_lambda_nondeterministic +05258_readd_column_after_drop_projection +05258_start_of_interval_month_origin_time_of_day +05258_text_index_low_cardinality_dictionary +05258_top_k_filter_nan_in_array +05258_ttl_group_by_set_subcolumn_sorting_key +05258_vertical_ttl_delete_unmaterialized_input +05258_window_function_state_in_query_rejected +05258_window_functions_range_frame_offsets_and_peers +05258_with_elements_expansion_bound +05259_agg_if_nullable_single_null_map_in_order +05259_cross_join_self_join_qualifier_side +05259_join_transitive_equality_dictionary_lookup +05259_numbers_limit_pushdown_join +05259_query_condition_cache_topk_sample +05259_replace_regexp_all_quantified_dollar +05259_short_circuit_reorder_arguments +05259_top_k_dynamic_filter_read_columns +05259_top_k_primary_key_skip_nested_nulls_direction +05259_window_functions_range_frame_nullable_keys +05259_xgboost_params_validated_before_source_read +05260_join_reorder_or_without_keys +05260_limit_after_until_lambda +05260_settings_indexes_aliases +05260_streaming_queries_shared_lambda +05260_ttl_constant_delete_where_non_uint8_condition +05260_window_functions_rank_nulls_direction +05261_kv_tuple_in_key_filter_unconvertible_element +05261_statistics_not_orphaned_by_column_ttl_partial_mutation +05261_window_functions_nth_value_ntile_arguments +05262_promql_regex_literal_alternatives +05262_window_functions_lag_lead_offsets_and_types +05262_xgboost_null_and_constant_features +05263_window_functions_first_last_value_nulls_data +05263_xgboost_log_to_server_log +05264_window_functions_holistic_aggregates_sliding_frames +05264_xgboost_query_count +05265_rename_column_subcolumns +05265_window_functions_group_concat_frames +05265_xgboost_parameters_change_result +05266_window_functions_misc_aggregates +05266_xgboost_multiple_blocks +05267_join_runtime_filter_prewhere_order_without_statistics +05267_window_functions_filter_clause +05268_window_functions_definition_scoping +05269_window_functions_range_frame_nullable_keys_default_order +05270_update_cte_settings_reset_default +05270_window_functions_bug_validation_inconsistencies +05273_has_any_constant_string_needles +05273_promql_instant_vector_sorted_by_tags +05289_join_runtime_filter_null_safe_key_not_skipped +05289_low_cardinality_serialized_group_by_external +05289_memory_prewhere_multiple_steps +05289_promql_duration_serialization_zero_sub_ms +05289_query_condition_cache_topk_on_fly_mutations +05289_ttl_in_subquery_own_parallel_replicas_settings +05290_in_subquery_of_standalone_expression_cte_and_insertion_table +05291_apply_prefix_join_qualified_name +05291_binary_encoded_field_deep_recursion +05291_date_time_overflow_behavior_values_date32_to_datetime64 +05291_finish_sorting_sparse_sort_key +05291_hash_table_sizes_stats_expression_constants +05291_iceberg_optimize_explicit_metadata +05291_index_hint_below_window +05291_join_filter_pushdown_key_and_key_expression +05291_mv_ordinary_view_over_source_reads_table +05291_mv_to_modify_query_keeps_column_comments +05291_query_parameters_in_row_policy_and_filter_settings +05291_remove_unused_columns_through_limit +05291_text_index_phrase_search_build_memory_fault +05291_variance_stable_single_non_finite +05292_alter_rename_and_modify_nested_member +05292_analyzer_setting_float_value +05292_date_time_overflow_behavior_with_fill_date_bound +05292_lateral_join_nullable_key_local_json +05292_modify_order_by_retyped_or_renamed_column +05292_mv_source_substitution_scope +05292_outer_if_condition_through_or_null_if +05292_regexp_local_cache_profile_events +05292_replace_always_true_filter_join_order +05292_ttl_array_map_constant_lambda_body +05292_ttl_constant_delete_where_multi_row_part +05293_argmin_argmax_first_index_on_ties +05293_datalake_catalog_database_comment +05293_fold_filter_through_materialize_kept_filter_column +05293_key_condition_monotonic_transform_strict_bounds +05293_lateral_join_table_function_group_by_limit_json +05293_map_bucket_indexes_codec +05293_mv_ordinary_view_over_source_inlined +05293_profile_events_once_per_block +05293_storage_limits_break_for_shipped_plan +05293_time_series_copy_tags_const_groups +05293_ttl_expression_uses_server_settings +05293_window_functions_range_offset_nan +05294_inverse_dictionary_lookup_float_container_keys +05294_lazy_materialization_for_join_without_order_by +05294_metadata_only_alter_guard_alias_dependency +05294_multi_match_profile_events_once_per_block +05294_time_series_samples_ttl +05295_explain_analyze_nested_executors_concurrency +05295_explain_ast_backup_locator_columns_name +05295_json_shared_typed_paths_bucketed_map +05295_lazy_final_filter_above_row_index +05296_conflict_detector_dynamic_join_key_null_match +05296_join_using_alias_outermost_join_only +05296_quantile_deterministic_merge_over_network +05296_sql_compatible_division_for_integers +05296_top_k_dynamic_filter_conjunction_name_clash +05296_window_functions_ntile_large_bucket_count +05297_prometheus_query_rfc3339_time +05297_sql_compatible_division_for_integers_errors +05297_window_functions_offset_functions_max_offset +05298_sql_compatible_division_for_integers_optimizer +05298_window_functions_frame_offset_bounds +05299_sql_compatible_division_for_integers_types +05299_window_functions_low_cardinality_arguments +05301_memory_update_after_modify_column +05306_json_shared_typed_paths_uncompressed_cache +05312_ast_json_dictionary_definition_shapes +05314_multiif_to_if_group_by_use_nulls +05315_explain_analyze_spilled_bytes +05315_explain_ast_parenthesized_query_output_options +05315_forbid_drop_column_referenced_by_mv_index_hint +05315_generate_random_variant_memory_limit +05315_group_by_limit_dynamic_filter_block_dependent +05315_lateral_join_duplicate_projection_names +05315_logsql_scientific_decimals_subquery_values_and_max_offsets +05315_low_cardinality_subcolumn_mutation_lazy_stream +05315_projection_order_by_single_element_tuple +05315_regr_aggregates_with_nan +05315_text_index_map_keys_derived_map_element +05315_text_index_postings_cache_readable_rows +05316_aggregation_serialized_keys_chunks +05316_ast_json_dictionary_pair_without_value +05316_explain_analyze_parallel_spilled_bytes +05316_lateral_join_volatile_table_functions_and_join_overflow +05316_limit_after_until_reject_matcher +05316_map_remove +05316_morton_encode_argument_types_and_masks +05316_parquet_all_null_chunk_null_as_default_pruning +05316_skip_index_lossless_conversion +05316_top_k_primary_key_skip_query_condition_cache +05316_trino_compatible_syntax +05316_window_functions_no_input_columns +05317_alter_reset_setting_auto_statistics_types +05317_block_nested_loop_join_duplicate_input_names +05317_bloom_filter_json_subcolumn_cast +05317_column_ttl_on_key_subcolumn +05317_explain_analyze_aggregation_tracker +05317_group_by_top_k_query_condition_cache_keys +05317_hypothetical_projection_force_in_subqueries +05317_key_condition_signed_zero_nested_transform +05317_lateral_join_default_strictness +05317_logsql_quoted_string_escapes +05317_map_combinator_time_key +05317_map_entries +05317_parquet_prewhere_dictionary_encoded_pages +05317_projection_alias_columns_sharing_expression +05317_promql_unimplemented_calls +05317_skip_index_after_alter_modify_column_nullable +05317_unevaluable_chain_exact_range +05318_array_has_all_has_any_long_integer_arrays +05318_lateral_join_json_natural_paste_round_trip +05318_projection_positional_arguments_remote_insert +05318_text_index_trivial_count_lazy_cursors +05319_array_min_max_decimal_fast_path +05319_cnf_alias_referenced_twice +05319_hypothetical_projection_part_histories +05319_lateral_join_volatile_hidden_filters +05320_block_nested_loop_join_duplicate_input_name +05320_clear_statistics_then_name_reuse +05320_compatibility_keeps_backup_on_cluster_bounds +05320_disk_function_key_without_value +05320_function_composition_correlated_join_tree_subquery +05320_generaterandom_create_as_keeps_settings +05320_hypothetical_projection_nondeterministic_filter +05320_join_under_always_false_where_reads_nothing +05320_lateral_join_bare_offset +05320_memory_top_k_dynamic_filter +05320_outer_to_inner_join_with_in_subquery_filter +05320_point_in_polygon_huge_coordinates +05320_projection_used_with_pending_drop_of_unrelated_column +05320_promql_duplicate_series_check_per_step +05320_promql_duplicate_series_one_to_one_matching +05320_prune_array_join_numeric_index_shared_node +05320_set_index_nullable_null_granule_prune +05320_statistics_cache_prewarm +05320_string_filters_mutation_on_fly_guard +05320_unhex_fixed_string_odd_width +05321_complex_key_dictionary_read_per_block +05321_function_composition_operator_identity +05321_generate_random_settings_cache_separation +05321_hypothetical_projection_reject_before_read +05321_in_subquery_of_standalone_expression_under_materialized_view +05321_lateral_join_volatile_hidden_filters_table_function +05321_lower_upper_utf8_icu_equivalence +05321_parquet_bool_hint_no_minmax_pruning +05321_read_in_order_string_vs_fixed_string_constant +05321_text_index_trivial_count_lazy_leapfrog_five_tokens +05322_generate_random_expression_schema_settings_persistence +05322_hypothetical_projection_mark_type_from_table +05322_lateral_join_opaque_view +05322_point_in_polygon_const_matches_non_const +05322_rabbitmq_invalid_routing_keys +05322_tsv_crlf_escape_sequence_at_buffer_end +05323_generate_random_settings_only_persistence +05323_lateral_join_executable +05324_hypothetical_projection_read_limits_of_scope +05324_lateral_join_volatile_table_engines +05325_datetime64_key_integer_strict_bound +05325_join_statistics_huge_row_estimates +05325_lazy_replication_sort_merge +05325_map_combinator_legacy_nan_keys +05325_merge_over_merge_prewhere_after_pushdown +05325_merge_tree_projection_parent_snapshot +05325_mongodb_uri_conflict_error_hides_values +05325_normal_projection_rejected_keeps_parent_parts +05325_null_safe_join_float_keys +05325_partition_pruning_null_safe_comparison_null_result +05325_show_full_every_form +05325_string_filters_columns_cache_guard +05325_tuple_comparison_nullable_nothing_element +05325_union_subquery_opt_out_query_cache_arms +05326_aggregation_two_level_decision_query_memory +05326_minmax_pruning_use_skip_indexes_repro +05326_string_filters_move_to_prewhere_applicability +05326_text_index_lazy_exact_and_skip_dense_blocks +05327_use_aggregation_memory_tracker_compatibility +05329_promql_empty_vector_time_grid +05330_optimize_and_compare_chain_time_point_constant_scale +05331_analyzer_table_alias_equals_database_name +05331_and_compare_chain_outer_join_on +05331_canbesafelycast_in_set_key_types +05331_decimal_integer_overflow_key_analysis +05331_distributed_plan_in_memory_exchange_constant_sort_key +05331_encrypt_decrypt_argument_columns +05331_explain_query_tree_hides_table_function_secret_settings +05331_function_composition_placeholders_in_subquery +05331_geometry_intersect_empty_linear +05331_h3_polygon_to_cells_small_polygons +05331_inconsistent_ast_in_under_tuple_element_in_function_arg +05331_ipcrypt_secret_arguments +05331_join_engine_count_matches_read +05331_join_order_one_side_unknown_rows +05331_map_enum_negative_bloom_filter_in +05331_map_remove_signed_unsigned_keys +05331_parquet_bool_hint_nonzero_is_true +05331_promql_date_non_finite +05331_query_result_cache_subquery_partial_read +05331_skip_index_disjunction_rpn_position +05331_text_index_lazy_mismatched_search_shared_token +05331_top_k_through_join_merge_table_filter +05331_xgboost_validation_without_rows +05332_aggregation_bucket_top_k_simple_count +05332_apply_lambda_call_followed_by_operator +05332_function_composition_nested_placeholders +05332_obfuscate_profile_seed_query_cache +05332_promql_set_operator_empty_on +05332_string_filters_move_to_prewhere_top_k +05332_sum_map_filtered_with_overflow +05333_bloom_filter_left_array_join +05333_function_composition_expression_name_priority +05337_parallel_join_max_joined_block_size +05338_dynamic_key_transform_cross_type +05338_group_by_top_k_key_only_shared_boundary +05338_group_by_top_k_query_condition_cache_computed_key +05338_hypothetical_projection_in_subquery_runs_once +05338_join_reorder_fact_without_column_statistics +05338_lazy_materialization_for_join_repeated_row_index +05338_mutation_keeps_no_files_of_column_part_does_not_store +05338_projection_calculation_type_folded_constants +05338_promql_range_function_over_scalar_subquery +05338_skip_index_lossless_conversion_drop_nullable +05338_sql_compatible_division_for_integers_kusto +05338_text_index_multi_search_any_dictionary_scan +05339_alter_add_column_data_type_default_nullable +05339_alter_modify_ttl_query_scoped_subquery_suspicious +05339_analyzer_sample_of_one_joined_table +05339_bloom_filter_lossless_conversion_time_zone_bool +05339_correlated_subquery_as_whole_filter +05339_decimal_wide_comparison_scale_overflow +05339_explain_ast_optimize_prewhere_in_subquery_over_remote +05339_group_by_limit_dynamic_filter_lambda_block_dependent +05339_h3_cell_area_antimeridian +05339_hash_join_right_full_every_key_matched +05339_key_condition_atom_group_description +05339_lazy_materialization_for_reordered_join_alias_outputs +05339_mv_source_table_in_expression_subqueries +05339_prewhere_subcolumn_read_steps +05339_projection_calculation_renamed_aggregate_functions +05339_query_log_spilled_to_disk_block_nested_loop_join +05339_sql_compatible_division_for_integers_key_optimizations +05339_summing_final_keeps_zero_rows +05339_timezone_offset_monotonicity_dst +05340_adaptive_aggregator_nullable_keys +05340_custom_disk_error_hides_secrets +05340_key_condition_set_mapping_transform +05340_local_time_monotonicity_clock_change +05340_map_element_to_subcolumn_bucketed_only +05340_projection_lightweight_delete_rebuild_normal_projection +05340_streaming_queries_lazy_materialization_for_join +05340_text_index_preprocessor_cast_drop_nullable +05340_where_equality_null_in_tuple_join_key +05341_text_index_map_json_default_value_throws +05342_lazy_materialization_for_join_repeated_names +05342_sql_compatible_division_for_integers_float_optimizer +05343_lazy_materialization_for_join_padded_side_can_throw +05343_sql_compatible_division_for_integers_constant_unsigned_divisor +05343_text_index_stale_positions_after_redefinition +05344_exact_division_metadata +05344_lazy_materialization_for_join_masked_values +05345_elasticsearch_arguments +05345_exact_division_ast +05345_in_subquery_row_policy_under_view_inner_query_in_materialized_view +05345_lazy_materialization_for_join_without_condition +05345_lower_array_join_empty_array_to_single +05345_nullable_string_size_subcolumn_and_sum_rewrite +05345_string_filters_during_scan_merge_tree_short_values_bulk_scan +05345_text_index_direct_read_per_part_patches +05345_text_index_prewhere_read_step_order +05345_trino_base64url_aliases +05346_elasticsearch_secret_masking +05346_exact_division_default_setting +05346_lazy_materialization_for_join_rejected_side +05346_optimize_or_like_chain_shared_alias +05346_string_filters_during_scan_merge_tree_short_values_bulk_scan_other_conditions +05347_lazy_materialization_for_join_memory_table +05348_exact_division_join_order +05349_external_set_block_ranges +05350_comparison_tuple_elimination_shared_alias +05351_date_diff_day_datetime_before_local_epoch +05352_buffer_converted_column_prewhere_steps +05353_merge_child_columns_read_for_policy_or_alias +05353_substitute_columns_constraint_ast +05353_table_readonly_attach_partition_source +05355_ip_trie_two_key_columns_short_circuit +05355_projection_calculation_aggregate_functions_resolved_to_same +05356_projection_calculation_ignores_parallel_replicas_custom_key +05358_null_constant_argument_not_strictly_monotonic +05359_interpolate_converted_expression_read_by_other_target +05359_optimize_aggregators_of_group_by_keys_exact_quantiles_bit_and_or +05359_text_index_inject_without_virtual_column +05359_virtual_column_filter_partial_and +05361_exact_division_nonfinite_aggregate +05361_projection_calculation_ignores_additional_result_filter +05364_virtual_column_filter_index_hint +05366_distinct_in_order_set_index_uuid_key +05366_dpsub_conflict_detector_split_inner_conjunct +05366_exact_count_with_normal_projection +05366_join_swap_bool_literal_json_path +05366_promql_pushdown_aggregation_without_arguments +05366_quoted_printable +05366_uniq_combined_merge_into_empty +05366_window_functions_bug_ntile_distributed_constant +05367_dpsub_conflict_detector_defer_conjunct_outer_join +05367_kv_tuple_key_filter_low_cardinality +05367_merge_read_in_order_iceberg +05368_dpsub_conflict_detector_full_left_null_rejection +05371_text_index_count_read_rows_progress +05385_fuse_filter_array_join_lift_row_actions +05385_summing_merge_tree_nested_map_compound_low_cardinality +05386_aggregators_of_group_by_keys_grouping_sets_use_nulls +05386_analyzer_identifier_cache_constant_if_chain +05393_window_over_join_empty_in_set +05394_ai_functions_retry_setting_limits +05394_distributed_plan_runtime_filter_low_cardinality_key +05394_key_condition_fixed_string_constant_without_reverse_conversion +05394_restore_null_dictionary_source_without_source +05394_short_circuit_reorder_arguments_nested_shared +05394_statistics_cache_weight +05394_vertical_merge_packed_part +05395_key_condition_unusable_set_is_not_built +05395_vertical_merge_packed_part_empty_result +05396_key_condition_curve_hyperrectangle_through_atom_groups +05396_merge_tree_text_index_postings +05397_fuse_filter_into_left_array_join +05397_json_subcolumn_serialization_cache +05397_key_condition_memory_limit_in_key_transform +05397_lazy_materialization_for_join_unread_side_computed +05398_lazy_materialization_for_join_unmatched_defaults +05398_skip_index_disjunction_unevaluated_atom +05399_lazy_materialization_for_join_stateful_values +05400_lazy_materialization_for_join_masked_constant_arguments +05401_array_has_all_any_slice_boundaries +05401_columns_cache_shared_deserialize_states +05401_convert_join_to_in_query_condition_cache +05401_explain_ast_graph_node_ids +05401_index_hint_derived_query_condition_cache +05401_join_conversion_constness_sensitive_filter +05401_lazy_materialization_for_join_use_nulls_constants +05401_least_greatest_nan_compiled +05401_rename_chain_keeps_statistics_wide +05401_replace_regexp_all_quantified_caret +05401_sample_top_k_skip_index +05401_skip_index_final_float_primary_key +05401_subcolumn_size_without_reading_prefixes +05401_vector_search_dot_product_no_rescoring +05401_vector_search_no_rescoring_dense_candidates +05401_where_float_equality_nan_join_key +05402_array_index_nullable_enum_null_slot +05402_lazy_materialization_declared_part_offset +05402_mv_source_table_in_hidden_filters +05402_window_function_through_alias_chain_computed_once +05403_lazy_materialization_for_join_short_circuit +05404_always_true_equality_selectivity +05404_lazy_materialization_for_join_random_value_and_its_cast +05405_array_join_lazy_replication_chunk_bytes +05405_json_shared_typed_paths_adaptive_granularity_merge +05406_elasticsearch_table_function_arguments_persisted +05406_hash_table_stats_key_group_cap +05406_join_swap_array_join_estimate +05407_estimate_compression_ratio_large_block +05408_lazy_materialization_for_join_direct_join +05409_lazy_materialization_for_join_padded_function_can_throw +05410_lazy_materialization_for_join_nested_unread_side +05410_parse_date_time_daylight_saving_time +05417_array_join_window_cut_once +05421_bloom_filter_text_index_total_size +05427_azure_sas_url_parsing +05427_polygon_convex_hull_empty_exterior_ring +05427_sparsity_date32_default_not_zero +05428_malformed_nested_json_type_parser +05441_ai_functions_privileges +05441_dpsub_conflict_detector_computed_column_null_supplying +05441_kql_bin_narrow_datetime +05441_msgpack_schema_inference_untypeable_map_key +05441_obfuscate_more_types +05442_ai_functions_privileges_stored_expressions +05442_dpsub_conflict_detector_partial_merge_semi_join +05442_xgboost_concurrent_prediction +05443_async_insert_mv_dedup_empty_partition_block +05443_join_reorder_converted_outer_join_type_change +05443_obfuscate_datetime64_range_boundaries +05444_ai_functions_no_user +05452_aggregate_state_version_relabel_replicated_column +05453_join_reorder_or_of_constant_equalities +05453_merge_child_row_policy_before_prewhere +05457_join_runtime_filter_nested_cast_key +05457_json_extract_datetime_compatibility +05459_ai_functions_background_defaults +05480_geometry_rows_after_empty_value +05480_lateral_join_setting_alias +05483_crosstab_window_state_layout +05484_crosstab_window_merge_ordinary_states +05485_crosstab_window_merge_wrapped_states +05492_paste_join_redundant_sorting +05497_jit_multiif_decimal128_scale_lift_overflow +05498_group_by_two_level_few_keys_prefetch +05498_s3_disk_sse_c_key_validation +05567_group_array_sample_counter_overflow +05616_key_condition_to_string_key_in_subquery +05617_gini_deserialize_validation +05617_mongodb_format_schema_query_null_query_tree +05618_to_string_monotonicity_digit_count +05627_prewhere_guard_sibling_subcolumn +4060_row_policy_projection_not_found_column + +############################################################################## +# Known failures +############################################################################## + +#----------------------------------------------------------------------------- +# [type-name-nullable] client: The type name of Nullable(Tuple(...)), Nullable(QBit(...)) and Nullable(JSON(...)) loses its last ) +# ClickHouseColumn.readColumn ends the Tuple, QBit and JSON type name before +# the ) of the Nullable wrapper: ClickHouseColumn.getOriginalTypeName() and +# jdbc ResultSetMetaData.getColumnTypeName(). The values are correct; the +# shim cannot parse the type name. +# Reproduction: +# SELECT CAST((1, 'a') AS Nullable(Tuple(UInt8, String))) AS t +# -- type name: Nullable(Tuple(UInt8, String) +# Issue: not filed yet +# Backends: client, jdbc +# Tests: client 73, jdbc 73 +# 00205_scalar_subqueries # [type-name-nullable] +# 00999_nullable_nested_types_4877 # [type-name-nullable] +# 01601_accurate_cast # [type-name-nullable] +# 02406_minmax_behaviour # [type-name-nullable] +# 02451_variadic_null_garbage_data # [type-name-nullable] +# 02874_infer_objects_as_named_tuples # [type-name-nullable] +# 02876_json_incomplete_types_as_strings_inference # [type-name-nullable] +# 02922_respect_nulls_Nullable # [type-name-nullable] +# 02977_csv_format_support_tuple # [type-name-nullable] +# 03004_json_named_tuples_inference_ambiguous_paths_as_string # [type-name-nullable] +# 03240_array_element_or_null # [type-name-nullable] +# 03240_array_element_or_null_for_map # [type-name-nullable] +# 03300_msan_nullable_serialized_aggregation # [type-name-nullable] +# 03374_qbit_nullable # [type-name-nullable] +# 03380_accurate_cast_or_null_qbit # [type-name-nullable] +# 03709_tuple_inside_nullable_basic # [type-name-nullable] +# 03710_tuple_inside_nullable_function_tuple_element # [type-name-nullable] +# 03711_tuple_inside_nullable_least_supertype # [type-name-nullable] +# 03721_tuple_inside_nullable_array_element_function # [type-name-nullable] +# 03748_tuple_inside_nullable_flatten_tuple_function # [type-name-nullable] +# 03751_tuple_inside_nullable_tuple_functions # [type-name-nullable] +# 03752_tuple_inside_nullable_binary_arithmetic # [type-name-nullable] +# 03753_tuple_inside_nullable_experimental_setting # [type-name-nullable] +# 03781_tuple_inside_nullable_sparse_serialization # [type-name-nullable] +# 03802_tuple_inside_nullable_case # [type-name-nullable] +# 03814_tuple_inside_nullable_schema_inference # [type-name-nullable] +# 03831_cast_nullable_source_nested_types # [type-name-nullable] +# 03905_grouping_sets_use_nulls_lowcardinality_in_tuple # [type-name-nullable] +# 03913_tuple_inside_nullable_subcolumns # [type-name-nullable] +# 03915_tuple_inside_nullable_variant_dynamic_element # [type-name-nullable] +# 03916_tuple_inside_nullable_json_subcolumns # [type-name-nullable] +# 03917_tuple_inside_nullable_tuple_subcolumns # [type-name-nullable] +# 03918_allow_nullable_tuple_in_extracted_subcolumns_not_changeable # [type-name-nullable] +# 03926_qbit_cast_from_nullable_array # [type-name-nullable] +# 03928_aggregate_function_tuple_return_type_compatibility # [type-name-nullable] +# 04003_tuple_combinator # [type-name-nullable] +# 04049_tuple_inside_nullable_nullable_subcolumn # [type-name-nullable] +# 04053_correlated_subquery_group_by_use_nulls # [type-name-nullable] +# 04054_sumcount_combinator_compatibility # [type-name-nullable] +# 04055_aggregate_function_tuple_return_type_combinator_compatibility # [type-name-nullable] +# 04056_tuple_inside_nullable_casting # [type-name-nullable] +# 04064_tuple_inside_nullable_arrow_orc_roundtrip # [type-name-nullable] +# 04065_tuple_inside_nullable_parquet_roundtrip # [type-name-nullable] +# 04103_accurate_cast_or_null_json # [type-name-nullable] +# 04109_tuple_inside_nullable_functions # [type-name-nullable] +# 04325_sql_json_functions_with_dynamic_input # [type-name-nullable] +# 04327_join_runtime_filter_fingerprint_collision # [type-name-nullable] +# 04337_tuple_inside_nullable_subcolumn_shared_cache # [type-name-nullable] +# 04338_accurate_cast_or_null_dynamic_tuple # [type-name-nullable] +# 04338_tuple_inside_nullable_null_carrying_elements # [type-name-nullable] +# 04344_tuple_element_lowcardinality_consistency # [type-name-nullable] +# 04356_nullable_tuple_type_setting # [type-name-nullable] +# 04401_arrow_nullable_tuple_flattened_subcolumn # [type-name-nullable] +# 04404_accurate_cast_or_null_dynamic_variant_in_tuple # [type-name-nullable] +# 04425_naive_bayes_lowcardinality_nullable # [type-name-nullable] +# 04428_naive_bayes_classifier_null_literal # [type-name-nullable] +# 04493_nullable_tuple_schema_inference_arrow_formats # [type-name-nullable] +# 04494_nullable_tuple_schema_inference_avro # [type-name-nullable] +# 04504_tuple_combinator_respect_nulls # [type-name-nullable] +# 04510_qbit_array_element_slice # [type-name-nullable] +# 04511_uniq_combined_sparse_column # [type-name-nullable] +# 04512_arrow_null_slot_garbage_roundtrip # [type-name-nullable] +# 04516_correlated_subquery_return_type_group_by_use_nulls # [type-name-nullable] +# 04628_json_value_dynamic_multipath_nullable # [type-name-nullable] +# 04628_lazy_replicated_array_slice_element # [type-name-nullable] +# 04651_nullable_tuple_lowcardinality_subcolumn_shared_cache # [type-name-nullable] +# 04855_custom_separated_csv_tuple_leading_null # [type-name-nullable] +# 04948_key_condition_widening_cast_block_ref # [type-name-nullable] +# 05026_named_tuple_cast_unambiguous # [type-name-nullable] +# 05045_jsonextract_named_tuples_from_objects # [type-name-nullable] +# 05104_array_element_tuple_large_uint64_index # [type-name-nullable] +# 05315_if_tuple_null_element_in_both_branches # [type-name-nullable] +# 05617_orc_nested_struct_without_requested_fields # [type-name-nullable] + +#----------------------------------------------------------------------------- +# [type-empty-tuple] client: Tuple() is not supported +# Reading a Tuple() column throws "Tuple should have at least one nested +# column". +# Reproduction: +# SELECT tuple() +# Issue: not filed yet +# Backends: client, jdbc +# Tests: client 35, jdbc 34 +# 01045_array_zip # [type-empty-tuple] +# 02494_query_cache_empty_tuple # [type-empty-tuple] +# 02891_empty_tuple # [type-empty-tuple] +# 03167_empty_tuple_concat # [type-empty-tuple] +# 03205_column_type_check # [type-empty-tuple] +# 03229_empty_tuple_in_array # [type-empty-tuple] +# 03230_array_zip_unaligned # [type-empty-tuple] +# 03268_empty_tuple_update # [type-empty-tuple] +# 03270_empty_tuple_in_array_intersect # [type-empty-tuple] +# 03572_empty_tuple_in_nested_type # [type-empty-tuple] +# 03577_assert_on_estimated_block_size_bytes # [type-empty-tuple] +# 03594_funcs_on_empty_arguments # [type-empty-tuple] +# 03631_array_of_empty_tuples # [type-empty-tuple] +# 03652_coalescing_merge_tree_fix_empty_tuple # [type-empty-tuple] +# 03652_coalescing_merge_tree_fix_empty_tuple_allow_tuple_element_aggregation # [type-empty-tuple] +# 03710_empty_tuple_lhs_in_function # [type-empty-tuple] +# 03714_empty_tuple_reverse_function # [type-empty-tuple] +# 03715_empty_tuple_functions_conversion # [type-empty-tuple] +# 03716_bson_each_row_empty_tuple_column # [type-empty-tuple] +# 03717_msgpack_empty_tuple_column # [type-empty-tuple] +# 03725_empty_tuple_some_limit_with_ties_distinct # [type-empty-tuple] +# 03742_array_join_empty_tuple # [type-empty-tuple] +# 03764_empty_tuple_permutation_bug # [type-empty-tuple] +# 03786_empty_tuple_map_array # [type-empty-tuple] +# 03802_summing_merge_tree_tuple_element # [type-empty-tuple] +# 04009_log_nested_null_subcolumn # [type-empty-tuple] +# 04019_formats_nullable_empty_tuple_roundtrip # [type-empty-tuple] +# 04029_msgpack_nullable_empty_tuple_roundtrip # [type-empty-tuple] +# 04057_tuple_empty_supertype # [type-empty-tuple] +# 04093_empty_tuple_parsing # [type-empty-tuple] +# 04405_csv_tuple_leading_null_null_as_default # [type-empty-tuple] +# 04838_top_k_dynamic_filter_empty_tuple # [type-empty-tuple] +# 05052_arrow_ipc_realign_empty_tuple # [type-empty-tuple] +# 05321_aggregate_arithmetic_compound_operand # [type-empty-tuple] +02457_tuple_of_intervals # known=client: [type-empty-tuple] # known=jdbc: [jdbc-interval-getobject] + +#----------------------------------------------------------------------------- +# [jdbc-time-as-sql-time] client: jdbc-v2 getObject gives Time and Time64 as java.sql.Time, so the fraction, the sign and the days are lost +# JdbcUtils.convert makes Time.valueOf(LocalTime.from(v)). No error. +# Reproduction: +# SELECT toTime64('10:10:10.111', 3), toTime('-01:02:03'), toTime('25:00:00') +# -- jdbc: 10:10:10 22:57:57 01:00:00 +# Issue: not filed yet +# Backends: jdbc +# Tests: client 0, jdbc 43 +# 13 of the jdbc tests are in the section of their client group (known=jdbc: +# [jdbc-time-as-sql-time]): 03365_parsing_time_time64_short, +# 03365_time_time64_cap_max_time, 03365_time_time64_conversions, +# 03365_time_time64_extreme_values, 03365_time_time64_parsing, +# 04094_json_extract_time_numeric, +# 04883_time64_convert_field_scale_overflow, +# 05042_datetime64_saturate_to_max_tick, +# 05099_date_time_overflow_behavior_datetime64, +# 05218_datetime64_time64_in_constant_window, +# 05242_date_time_overflow_behavior_wide_numeric_carriers, +# 05244_date_time_overflow_behavior_values_expression_fallback, +# 05320_date_time_overflow_behavior_review_followups. +01252_weird_time_zone # known=jdbc: [jdbc-time-as-sql-time] +03365_read_negative_time_implicitly # known=jdbc: [jdbc-time-as-sql-time] +03365_time64_from_datetime_timezone_respect # known=jdbc: [jdbc-time-as-sql-time] +03365_time_implicit_conversion # known=jdbc: [jdbc-time-as-sql-time] +03365_time_in_json # known=jdbc: [jdbc-time-as-sql-time] +03365_time_time64_aggregate_functions # known=jdbc: [jdbc-time-as-sql-time] +03365_time_time64_best_effort_parsing # known=jdbc: [jdbc-time-as-sql-time] +03365_time_time64_operations # known=jdbc: [jdbc-time-as-sql-time] +03365_time_timezone_issue # known=jdbc: [jdbc-time-as-sql-time] +03891_utc_timestamp_datetime64_overflow # known=jdbc: [jdbc-time-as-sql-time] +03916_jit_datetime_to_datetime64_scale # known=jdbc: [jdbc-time-as-sql-time] +04050_time64_cast_uint64_no_wrap # known=jdbc: [jdbc-time-as-sql-time] +04092_date_plus_time # known=jdbc: [jdbc-time-as-sql-time] +04099_time64_csv_trailing_garbage # known=jdbc: [jdbc-time-as-sql-time] +04200_fix_time64_scale_conversion # known=jdbc: [jdbc-time-as-sql-time] +04512_totime_datetime64_extreme_overflow # known=jdbc: [jdbc-time-as-sql-time] +04512_with_fill_interval_step_int64_overflow # known=jdbc: [jdbc-time-as-sql-time] +04545_bfloat16_to_datetime_saturation # known=jdbc: [jdbc-time-as-sql-time] +04641_numeric_to_time_saturation_accurate_cast # known=jdbc: [jdbc-time-as-sql-time] +04654_cast_operator_values_template # known=jdbc: [jdbc-time-as-sql-time] +04823_avg_datetime64_boundary_no_ub # known=jdbc: [jdbc-time-as-sql-time] +04851_datetime64_min_max_jit_signedness # known=jdbc: [jdbc-time-as-sql-time] +04925_jit_compiled_if_negative_time # known=jdbc: [jdbc-time-as-sql-time] +05024_time64_values_negative_and_time # known=jdbc: [jdbc-time-as-sql-time] +05045_time64_or_null_zero_precision # known=jdbc: [jdbc-time-as-sql-time] +05218_datetime64_in_set_out_of_range_constant # known=jdbc: [jdbc-time-as-sql-time] +05236_generate_random_time_bfloat16 # known=jdbc: [jdbc-time-as-sql-time] +05243_datetime64_to_time64_accurate_cast # known=jdbc: [jdbc-time-as-sql-time] +05315_jit_multiif_decimal_scale_lift_overflow # known=jdbc: [jdbc-time-as-sql-time] +05316_todatetime64_nullable_string_null_rows # known=jdbc: [jdbc-time-as-sql-time] + +#----------------------------------------------------------------------------- +# [jdbc-use-database] client: After USE DATABASE db or USE {name:Identifier}, jdbc-v2 runs the next statements in the old database +# jdbc-v2 follows USE by parsing it on the client +# (StatementImpl.postUpdateActions) and sends that database with each +# request. When its parser does not get the name, the server runs the USE, +# but the next request carries the old database again. No error. +# Reproduction: +# CREATE DATABASE db1; USE DATABASE db1; SELECT currentDatabase() +# -- jdbc: default (USE db1 gives db1) +# Issue: not filed yet +# Backends: jdbc +# Tests: client 0, jdbc 35 +00101_materialized_views_and_insert_without_explicit_database # known=jdbc: [jdbc-use-database] +00800_versatile_storage_join # known=jdbc: [jdbc-use-database] +01018_dictionaries_from_dictionaries # known=jdbc: [jdbc-use-database] +01251_dict_is_in_infinite_loop # known=jdbc: [jdbc-use-database] +01259_dictionary_custom_settings_ddl # known=jdbc: [jdbc-use-database] +01501_cache_dictionary_all_fields # known=jdbc: [jdbc-use-database] +01516_create_table_primary_key # known=jdbc: [jdbc-use-database] +01526_complex_key_dict_direct_layout # known=jdbc: [jdbc-use-database] +01670_dictionary_create_key_expression # known=jdbc: [jdbc-use-database] +01681_cache_dictionary_simple_key # known=jdbc: [jdbc-use-database] +01682_cache_dictionary_complex_key # known=jdbc: [jdbc-use-database] +01683_flat_dictionary # known=jdbc: [jdbc-use-database] +01720_dictionary_create_source_with_functions # known=jdbc: [jdbc-use-database] +01748_dictionary_table_dot # known=jdbc: [jdbc-use-database] +01753_direct_dictionary_simple_key # known=jdbc: [jdbc-use-database] +01754_direct_dictionary_complex_key # known=jdbc: [jdbc-use-database] +01759_dictionary_unique_attribute_names # known=jdbc: [jdbc-use-database] +01760_polygon_dictionaries # known=jdbc: [jdbc-use-database] +01765_hashed_dictionary_simple_key # known=jdbc: [jdbc-use-database] +01766_hashed_dictionary_complex_key # known=jdbc: [jdbc-use-database] +01778_hierarchical_dictionaries # known=jdbc: [jdbc-use-database] +01837_database_memory_ddl_dictionaries # known=jdbc: [jdbc-use-database] +01913_replace_dictionary # known=jdbc: [jdbc-use-database] +01914_exchange_dictionaries # known=jdbc: [jdbc-use-database] +01915_create_or_replace_dictionary # known=jdbc: [jdbc-use-database] +02025_dictionary_view_different_db # known=jdbc: [jdbc-use-database] +04498_database_max_tables # known=jdbc: [jdbc-use-database] +04653_parameterized_view_own_name # known=jdbc: [jdbc-use-database] +05055_database_max_tables_inner_tables # known=jdbc: [jdbc-use-database] +05210_with_recursive_mixed_list_alias_scope # known=jdbc: [jdbc-use-database] +05227_lazy_load_tables_mutations_visibility # known=jdbc: [jdbc-use-database] +05258_lazy_load_tables_delete_projection_throw # known=jdbc: [jdbc-use-database] +05291_lazy_load_tables_hypothetical_objects # known=jdbc: [jdbc-use-database] +05331_lazy_load_tables_heavy_update_key_column # known=jdbc: [jdbc-use-database] +05332_lazy_load_tables_unload_primary_key_server_wide # known=jdbc: [jdbc-use-database] + +#----------------------------------------------------------------------------- +# [jdbc-interval-getobject] client: jdbc-v2 getObject on an Interval column throws +# jdbc-v2 maps the Interval types to BIGINT (class Long); client-v2 reads a +# Period or a Duration, and JdbcUtils.convert cannot make a Long of it. +# Reproduction: +# SELECT INTERVAL 3 DAY +# -- jdbc: Failed to convert from java.time.Period to java.lang.Long +# Issue: not filed yet +# Backends: jdbc +# Tests: client 0, jdbc 31 +# 10 of the jdbc tests are in the section of their client group (known=jdbc: +# [jdbc-interval-getobject]): 02366_kql_native_interval_format, +# 02457_tuple_of_intervals, 03595_funcs_on_zero, +# 04092_kql_conformance_baby_kusto, 04093_kql_conformance_kusto_loco, +# 04672_kql_semantics, 04676_kql_function_families, +# 04759_kql_bin_floor_timespan_type_defaults, 05019_kql_review_followups, +# 05044_kql_exact_scaling_and_tabular_contract. +01099_operators_date_and_timestamp # known=jdbc: [jdbc-interval-getobject] +01523_interval_operator_support_string_literal # known=jdbc: [jdbc-interval-getobject] +01916_low_cardinality_interval # known=jdbc: [jdbc-interval-getobject] +01916_lowcard_dict_type # known=jdbc: [jdbc-interval-getobject] +02366_kql_func_datetime # known=jdbc: [jdbc-interval-getobject] +02480_interval_casting_and_subquery # known=jdbc: [jdbc-interval-getobject] +02724_persist_interval_type # known=jdbc: [jdbc-interval-getobject] +02884_interval_operator_support_plural_literal # known=jdbc: [jdbc-interval-getobject] +03403_toInterval # known=jdbc: [jdbc-interval-getobject] +03404_dynamic_in_interval_bug # known=jdbc: [jdbc-interval-getobject] +04051_functions_various_bugs # known=jdbc: [jdbc-interval-getobject] +04093_remove_mutable_from_functions_lowcardinality # known=jdbc: [jdbc-interval-getobject] +04240_interval_cast_forward_conversion # known=jdbc: [jdbc-interval-getobject] +04822_kql_timespan_constructor_and_casts # known=jdbc: [jdbc-interval-getobject] +04831_kql_range_typed_and_dynamic_negative # known=jdbc: [jdbc-interval-getobject] +04846_kql_bin_timespan_bin_at_alignment_decimal_range # known=jdbc: [jdbc-interval-getobject] +04903_kql_nullable_timespan_dynamic_literals # known=jdbc: [jdbc-interval-getobject] +05054_interval_binary_decoding_invalid_kind # known=jdbc: [jdbc-interval-getobject] +05237_avg_interval # known=jdbc: [jdbc-interval-getobject] +05238_sum_interval # known=jdbc: [jdbc-interval-getobject] +05361_top_k_dynamic_filter_interval # known=jdbc: [jdbc-interval-getobject] + +#----------------------------------------------------------------------------- +# [type-aggregate-function] client: AggregateFunction(...) is not supported +# A versioned type (AggregateFunction(1, uniq, UInt8)) or a function that +# ClickHouseAggregateFunction does not know (sumMap, maxMap, +# groupArrayArray, ...) throws "Unknown aggregate function"; other states +# fail to decode. A result with an AggregateFunction(sum, UInt64) column +# has 0 rows and no error. +# Reproduction: +# SELECT uniqState(1) -- Unknown aggregate function +# SELECT sumState(toUInt64(1)) AS s, 7 AS y -- 0 rows +# Issue: not filed yet +# Backends: client, jdbc +# Tests: client 15, jdbc 15 +# 01088_array_slice_of_aggregate_functions # [type-aggregate-function] +# 01880_materialized_view_to_table_type_check # [type-aggregate-function] +# 02149_issue_32487 # [type-aggregate-function] +# 02295_GROUP_BY_AggregateFunction # [type-aggregate-function] +# 02418_aggregate_combinators # [type-aggregate-function] +# 02428_combinators_with_over_statement # [type-aggregate-function] +# 02429_combinators_in_array_reduce # [type-aggregate-function] +# 02430_initialize_aggregation_with_combinators # [type-aggregate-function] +# 02552_regression_crash # [type-aggregate-function] +# 02812_large_varints # [type-aggregate-function] +# 02902_topKGeneric_deserialization_memory # [type-aggregate-function] +# 03127_argMin_combinator_state # [type-aggregate-function] +# 03237_max_map_state_decimal_serialization # [type-aggregate-function] +# 03548_array_group_last_serialization # [type-aggregate-function] +# 04500_index_hint_nothing_argument_type # [type-aggregate-function] + +#----------------------------------------------------------------------------- +# [jdbc-year-zero] client: jdbc-v2 getObject gives a Date32 or DateTime64 in year 0 as year 1, and 1582-10-05 .. 1582-10-14 ten days later +# Date32 is a java.sql.Date and DateTime64 a java.sql.Timestamp: the +# calendar of java.util.Date has no year 0 and no 1582-10-05 .. 1582-10-14. +# A year before 1 loses its era. No error. +# Reproduction: +# SELECT makeDate32(0, 1, 2), makeDate32(1582, 10, 10) +# -- jdbc: 0001-01-02 1582-10-20 +# Issue: not filed yet +# Backends: jdbc +# Tests: client 0, jdbc 17 +01277_fromUnixTimestamp64 # known=jdbc: [jdbc-year-zero] +02243_make_date32 # known=jdbc: [jdbc-year-zero] +02243_make_date32_mysql # known=jdbc: [jdbc-year-zero] +02876_yyyymmddtodate # known=jdbc: [jdbc-year-zero] +02907_fromDaysSinceYearZero # known=jdbc: [jdbc-year-zero] +02982_changeDate # known=jdbc: [jdbc-year-zero] +03604_to_date_casts # known=jdbc: [jdbc-year-zero] +04402_datetime64_extended_range_review_fixes # known=jdbc: [jdbc-year-zero] +04511_add_days_fixed_offset_fast_path # known=jdbc: [jdbc-year-zero] +04600_to_date_or_null_integer_arguments # known=jdbc: [jdbc-year-zero] +04626_extend_date32_range # known=jdbc: [jdbc-year-zero] +04652_accurate_cast_numeric_to_date32 # known=jdbc: [jdbc-year-zero] +04669_date32_wide_unsigned_saturation # known=jdbc: [jdbc-year-zero] +04827_date32_numeric_field_range # known=jdbc: [jdbc-year-zero] +04926_kql_datetime_bin_overflow # known=jdbc: [jdbc-year-zero] +05112_time_filter_preimage_year_zero # known=jdbc: [jdbc-year-zero] +05227_to_week_mode_8_year_1900 # known=jdbc: [jdbc-year-zero] + +#----------------------------------------------------------------------------- +# [time64-negative-fraction] client: A negative Time64 value with a fraction is wrong +# DataTypeUtils.localTimeFromTime64Integer truncates the division and takes +# Math.abs of the remainder, so -1.5 s reads as -0.5 s. No error. +# Reproduction: +# SELECT toTime64('-00:00:01.5', 3) -- client: -00:00:00.500 +# Issue: not filed yet +# Backends: client +# Tests: client 12, jdbc 0 +03365_parsing_time_time64_short # known=client: [time64-negative-fraction] # known=jdbc: [jdbc-time-as-sql-time] +03365_time_time64_cap_max_time # known=client: [time64-negative-fraction] # known=jdbc: [jdbc-time-as-sql-time] +03365_time_time64_conversions # known=client: [time64-negative-fraction] # known=jdbc: [jdbc-time-as-sql-time] +03365_time_time64_extreme_values # known=client: [time64-negative-fraction] # known=jdbc: [jdbc-time-as-sql-time] +03365_time_time64_parsing # known=client: [time64-negative-fraction] # known=jdbc: [jdbc-time-as-sql-time] +04883_time64_convert_field_scale_overflow # known=client: [time64-negative-fraction] # known=jdbc: [jdbc-time-as-sql-time] +05042_datetime64_saturate_to_max_tick # known=client: [time64-negative-fraction] # known=jdbc: [jdbc-time-as-sql-time] +05099_date_time_overflow_behavior_datetime64 # known=client: [time64-negative-fraction] # known=jdbc: [jdbc-time-as-sql-time] +05218_datetime64_time64_in_constant_window # known=client: [time64-negative-fraction] # known=jdbc: [jdbc-time-as-sql-time] +05242_date_time_overflow_behavior_wide_numeric_carriers # known=client: [time64-negative-fraction] # known=jdbc: [jdbc-time-as-sql-time] +05244_date_time_overflow_behavior_values_expression_fallback # known=client: [time64-negative-fraction] # known=jdbc: [jdbc-time-as-sql-time] +05320_date_time_overflow_behavior_review_followups # known=client: [time64-negative-fraction] # known=jdbc: [jdbc-time-as-sql-time] + +#----------------------------------------------------------------------------- +# [string-invalid-utf8] client: String and FixedString bytes that are not valid UTF-8 read as U+FFFD +# The default String mapping decodes the bytes as UTF-8, also inside Array. +# No error. binary_string_support (off by default) reads top-level columns +# as bytes; the shim keeps the default. +# Reproduction: +# SELECT unhex('FF') -- U+FFFD, not the byte FF +# Issue: not filed yet +# Backends: client, jdbc +# Tests: client 9, jdbc 8 +# 01905_to_json_string # [string-invalid-utf8] +# 02234_cast_to_ip_address # [string-invalid-utf8] +# 02586_generate_random_structure # [string-invalid-utf8] +# 02998_analyzer_secret_args_tree_node # [string-invalid-utf8] +# 02998_ipv6_hashing # [string-invalid-utf8] +# 03095_msan_uuid_string_to_num # [string-invalid-utf8] +# 03447_base32_encode_decode # [string-invalid-utf8] +# 05175_extract_key_value_pairs_escaping_and_long_tokens # [string-invalid-utf8] +03595_funcs_on_zero # known=client: [string-invalid-utf8] # known=jdbc: [jdbc-interval-getobject] + +#----------------------------------------------------------------------------- +# [jdbc-array-in-variant] client: jdbc-v2 getObject on Array(Variant(...)) or Array(Dynamic) throws when an element is an array +# JdbcUtils.convertArray takes the number of dimensions from the column +# type and stops at the nested Java array. +# Reproduction: +# SELECT [[1, 2]::Variant(Array(UInt8), String), 'a'] +# -- jdbc: There is a child array at depth 0 where it is not expected +# Issue: not filed yet +# Backends: jdbc +# Tests: client 0, jdbc 7 +# 4 of the jdbc tests are in the section of their client group (known=jdbc: +# [jdbc-array-in-variant]): 03231_dynamic_incomplete_type_insert_bug, +# 03525_json_infer_array_of_dynamic_from_array_of_different_types, +# 04812_json_nested_array_size_subcolumn, +# 05213_json_shared_data_size_subcolumn_advanced. +02944_variant_as_common_type_analyzer # known=jdbc: [jdbc-array-in-variant] +04256_arrayRemove_variant_no_throw_on_mismatch # known=jdbc: [jdbc-array-in-variant] +04489_values_float32_conversion_and_in # known=jdbc: [jdbc-array-in-variant] + +#----------------------------------------------------------------------------- +# [format-clause-ignored] client: The FORMAT clause of a query is ignored, so FORMAT Null still sends all rows +# client-v2 sends its own output format (X-ClickHouse-Format) with each +# query, and the server prefers it to the FORMAT clause of the query. +# Reproduction: +# SELECT 1 AS x FORMAT Null -- 1 row, expected no data +# Issue: not filed yet +# Backends: client, jdbc +# Tests: client 3, jdbc 3 +# 01283_max_threads_simple_query_optimization # [format-clause-ignored] +# 01323_too_many_threads_bug # [format-clause-ignored] +# 03307_parallel_hash_max_joined_rows # [format-clause-ignored] + +#----------------------------------------------------------------------------- +# [type-json-shared-path] client: JSON type with SHARED typed paths is not parsed +# Inside Dynamic, the result has 0 rows and no error. +# Reproduction: +# SELECT CAST('{"a":1}' AS JSON(SHARED a UInt64)) +# -- Unknown data type: a UInt64 +# Issue: not filed yet +# Backends: client, jdbc +# Tests: client 3, jdbc 3 +# 05291_json_shared_typed_paths_type # [type-json-shared-path] +# 05427_json_shared_typed_paths_cache_key_collision # [type-json-shared-path] +# 05429_json_shared_typed_paths_nested_in_shared_data # [type-json-shared-path] + +#----------------------------------------------------------------------------- +# [map-duplicate-keys] client: A Map with the same key more than once keeps only the last entry +# The Map value is a LinkedHashMap. No error. +# Reproduction: +# SELECT map(1, 'a', 1, 'b') -- {1=b}, server: {1:'a',1:'b'} +# Issue: not filed yet +# Backends: client, jdbc +# Tests: client 2, jdbc 2 +# 01651_map_functions # [map-duplicate-keys] +# 02169_map_functions # [map-duplicate-keys] + +#----------------------------------------------------------------------------- +# [query-text-not-utf8] client: Query text with bytes that are not valid UTF-8 cannot be sent unchanged +# The query is a Java String (an API limit). The shim reads the test file +# as UTF-8, so the server gets other bytes. +# Reproduction: +# 02683: raw Native bytes in a string literal +# -- Unrecognized token, expected TOO_LARGE_STRING_SIZE +# Issue: not filed yet +# Backends: client, jdbc +# Tests: client 2, jdbc 2 +# 01957_heredoc_more # [query-text-not-utf8] +# 02683_native_too_large_size # [query-text-not-utf8] + +#----------------------------------------------------------------------------- +# [jdbc-duplicate-column-name] client: jdbc-v2 getObject(int) reads a column by its label, so duplicate column names give the value of the last one +# No error. +# Reproduction: +# SELECT *, 'redefined' AS my_field FROM VALUES('my_field String', 'orig') +# -- jdbc: redefined redefined +# Issue: not filed yet +# Backends: jdbc +# Tests: client 0, jdbc 2 +00819_full_join_wrong_columns_in_block # known=jdbc: [jdbc-duplicate-column-name] +04045_ambiguous_column_alias_values # known=jdbc: [jdbc-duplicate-column-name] + +#----------------------------------------------------------------------------- +# [type-enum-backslash] client: An Enum element name that ends in an escaped backslash breaks the type parser +# Reproduction: +# SELECT CAST('a' AS Enum8('a' = 1, 'b\\' = 2)) +# -- NumberFormatException: For input string: " 2)" +# Issue: not filed yet +# Backends: client, jdbc +# Tests: client 1, jdbc 1 +# 00298_enum_width_and_cast # [type-enum-backslash] + +#----------------------------------------------------------------------------- +# [http-compress-memory] client: The default response compression counts toward max_memory_usage of the query +# With compress_server_response = true (the default), the server compresses +# the response with ZSTD, and that memory counts. A query with a tight +# limit fails; it passes with compressServerResponse(false) and through +# clickhouse-client. Maybe intended. +# Reproduction: +# SET max_memory_usage = 9830400, memory_profiler_step = 1; +# SELECT sum(u) FROM (SELECT intDiv(number, 8192) AS k, +# uniqCombined(number % 8192) u FROM numbers(8192 * 100) GROUP BY k) +# -- MEMORY_LIMIT_EXCEEDED +# Issue: not filed yet +# Backends: client, jdbc +# Tests: client 1, jdbc 1 +# 01017_uniqCombined_memory_usage # [http-compress-memory] + +#----------------------------------------------------------------------------- +# [http-exception-in-stream] client: A server error after the response started is not reported +# The server sends X-ClickHouse-Exception-Tag, writes the error block and +# closes the connection; client-v2 does not read the error block. +# Reproduction: +# SELECT * FROM numbers(100000000) SETTINGS max_block_size = 1, +# timeout_before_checking_execution_speed = 1, max_estimated_execution_time = 2, +# timeout_overflow_mode = 'throw' +# -- Premature end of chunk coded message body, expected Code: 160 (TOO_SLOW) +# Issue: not filed yet +# Backends: client, jdbc +# Tests: client 1, jdbc 1 +# 02896_max_execution_time_with_break_overflow_mode # [http-exception-in-stream] + +#----------------------------------------------------------------------------- +# [json-decode] client: JSON columns fail to decode for some data +# Reproduction: +# SELECT materialize('{"a" : [[1, {}], null]}')::JSON SETTINGS +# input_format_json_infer_array_of_dynamic_from_array_of_different_types = 0 +# -- Missing nested data type +# Issue: not filed yet +# Backends: client, jdbc +# Tests: client 1, jdbc 1 +# 03229_json_null_as_default_for_tuple # [json-decode] + +#----------------------------------------------------------------------------- +# [json-as-string-setting] client: With output_format_binary_write_json_as_string = 1, a result with a JSON column has 0 rows +# The server writes the JSON value as a String; client-v2 decodes it as +# binary JSON. No error. +# Reproduction: +# SET output_format_binary_write_json_as_string = 1; +# SELECT '{"a":1}'::JSON AS j, 7 AS x -- 0 rows +# Issue: not filed yet +# Backends: client, jdbc +# Tests: client 1, jdbc 1 +# 03283_json_binary_serialization_use_default_settings # [json-as-string-setting] + +#----------------------------------------------------------------------------- +# [format-header-case] client: The X-ClickHouse-Format response header is parsed case-sensitively +# Format names are case-insensitive. +# Reproduction: +# SET compatibility = '23.3'; SELECT 1 FORMAT NULL +# -- No enum constant com.clickhouse.data.ClickHouseFormat.NULL +# Issue: not filed yet +# Backends: client, jdbc +# Tests: client 1, jdbc 1 +# 03773_nullable_sparse_join # [format-header-case] + +#----------------------------------------------------------------------------- +# [variant-member-order] client: Variant members are not in the server order, so a value reads as the wrong member +# readColumn sorts the members by their base data type name +# (LowCardinality(String) sorts as String), the server by the full type +# name. A wrong value, an EOFException, or 0 rows and no error. +# Reproduction: +# SELECT CAST('s' AS Variant(LowCardinality(String), Map(String, String))) AS v, +# 'x' AS m -- 0 rows +# Issue: not filed yet +# Backends: client, jdbc +# Tests: client 1, jdbc 1 +# 04327_variant_map_statistics_merge_discriminator # [variant-member-order] + +#----------------------------------------------------------------------------- +# [jdbc-kill-no-resultset] client: jdbc-v2 Statement.execute of KILL MUTATION gives no result set +# execute() returns false, so the rows of the server are lost; client-v2 +# reads them. +# Reproduction: +# KILL MUTATION WHERE database = currentDatabase() AND table = 't' +# -- jdbc: no result set, the server sends 1 row +# Issue: not filed yet +# Backends: jdbc +# Tests: client 0, jdbc 1 +01414_mutations_and_errors # known=jdbc: [jdbc-kill-no-resultset] + +#----------------------------------------------------------------------------- +# [jdbc-array-of-geo] client: jdbc-v2 getObject on Array(Ring), Array(Geometry) or Array(Array(Geometry)) throws NullPointerException +# client-v2 reads the same values. +# Reproduction: +# SELECT [[(1, 2)]::Ring] -- jdbc: NullPointerException +# Issue: not filed yet +# Backends: jdbc +# Tests: client 0, jdbc 1 +05059_nested_variant_constant_folding_distributed # known=jdbc: [jdbc-array-of-geo] + +#----------------------------------------------------------------------------- +# [jdbc-set-role] client: jdbc-v2 reads SET ROLE ALL and SET ROLE DEFAULT as a role named ALL or DEFAULT +# jdbc-v2 then sends the role with each request, so each later statement +# fails with UNKNOWN_ROLE. +# Reproduction: +# SET ROLE ALL; SELECT 2 -- jdbc: Code: 511. There is no role `ALL` +# Issue: not filed yet +# Backends: jdbc +# Tests: client 0, jdbc 1 +05153_trino_dialect_wrappers_and_set # known=jdbc: [jdbc-set-role] + +#----------------------------------------------------------------------------- +# [shim-output-format] shim: Output formats other than the TabSeparated family and Null +# The shim reads typed values and writes only TabSeparated text. +# Backends: client, jdbc +# Tests: client 280, jdbc 280 +# 00006_extremes_and_subquery_from # [shim-output-format] +# 00017_in_subquery_with_empty_result # [shim-output-format] +# 00037_totals_limit # [shim-output-format] +# 00085_visible_width_of_tuple_of_dates # [shim-output-format] +# 00098_k_union_all # [shim-output-format] +# 00175_partition_by_ignore # [shim-output-format] +# 00231_format_vertical_raw # [shim-output-format] +# 00285_not_all_data_in_totals # [shim-output-format] +# 00300_csv # [shim-output-format] +# 00307_format_xml # [shim-output-format] +# 00308_write_buffer_valid_utf8 # [shim-output-format] +# 00309_formats # [shim-output-format] +# 00367_visible_width_of_array_tuple_enum # [shim-output-format] +# 00378_json_quote_64bit_integers # [shim-output-format] +# 00383_utf8_validation # [shim-output-format] +# 00393_if_with_constant_condition # [shim-output-format] +# 00405_output_format_pretty_color # [shim-output-format] +# 00405_pretty_formats # [shim-output-format] +# 00406_tuples_with_nulls # [shim-output-format] +# 00436_convert_charset # [shim-output-format] +# 00460_vertical_and_totals_extremes # [shim-output-format] +# 00476_pretty_formats_and_widths # [shim-output-format] +# 00490_special_line_separators_and_characters_outside_of_bmp # [shim-output-format] +# 00569_parse_date_time_best_effort # [shim-output-format] +# 00585_union_all_subquery_aggregation_column_removal # [shim-output-format] +# 00597_with_totals_on_empty_set # [shim-output-format] +# 00632_aggregation_window_funnel # [shim-output-format] +# 00674_join_on_syntax # [shim-output-format] +# 00685_output_format_json_escape_forward_slashes # [shim-output-format] +# 00695_pretty_max_column_pad_width # [shim-output-format] +# 00700_decimal_formats # [shim-output-format] +# 00722_inner_join # [shim-output-format] +# 00730_unicode_terminal_format # [shim-output-format] +# 00760_insert_json_with_defaults # [shim-output-format] +# 00802_system_parts_with_datetime_partition # [shim-output-format] +# 00803_odbc_driver_2_format # [shim-output-format] +# 00813_parse_date_time_best_effort_more # [shim-output-format] +# 00818_inner_join_bug_3567 # [shim-output-format] +# 00820_multiple_joins # [shim-output-format] +# 00820_multiple_joins_subquery_requires_alias # [shim-output-format] +# 00847_multiple_join_same_column # [shim-output-format] +# 01018_ambiguous_column # [shim-output-format] +# 01034_JSONCompactEachRow # [shim-output-format] +# 01070_template_empty_file # [shim-output-format] +# 01073_crlf_end_of_line # [shim-output-format] +# 01074_partial_revokes # [shim-output-format] +# 01231_markdown_format # [shim-output-format] +# 01250_fixed_string_comparison # [shim-output-format] +# 01293_pretty_max_value_width # [shim-output-format] +# 01324_insert_tsv_raw # [shim-output-format] +# 01351_parse_date_time_best_effort_us # [shim-output-format] +# 01447_json_strings # [shim-output-format] +# 01448_json_compact_strings_each_row # [shim-output-format] +# 01449_json_compact_strings # [shim-output-format] +# 01472_many_rows_in_totals # [shim-output-format] +# 01486_json_array_output # [shim-output-format] +# 01499_json_named_tuples # [shim-output-format] +# 01509_output_format_pretty_row_numbers # [shim-output-format] +# 01550_type_map_formats # [shim-output-format] +# 01553_settings_early_apply # [shim-output-format] +# 01590_countSubstrings # [shim-output-format] +# 01601_detach_permanently # [shim-output-format] +# 01611_constant_folding_subqueries # [shim-output-format] +# 01633_limit_fuzz # [shim-output-format] +# 01640_marks_corruption_regression # [shim-output-format] +# 01645_system_table_engines # [shim-output-format] +# 01656_ipv4_bad_formatting # [shim-output-format] +# 01660_second_extremes_bug # [shim-output-format] +# 01670_neighbor_lc_bug # [shim-output-format] +# 01671_merge_join_and_constants # [shim-output-format] +# 01825_json_type_10 # [shim-output-format] +# 01825_json_type_in_array # [shim-output-format] +# 01825_json_type_partitions # [shim-output-format] +# 01890_state_of_state # [shim-output-format] +# 01913_exact_rows_before_limit # [shim-output-format] +# 01927_query_views_log_current_database # [shim-output-format] +# 01939_type_map_json # [shim-output-format] +# 01942_dateTimeToSnowflakeID # [shim-output-format] +# 01942_snowflakeIDToDateTime # [shim-output-format] +# 01946_profile_sleep # [shim-output-format] +# 01947_mv_subquery # [shim-output-format] +# 01958_partial_hour_timezone # [shim-output-format] +# 02026_describe_include_subcolumns # [shim-output-format] +# 02029_output_csv_null_representation # [shim-output-format] +# 02071_lower_upper_utf8_row_overlaps # [shim-output-format] +# 02111_json_column_name_encoding # [shim-output-format] +# 02114_bool_type # [shim-output-format] +# 02125_query_views_log # [shim-output-format] +# 02152_bool_type # [shim-output-format] +# 02157_line_as_string_output_format # [shim-output-format] +# 02180_group_by_lowcardinality # [shim-output-format] +# 02184_hash_functions_and_ip_types # [shim-output-format] +# 02184_nested_tuple # [shim-output-format] +# 02267_jsonlines_ndjson_format # [shim-output-format] +# 02267_output_format_prometheus # [shim-output-format] +# 02270_client_name # [shim-output-format] +# 02286_tuple_numeric_identifier # [shim-output-format] +# 02322_sql_insert_format # [shim-output-format] +# 02346_text_index_bug62681 # [shim-output-format] +# 02356_insert_query_log_metrics # [shim-output-format] +# 02375_double_escaping_json # [shim-output-format] +# 02375_pretty_formats # [shim-output-format] +# 02381_parseDateTime64BestEffortUS # [shim-output-format] +# 02400_memory_accounting_on_error # [shim-output-format] +# 02417_json_object_each_row_format # [shim-output-format] +# 02421_formats_with_totals_and_extremes # [shim-output-format] +# 02421_json_decimals_as_strings # [shim-output-format] +# 02423_json_quote_float64 # [shim-output-format] +# 02428_batch_nullable_assert # [shim-output-format] +# 02452_json_utf8_validation # [shim-output-format] +# 02454_json_object_each_row_column_for_object_name # [shim-output-format] +# 02456_alter-nullable-column-bag # [shim-output-format] +# 02483_cuturlparameter_with_arrays # [shim-output-format] +# 02494_query_cache_bugs # [shim-output-format] +# 02494_query_cache_ignore_output_settings # [shim-output-format] +# 02523_range_const_start # [shim-output-format] +# 02552_client_format_settings # [shim-output-format] +# 02553_json_type_attach_partition # [shim-output-format] +# 02554_format_json_columns_for_empty # [shim-output-format] +# 02560_vertical_merge_memory_usage # [shim-output-format] +# 02591_bson_long_tuple # [shim-output-format] +# 02717_pretty_json # [shim-output-format] +# 02751_ip_types_aggregate_functions_states # [shim-output-format] +# 02780_final_streams_data_skipping_index # [shim-output-format] +# 02783_parsedatetimebesteffort_syslog # [shim-output-format] +# 02789_describe_table_settings # [shim-output-format] +# 02790_sql_standard_fetch # [shim-output-format] +# 02798_explain_settings_not_applied_bug # [shim-output-format] +# 02813_system_licenses_base # [shim-output-format] +# 02845_domain_rfc_support_ipv6 # [shim-output-format] +# 02861_uuid_format_serialization # [shim-output-format] +# 02890_untuple_column_names # [shim-output-format] +# 02892_rocksdb_trivial_count # [shim-output-format] +# 02902_json_skip_null_values # [shim-output-format] +# 02916_set_formatting # [shim-output-format] +# 02932_idna # [shim-output-format] +# 02932_punycode # [shim-output-format] +# 02940_variant_text_deserialization # [shim-output-format] +# 02947_merge_tree_index_table_1 # [shim-output-format] +# 02947_merge_tree_index_table_2 # [shim-output-format] +# 02947_merge_tree_index_table_4 # [shim-output-format] +# 02966_topk_counts_approx_count_sum # [shim-output-format] +# 02971_functions_to_subcolumns_column_names # [shim-output-format] +# 02982_create_mv_inner_extra # [shim-output-format] +# 02993_lazy_index_loading # [shim-output-format] +# 02993_values_escape_quote # [shim-output-format] +# 02994_inconsistent_formatting # [shim-output-format] +# 02998_pretty_format_print_readable_number_if_last_column # [shim-output-format] +# 03011_definitive_guide_to_cast # [shim-output-format] +# 03019_numbers_pretty # [shim-output-format] +# 03022_highlight_digit_groups # [shim-output-format] +# 03033_dynamic_text_serialization # [shim-output-format] +# 03035_argMinMax_numeric_non_extreme_bug # [shim-output-format] +# 03142_skip_ANSI_in_UTF8_compute_width # [shim-output-format] +# 03145_unicode_quotes # [shim-output-format] +# 03147_rows_before_limit_fix # [shim-output-format] +# 03149_analyzer_join_projection_name # [shim-output-format] +# 03149_analyzer_join_projection_name_2 # [shim-output-format] +# 03150_infer_type_variant # [shim-output-format] +# 03156_nullable_number_tips # [shim-output-format] +# 03162_dynamic_type_nested # [shim-output-format] +# 03164_create_as_default # [shim-output-format] +# 03169_display_column_names_in_footer # [shim-output-format] +# 03203_function_printf # [shim-output-format] +# 03207_json_read_subcolumns_1_1_wide_merge_tree # [shim-output-format] +# 03207_json_read_subcolumns_1_2_wide_merge_tree # [shim-output-format] +# 03207_json_read_subcolumns_1_3_wide_merge_tree # [shim-output-format] +# 03207_json_read_subcolumns_1_compact_merge_tree # [shim-output-format] +# 03211_convert_outer_join_to_inner_join_anti_join # [shim-output-format] +# 03221_incomplete_utf8_sequence # [shim-output-format] +# 03224_trim_empty_string # [shim-output-format] +# 03254_attach_part_order # [shim-output-format] +# 03254_normalize_aggregate_states_with_named_tuple_args # [shim-output-format] +# 03254_timeseries_functions # [shim-output-format] +# 03254_timeseries_functions_with_resets # [shim-output-format] +# 03255_merge_mutation_start_entry_in_the_part_log # [shim-output-format] +# 03268_nested_analyzer # [shim-output-format] +# 03268_vertical_pretty_numbers # [shim-output-format] +# 03269_bf16 # [shim-output-format] +# 03273_dynamic_pretty_json_serialization # [shim-output-format] +# 03274_json_pretty_output # [shim-output-format] +# 03274_json_to_json_alter_nested_json # [shim-output-format] +# 03282_highlight_trailing_whitespace_pretty # [shim-output-format] +# 03297_cut_column_name # [shim-output-format] +# 03298_vertical_columns # [shim-output-format] +# 03299_pretty_squash # [shim-output-format] +# 03300_pretty_vertical_cut # [shim-output-format] +# 03303_pretty_multiline # [shim-output-format] +# 03304_pretty_fallback_to_vertical # [shim-output-format] +# 03315_join_temporary_table_names # [shim-output-format] +# 03317_pretty_fallback_to_vertical_consistent # [shim-output-format] +# 03340_projections_formatting # [shim-output-format] +# 03364_pretty_json_bool # [shim-output-format] +# 03365_time_datetime_operations # [shim-output-format] +# 03400_output_format_float_precision # [shim-output-format] +# 03403_mv_errors # [shim-output-format] +# 03408_limit_by_rows_before_limit # [shim-output-format] +# 03408_limit_by_rows_before_limit_mem # [shim-output-format] +# 03415_dont_highlight_probable_hashes # [shim-output-format] +# 03416_glue_chunks # [shim-output-format] +# 03440_no_glue_totals # [shim-output-format] +# 03469_json_read_subcolumns_combined_1_compact_merge_tree # [shim-output-format] +# 03469_json_read_subcolumns_combined_1_wide_merge_tree # [shim-output-format] +# 03519_ttl_extended_data_types # [shim-output-format] +# 03535_system_formats # [shim-output-format] +# 03538_analyzer_lag_lead_functions # [shim-output-format] +# 03566_system_completions_table # [shim-output-format] +# 03571_nullable_format_digit_groups # [shim-output-format] +# 03573_linear_regression_timeseries_functions # [shim-output-format] +# 03577_hash_output_format # [shim-output-format] +# 03595_changes_timeseries_functions # [shim-output-format] +# 03595_set_query_no_eq_set_to_one # [shim-output-format] +# 03640_alter_table_rewrite_parts # [shim-output-format] +# 03640_load_marks_synchronously # [shim-output-format] +# 03640_multiple_mutations_with_error_with_rewrite_parts # [shim-output-format] +# 03640_multiple_mutations_with_rewrite_parts # [shim-output-format] +# 03644_rows_before_aggregation_in_order # [shim-output-format] +# 03700_vertical_format_pretty_print_json # [shim-output-format] +# 03727_named_tuples_pretty_format # [shim-output-format] +# 03729_function_hmac # [shim-output-format] +# 03729_function_hmac_fips # [shim-output-format] +# 03735_async_insert_mergetree # [shim-output-format] +# 03751_fixed_string_escape_quote_with_quote # [shim-output-format] +# 03759_marks_cache_events # [shim-output-format] +# 03794_read_in_order_virtual_row_and_sparse_primary_key_msan # [shim-output-format] +# 03795_hash_output_format_blocks # [shim-output-format] +# 03799_any_left_join_isnotnull_crash # [shim-output-format] +# 03799_avg_date_time_types # [shim-output-format] +# 03890_output_format_trim_fixed_string # [shim-output-format] +# 04049_cuturlparameter_pattern_matching # [shim-output-format] +# 04049_primes_max_rows_to_read # [shim-output-format] +# 04050_join_order_randomize # [shim-output-format] +# 04053_limit_push_down_union # [shim-output-format] +# 04063_negative_limit_fractional_limit_rows_before_limit_at_least # [shim-output-format] +# 04067_columns_cache_partial_granule_reads # [shim-output-format] +# 04122_serialization_time64_formats # [shim-output-format] +# 04141_json_extract_variant_no_int_truncation # [shim-output-format] +# 04233_right_utf8_invalid_utf8_determinism # [shim-output-format] +# 04238_incomplete_utf8_column_name_json # [shim-output-format] +# 04261_105441_dynamic_quoted_empty_array_map_key # [shim-output-format] +# 04294_102812_inject_random_order_preserve_column_names # [shim-output-format] +# 04303_limit_after_until_side_effects # [shim-output-format] +# 04327_always_write_decimal_point_in_float_and_decimal # [shim-output-format] +# 04329_array_tuple_fill_missing_column_bad_cast # [shim-output-format] +# 04337_jsonl_input_output_format # [shim-output-format] +# 04346_limit_after_rows_before_limit # [shim-output-format] +# 04355_limit_after_rows_before_limit_counter # [shim-output-format] +# 04402_geojson_output_format # [shim-output-format] +# 04404_geojson_output_geometry # [shim-output-format] +# 04405_geojson_output_properties # [shim-output-format] +# 04406_geojson_output_validation # [shim-output-format] +# 04410_geojson_input_ignored_nonfinite_numbers # [shim-output-format] +# 04411_geojson_validate_geometry # [shim-output-format] +# 04420_vertical_format_display_control_characters # [shim-output-format] +# 04510_geojson_multipoint # [shim-output-format] +# 04628_timeseries_sum_avg_count_over_time # [shim-output-format] +# 04628_variance_timeseries_functions # [shim-output-format] +# 04671_datetime64_time64_cut_trailing_zeros_scale_gt6 # [shim-output-format] +# 04845_distinct_limit_hint_with_ties # [shim-output-format] +# 04927_substreams_cache_key_collision # [shim-output-format] +# 05024_pretty_named_tuples_as_subcolumns # [shim-output-format] +# 05043_pretty_named_tuples_subcolumns_nullable_and_single_value # [shim-output-format] +# 05045_vertical_control_pictures_highlight_trailing_whitespace # [shim-output-format] +# 05055_pretty_uncut_single_value_grid_width # [shim-output-format] +# 05056_pretty_tab_alignment_after_widening # [shim-output-format] +# 05056_timeseries_group_array_merge_states # [shim-output-format] +# 05067_serialization_interval_json_csv # [shim-output-format] +# 05068_limit_after_exact_rows_before_limit_early_finish # [shim-output-format] +# 05141_max_min_over_time_timeseries_functions # [shim-output-format] +# 05153_domain_rfc_multiple_at_sign # [shim-output-format] +# 05153_limit_by_const_with_totals # [shim-output-format] +# 05155_domain_rfc_ipvfuture # [shim-output-format] +# 05156_domain_rfc_dot_after_port # [shim-output-format] +# 05212_domain_rfc_invalid_scheme # [shim-output-format] +# 05213_domain_without_www_leading_dot # [shim-output-format] +# 05218_pretty_named_tuple_subcolumns_glue_chunks_row_number_width # [shim-output-format] +# 05229_pretty_format_display_control_characters # [shim-output-format] +# 05259_pretty_multiline_tab_in_later_column # [shim-output-format] +# 05325_analyzer_lazy_alias_columns # [shim-output-format] +# 05617_limit_zero_skips_range_analysis # [shim-output-format] + +#----------------------------------------------------------------------------- +# [shim-render-json] shim: No TabSeparated renderer for JSON +# client-v2 gives a JSON value as a map of paths, without the order and +# the types of the paths. +# Backends: client, jdbc +# Tests: client 97, jdbc 97 +# 01825_json_type_18 # [shim-render-json] +# 01825_json_type_bools # [shim-render-json] +# 01825_json_type_ephemeral # [shim-render-json] +# 01825_json_type_insert_select # [shim-render-json] +# 01825_json_type_mutations # [shim-render-json] +# 01825_json_type_order_by # [shim-render-json] +# 02969_mysql_cast_type_aliases # [shim-render-json] +# 03100_lwu_26_subcolumns # [shim-render-json] +# 03157_dynamic_type_json # [shim-render-json] +# 03205_json_cast_from_string # [shim-render-json] +# 03214_json_typed_dynamic_path # [shim-render-json] +# 03228_variant_permutation_issue # [shim-render-json] +# 03229_json_structure_comparison # [shim-render-json] +# 03232_json_uniq_group_by # [shim-render-json] +# 03250_json_group_by_sub_object_subcolumn # [shim-render-json] +# 03257_json_escape_file_names # [shim-render-json] +# 03261_tuple_map_to_json_cast # [shim-render-json] +# 03272_json_to_json_cast_1 # [shim-render-json] +# 03272_json_to_json_cast_3 # [shim-render-json] +# 03272_json_to_json_cast_4 # [shim-render-json] +# 03272_json_to_json_cast_5 # [shim-render-json] +# 03272_json_to_json_cast_6 # [shim-render-json] +# 03279_not_empty_json # [shim-render-json] +# 03280_json_subcolumns_in_primary_key_select_final # [shim-render-json] +# 03282_json_equal_comparison # [shim-render-json] +# 03292_nullable_json_schema_inference # [shim-render-json] +# 03300_nested_json_empty_keys # [shim-render-json] +# 03311_constantnode # [shim-render-json] +# 03311_subcolumns_in_default_and_materialized_expressions # [shim-render-json] +# 03312_json_literal_remote # [shim-render-json] +# 03363_read_json_and_subcolumns_from_view # [shim-render-json] +# 03376_json_comparison # [shim-render-json] +# 03382_dynamic_serialization_default_settings # [shim-render-json] +# 03442_json_duplicate_path # [shim-render-json] +# 03445_subcolumns_prewhere_pushdown # [shim-render-json] +# 03447_order_by_json_and_other_column # [shim-render-json] +# 03525_json_extract_datetime64_from_numbers # [shim-render-json] +# 03532_dynamic_flattened_serialization_bug # [shim-render-json] +# 03550_variant_extend_union # [shim-render-json] +# 03553_json_shared_data_map_serialization # [shim-render-json] +# 03561_materialized_subcolumns_materialized_view # [shim-render-json] +# 03573_json_keys_with_dots # [shim-render-json] +# 03577_dynamic_json_update_issue # [shim-render-json] +# 03579_zero_copy_aggregating_final_anyLast # [shim-render-json] +# 03596_alter_update_column_with_subcolumn_used_in_materialized_expression # [shim-render-json] +# 03598_json_enum_default_value_in_typed_path # [shim-render-json] +# 03601_json_from_string_accurate_cast_or_null # [shim-render-json] +# 03606_nullable_json_group_by # [shim-render-json] +# 03639_hash_of_json_column # [shim-render-json] +# 03641_json_array_of_float_and_bool # [shim-render-json] +# 03701_json_duplicate_path_insert_select # [shim-render-json] +# 03702_json_datetime_format_settings # [shim-render-json] +# 03711_json_skip_invalid_fields # [shim-render-json] +# 03712_json_advanced_shared_data_bug # [shim-render-json] +# 03762_has_in_function_key_condition_deterministic_function_chain # [shim-render-json] +# 03762_parquet_cast_to_json # [shim-render-json] +# 03773_json_with_typed_path_skip # [shim-render-json] +# 03774_json_skip_regexp_partial_match # [shim-render-json] +# 03776_subcolumns_in_partition_by # [shim-render-json] +# 03779_json_allow_duplicated_path_with_nested_object_and_literal # [shim-render-json] +# 03780_json_typed_paths_with_same_prefix # [shim-render-json] +# 03815_array_of_json_in_tuple_element # [shim-render-json] +# 03821_json_skip_path_fix # [shim-render-json] +# 03924_duplicated_key_with_literal_and_nested_object_in_typed_paths_in_json # [shim-render-json] +# 03925_json_shared_data_buckets_missing_stream_bug # [shim-render-json] +# 03928_json_advanced_shared_data_bug # [shim-render-json] +# 04032_json_subcolumn_in_projection_sorting_key # [shim-render-json] +# 04039_json_typed_path_nested_subcolumn # [shim-render-json] +# 04058_json_all_values # [shim-render-json] +# 04096_text_index_json_subcolumn # [shim-render-json] +# 04103_full_sorting_merge_left_join_nullable_json # [shim-render-json] +# 04115_json_combined_subcolumn_empty_json # [shim-render-json] +# 04262_singleValueOrNull_json_deserialize # [shim-render-json] +# 04326_json_skip_null_typed_paths # [shim-render-json] +# 04331_type_json_allow_duplicated_key_with_literal_and_nested_object_typed_paths # [shim-render-json] +# 04423_json_advanced_chunked_shared_data_bug_1 # [shim-render-json] +# 04424_json_advanced_chunked_shared_data_bug_2 # [shim-render-json] +# 04508_datetime_number_input_raw_value_compatibility # [shim-render-json] +# 04510_accurateCastOrDefault_settings # [shim-render-json] +# 04522_json_extract_datetime64_fractional_precision # [shim-render-json] +# 04628_json_order_by_shared_data # [shim-render-json] +# 04648_replicate_generic_no_quadratic_realloc # [shim-render-json] +# 04692_insert_dedup_json_path_names # [shim-render-json] +# 04811_json_big_integers # [shim-render-json] +# 04811_json_shared_data_advanced_compact_empty_nested_granule # [shim-render-json] +# 04813_json_typed_paths_default_insert # [shim-render-json] +# 05019_trino_dialect # [shim-render-json] +# 05020_json_max_dynamic_subcolumns_in_parsing_squashing # [shim-render-json] +# 05060_row_binary_huge_string_size # [shim-render-json] +# 05182_json_shared_data_bucketed_map_compact_no_substream_marks # [shim-render-json] +# 05210_json_compact_full_and_subcolumn_cache # [shim-render-json] +# 05218_json_has_null_typed_path_subobject # [shim-render-json] +# 05218_json_type_deep_recursion # [shim-render-json] +# 05238_generate_random_json # [shim-render-json] +# 05316_json_lazy_type_hints_mutations # [shim-render-json] +# 05317_json_lazy_type_hints_non_hint_changes # [shim-render-json] +# 05325_rename_nested_leaf_json_dynamic_mutation # [shim-render-json] + +#----------------------------------------------------------------------------- +# [shim-render-dynamic] shim: No TabSeparated renderer for Dynamic +# A Dynamic value has no type, so the type-directed renderer cannot write +# it as the server does. +# Backends: client, jdbc +# Tests: client 96, jdbc 92 +# 02813_optimize_lazy_materialization # [shim-render-dynamic] +# 03034_dynamic_conversions # [shim-render-dynamic] +# 03035_dynamic_sorting # [shim-render-dynamic] +# 03036_dynamic_read_shared_subcolumns_small # [shim-render-dynamic] +# 03036_dynamic_read_subcolumns_small # [shim-render-dynamic] +# 03040_dynamic_type_alters_1_compact_merge_tree # [shim-render-dynamic] +# 03040_dynamic_type_alters_1_memory # [shim-render-dynamic] +# 03040_dynamic_type_alters_1_wide_merge_tree # [shim-render-dynamic] +# 03040_dynamic_type_alters_2_compact_merge_tree # [shim-render-dynamic] +# 03040_dynamic_type_alters_2_wide_merge_tree # [shim-render-dynamic] +# 03150_dynamic_type_mv_insert # [shim-render-dynamic] +# 03151_dynamic_type_scale_max_types # [shim-render-dynamic] +# 03152_dynamic_type_simple # [shim-render-dynamic] +# 03153_dynamic_type_empty # [shim-render-dynamic] +# 03158_dynamic_type_from_variant # [shim-render-dynamic] +# 03159_dynamic_type_all_types # [shim-render-dynamic] +# 03163_dynamic_as_supertype # [shim-render-dynamic] +# 03199_json_extract_dynamic # [shim-render-dynamic] +# 03228_dynamic_subcolumns_from_subquery # [shim-render-dynamic] +# 03231_dynamic_uniq_group_by # [shim-render-dynamic] +# 03231_dynamic_variant_in_order_by_group_by # [shim-render-dynamic] +# 03233_dynamic_in_functions # [shim-render-dynamic] +# 03273_better_json_subcolumns_parsing # [shim-render-dynamic] +# 03280_dynamic_if_null # [shim-render-dynamic] +# 03281_dynamic_coalesce # [shim-render-dynamic] +# 03371_dynamic_values_parsing_templates # [shim-render-dynamic] +# 03373_qbit_dynamic # [shim-render-dynamic] +# 03381_remote_constants # [shim-render-dynamic] +# 03411_summing_merge_tree_dynamic_values # [shim-render-dynamic] +# 03412_dynamic_in_arg_min_max # [shim-render-dynamic] +# 03457_merge_engine_subcolumns # [shim-render-dynamic] +# 03577_vairant_lazy_materialization_bug # [shim-render-dynamic] +# 03628_subcolumns_of_columns_with_dot_in_name # [shim-render-dynamic] +# 03707_function_array_remove # [shim-render-dynamic] +# 03722_json_compact_part_substreams_cache_bug # [shim-render-dynamic] +# 03726_array_union_with_dynamic_argument # [shim-render-dynamic] +# 03741_adaptive_write_buffer_initial_size_zero # [shim-render-dynamic] +# 03750_json_in_tuple_element # [shim-render-dynamic] +# 03815_tuple_element_with_json # [shim-render-dynamic] +# 03822_map_json_dictionary # [shim-render-dynamic] +# 03916_json_lazy_type_hints # [shim-render-dynamic] +# 03917_json_lazy_type_hints_mixed_parts # [shim-render-dynamic] +# 03991_json_single_bucket_empty_shared_data # [shim-render-dynamic] +# 04029_json_typed_path_type_hint_subcolumn # [shim-render-dynamic] +# 04036_dynamic_statistics_invalidation # [shim-render-dynamic] +# 04038_json_array_element_to_subcolumn # [shim-render-dynamic] +# 04057_json_variant_offsets_cache_bug # [shim-render-dynamic] +# 04058_topk_dynamic_filtering_with_dynamic_type # [shim-render-dynamic] +# 04093_case_with_expression_dynamic # [shim-render-dynamic] +# 04101_json_skip_regexp_parentheses_in_type_hint # [shim-render-dynamic] +# 04117_join_equi_key_filter_pushdown_right_full # [shim-render-dynamic] +# 04121_json_extract_types_edges # [shim-render-dynamic] +# 04234_check_table_json_wide # [shim-render-dynamic] +# 04259_window_partition_by_dynamic_variant_validation # [shim-render-dynamic] +# 04264_variant_throw_on_type_mismatch_execute # [shim-render-dynamic] +# 04269_nullable_json_null_subcolumn # [shim-render-dynamic] +# 04326_json_array_element # [shim-render-dynamic] +# 04327_json_array_element_escape_dots # [shim-render-dynamic] +# 04327_runtime_filter_nested_variant # [shim-render-dynamic] +# 04337_variant_to_column_inplace_mutation # [shim-render-dynamic] +# 04408_decimal_constant_exact_serialization_dist # [shim-render-dynamic] +# 04507_json_bracket_subcolumn_collision_guard # [shim-render-dynamic] +# 04512_accurateCastOrDefault_nullable_target # [shim-render-dynamic] +# 04545_getsubcolumn_json_type_hint_no_crash # [shim-render-dynamic] +# 04602_group_by_all_suspicious_types # [shim-render-dynamic] +# 04611_substreams_cache_ownership_validator_whole_path # [shim-render-dynamic] +# 04628_logical_optimizer_in_rewrite_variant_type # [shim-render-dynamic] +# 04647_buffer_dynamic_subcolumn # [shim-render-dynamic] +# 04648_tsv_schema_inference_leading_zero_decimals # [shim-render-dynamic] +# 04652_schema_inference_float_parser_parity # [shim-render-dynamic] +# 04753_dynamic_map_buckets_pooled_serialization # [shim-render-dynamic] +# 04891_tuple_element_nullable_json # [shim-render-dynamic] +# 04935_optimize_functions_to_subcolumns_name_collision # [shim-render-dynamic] +# 04946_dynamic_adaptor_nothing_type # [shim-render-dynamic] +# 05037_rename_column_materialized_by_merge # [shim-render-dynamic] +# 05038_cast_literal_read_with_target_type # [shim-render-dynamic] +# 05054_deduplicated_rows_need_query_determinism # [shim-render-dynamic] +# 05076_merge_refused_before_pending_rename_column # [shim-render-dynamic] +# 05104_array_intersect_nullable_overflow # [shim-render-dynamic] +# 05136_json_shared_data_bucketed_map_without_statistics # [shim-render-dynamic] +# 05182_json_bracket_nullable_and_chain_semantics # [shim-render-dynamic] +# 05210_json_bracket_nullable_key # [shim-render-dynamic] +# 05212_nullable_tuple_element_to_subcolumn # [shim-render-dynamic] +# 05218_dynamic_json_constant_deep_recursion # [shim-render-dynamic] +# 05229_cast_array_of_map_to_variant # [shim-render-dynamic] +# 05237_generate_random_variant_dynamic # [shim-render-dynamic] +# 05260_nested_json_wide_parts # [shim-render-dynamic] +# 05292_json_shared_typed_paths_resolution # [shim-render-dynamic] +# 05293_json_shared_typed_paths_nested_column # [shim-render-dynamic] +# 05293_memory_nested_member_added_by_alter # [shim-render-dynamic] +# 05320_nested_member_added_by_alter_subcolumns # [shim-render-dynamic] +# 05366_json_path_element_not_string_subcolumn_rewrite # [shim-render-dynamic] +03231_dynamic_incomplete_type_insert_bug # known=client: [shim-render-dynamic] # known=jdbc: [jdbc-array-in-variant] +03525_json_infer_array_of_dynamic_from_array_of_different_types # known=client: [shim-render-dynamic] # known=jdbc: [jdbc-array-in-variant] +04812_json_nested_array_size_subcolumn # known=client: [shim-render-dynamic] # known=jdbc: [jdbc-array-in-variant] +05213_json_shared_data_size_subcolumn_advanced # known=client: [shim-render-dynamic] # known=jdbc: [jdbc-array-in-variant] + +#----------------------------------------------------------------------------- +# [shim-kql-split] shim: KQL statements are split by SQL rules +# In KQL, a statement can end at a newline, and let statements end with a +# semicolon. +# Backends: client, jdbc +# Tests: client 13, jdbc 11 +# 02366_kql_datatype # [shim-kql-split] +# 04670_kql_pipeline # [shim-kql-split] +# 04675_kql_user_defined_functions # [shim-kql-split] +# 04700_kql_join_let_bin_regressions # [shim-kql-split] +# 04813_kql_bin_negative_and_tabular_body # [shim-kql-split] +# 04823_kql_dynamic_column_type_rejected # [shim-kql-split] +# 04825_kql_let_tabular_in_subquery_bin_at_negative # [shim-kql-split] +# 04836_kql_aggregate_gate_bare_table_range_exact # [shim-kql-split] +# 04839_kql_db_qualified_table_carriers # [shim-kql-split] +# 04870_kql_in_column_bin_column_size_interval_division # [shim-kql-split] +# 05047_kql_typed_parameter_enforcement # [shim-kql-split] +04759_kql_bin_floor_timespan_type_defaults # known=client: [shim-kql-split] # known=jdbc: [jdbc-interval-getobject] +05044_kql_exact_scaling_and_tabular_contract # known=client: [shim-kql-split] # known=jdbc: [jdbc-interval-getobject] + +#----------------------------------------------------------------------------- +# [shim-output-setting] shim: Settings that change the server text output +# For example output_format_decimal_trailing_zeros, date_time_output_format, +# format_tsv_null_representation and the KQL interval format: the shim +# writes the values itself. +# Backends: client, jdbc +# Tests: client 13, jdbc 6 +# 00357_to_string_complex_types # [shim-output-setting] +# 01516_date_time_output_format # [shim-output-setting] +# 02009_decimal_no_trailing_zeros # [shim-output-setting] +# 02249_parse_date_time_basic # [shim-output-setting] +# 04101_null_representation_with_special_serializations # [shim-output-setting] +# 04869_regexp_full_field_consumption_all_rules # [shim-output-setting] +02366_kql_native_interval_format # known=client: [shim-output-setting] # known=jdbc: [jdbc-interval-getobject] +04092_kql_conformance_baby_kusto # known=client: [shim-output-setting] # known=jdbc: [jdbc-interval-getobject] +04093_kql_conformance_kusto_loco # known=client: [shim-output-setting] # known=jdbc: [jdbc-interval-getobject] +04094_json_extract_time_numeric # known=client: [shim-output-setting] # known=jdbc: [jdbc-time-as-sql-time] +04672_kql_semantics # known=client: [shim-output-setting] # known=jdbc: [jdbc-interval-getobject] +04676_kql_function_families # known=client: [shim-output-setting] # known=jdbc: [jdbc-interval-getobject] +05019_kql_review_followups # known=client: [shim-output-setting] # known=jdbc: [jdbc-interval-getobject] + +#----------------------------------------------------------------------------- +# [shim-client-parse-error] shim: A SYNTAX_ERROR of the server is taken as a parse error of clickhouse-client +# The shim cannot tell a run-time SYNTAX_ERROR from a parse error. So it +# drops the echo of the statement, and it does not go on at the next line +# as clickhouse-client does. +# Backends: client, jdbc +# Tests: client 2, jdbc 2 +# 02165_insert_from_infile # [shim-client-parse-error] +# 04700_backup_settings_default_round_trip # [shim-client-parse-error] diff --git a/tests/clickhouse-client/bin/clickhouse b/tests/clickhouse-client/bin/clickhouse index c861195a2..e46644941 100755 --- a/tests/clickhouse-client/bin/clickhouse +++ b/tests/clickhouse-client/bin/clickhouse @@ -1,8 +1,22 @@ #!/usr/bin/env bash +# Starts the clickhouse-client imitation (target/clickhouse-client-cli-1.0.0.jar). +# tests/clickhouse-test calls `clickhouse-client` and `clickhouse` from PATH; +# both names come here (bin/clickhouse-client is a symlink to this file). +# +# The runner starts the shim once per test, so the JVM must start fast: C1 +# only, the serial collector, and a class data sharing archive of the classes +# that the backend loads (CLICKHOUSE_CLIENT_CLI_CDS, default +# target/clickhouse-client-cli-.jsa, which run-upstream-tests.sh +# makes; set it to an empty value to disable it). JVM log output is off: the +# JVM writes its warnings to stdout, and any extra output fails a test. +# The heap is small (-Xmx384m): the runner starts many shims in parallel, and +# the shim streams the results. CLICKHOUSE_CLIENT_CLI_JAVA_OPTS adds JVM +# options (a later -Xmx in it wins). set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" JAR_PATH="${SCRIPT_DIR}/../target/clickhouse-client-cli-1.0.0.jar" +CDS_PATH="${CLICKHOUSE_CLIENT_CLI_CDS-${SCRIPT_DIR}/../target/clickhouse-client-cli-${CLICKHOUSE_CLIENT_CLI_IMPL:-client}.jsa}" if [[ "${1:-}" == "extract-from-config" ]]; then shift @@ -11,7 +25,7 @@ if [[ "${1:-}" == "extract-from-config" ]]; then case "$1" in --key) key="${2:-}" - shift 2 + shift 2 || shift ;; --key=*) key="${1#--key=}" @@ -23,7 +37,8 @@ if [[ "${1:-}" == "extract-from-config" ]]; then esac done - # Minimal compatibility for clickhouse-test usage. + # tests/clickhouse-test reads only listen_host; other keys are not in the + # config, as for a key that the server does not have. if [[ "${key}" == "listen_host" ]]; then echo "127.0.0.1" fi @@ -32,8 +47,15 @@ fi if [[ ! -f "${JAR_PATH}" ]]; then echo "Jar not found: ${JAR_PATH}" >&2 - echo "Build it first: (cd ${SCRIPT_DIR} && mvn package -DskipTests)" >&2 + echo "Build it first: $(cd "${SCRIPT_DIR}/.." && pwd)/scripts/build.sh" >&2 exit 1 fi -exec java -jar "${JAR_PATH}" "$@" +jvm_opts=(-XX:TieredStopAtLevel=1 -XX:+UseSerialGC -Xmx384m -Xss4m -XX:-UsePerfData -Xlog:disable) +if [[ -n "${CDS_PATH}" && -f "${CDS_PATH}" ]]; then + jvm_opts+=("-XX:SharedArchiveFile=${CDS_PATH}" -Xshare:auto) +fi +# shellcheck disable=SC2206 +jvm_opts+=(${CLICKHOUSE_CLIENT_CLI_JAVA_OPTS:-}) + +exec java "${jvm_opts[@]}" -jar "${JAR_PATH}" "$@" diff --git a/tests/clickhouse-client/bin/clickhouse-client b/tests/clickhouse-client/bin/clickhouse-client new file mode 120000 index 000000000..7101fd9ed --- /dev/null +++ b/tests/clickhouse-client/bin/clickhouse-client @@ -0,0 +1 @@ +clickhouse \ No newline at end of file diff --git a/tests/clickhouse-client/clickhouse-version b/tests/clickhouse-client/clickhouse-version new file mode 100644 index 000000000..0641a2023 --- /dev/null +++ b/tests/clickhouse-client/clickhouse-version @@ -0,0 +1,5 @@ +# The ClickHouse server version that the upstream SQL tests run against. CI +# starts the server image of this version, and takes the tests from its +# release tag (v-stable). Change it only in a pull request of its +# own; see "Bump the server version" in README.md. +26.10.4.207 diff --git a/tests/clickhouse-client/pom.xml b/tests/clickhouse-client/pom.xml index b5ec62024..e550d9726 100644 --- a/tests/clickhouse-client/pom.xml +++ b/tests/clickhouse-client/pom.xml @@ -10,34 +10,24 @@ jar clickhouse-client-cli - Simple CLI tool that mimics clickhouse-client for executing SQL queries + A clickhouse-client imitation that runs the ClickHouse core SQL tests through clickhouse-java UTF-8 - 17 - 17 - 0.9.6-SNAPSHOT + 17 + + 0.12.0-rc1-SNAPSHOT com.clickhouse.client.cli.Main + com.clickhouse clickhouse-jdbc ${clickhouse-java.version} - all - - - - org.slf4j - slf4j-api - 2.0.13 - - - - org.apache.commons - commons-csv - 1.14.1 @@ -46,20 +36,40 @@ 1.11.0 + org.slf4j - slf4j-simple - 2.0.13 + slf4j-nop + 2.0.7 runtime + + + org.testng + testng + 7.5.1 + test + + + org.apache.maven.plugins + maven-compiler-plugin + 3.14.0 + + + + org.apache.maven.plugins + maven-surefire-plugin + 3.5.3 + + org.apache.maven.plugins maven-jar-plugin - 3.3.0 + 3.4.2 @@ -80,10 +90,12 @@ shade + false ${main.class} + diff --git a/tests/clickhouse-client/scripts/build.sh b/tests/clickhouse-client/scripts/build.sh new file mode 100755 index 000000000..6cfd9bac0 --- /dev/null +++ b/tests/clickhouse-client/scripts/build.sh @@ -0,0 +1,35 @@ +#!/usr/bin/env bash +# Builds the shim against the clickhouse-java source of this repository. +# +# Usage: scripts/build.sh [...] +# +# 1. Installs the modules that the shim uses (clickhouse-jdbc and the modules +# that it needs: jdbc-v2, client-v2, clickhouse-data, ...) from the current +# source into the local Maven repository, without their tests. Set +# SKIP_CLIENT_INSTALL=1 to use the modules that are already installed. +# 2. Packages the shim (fat jar target/clickhouse-client-cli-1.0.0.jar) against +# exactly that version: the of the root pom.xml. The unit tests of +# the shim run in this step (add -DskipTests to skip them). +# +# Maven needs JDK 17 with a toolchain for JDK 8 and 17, as for the rest of the +# repository (see CONTRIBUTING.md). +set -euo pipefail + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +RUNNER_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)" +REPO_DIR="$(cd "${RUNNER_DIR}/../.." && pwd)" + +revision="$(sed -n 's:.*\(.*\).*:\1:p' "${REPO_DIR}/pom.xml" | head -n 1)" +if [[ -z "${revision}" ]]; then + echo "Error: no in ${REPO_DIR}/pom.xml." >&2 + exit 1 +fi + +# Two build threads: enough for the few modules, and the memory use stays small. +mvn_args=(--batch-mode --no-transfer-progress --quiet -T 2) +if [[ "${SKIP_CLIENT_INSTALL:-0}" != "1" ]]; then + echo "Installing clickhouse-jdbc ${revision} and its modules from ${REPO_DIR}" >&2 + (cd "${REPO_DIR}" && mvn "${mvn_args[@]}" -DskipTests -Dmaven.javadoc.skip=true -pl clickhouse-jdbc -am install) +fi +echo "Building the shim against clickhouse-java ${revision}" >&2 +mvn "${mvn_args[@]}" -f "${RUNNER_DIR}/pom.xml" -Dclickhouse-java.version="${revision}" "$@" package diff --git a/tests/clickhouse-client/scripts/fetch-upstream.sh b/tests/clickhouse-client/scripts/fetch-upstream.sh new file mode 100755 index 000000000..d0ec22c5e --- /dev/null +++ b/tests/clickhouse-client/scripts/fetch-upstream.sh @@ -0,0 +1,54 @@ +#!/usr/bin/env bash +# Gets the upstream ClickHouse tests of the pinned server version, and +# generates the error code table of the shim from the same checkout. +# +# Usage: scripts/fetch-upstream.sh [] +# +# Without an argument, the script reads the version from ../clickhouse-version +# (for example 26.10.4.207) and checks out its release tag +# (v26.10.4.207-stable). The `.reference` files of that tag were made by the +# same server build. A version as the argument selects its release tag; any +# other argument is used as a ref (for example `master`). +# +# The checkout is sparse and shallow. It goes to UPSTREAM_CLICKHOUSE_DIR +# (default: .upstream/ClickHouse). The script needs only bash and git. +set -euo pipefail + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +RUNNER_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)" +UPSTREAM_CLICKHOUSE_DIR="${UPSTREAM_CLICKHOUSE_DIR:-${RUNNER_DIR}/.upstream/ClickHouse}" +default_repo_url="https://github.com/ClickHouse/ClickHouse.git" +UPSTREAM_REPO_URL="${UPSTREAM_REPO_URL:-${default_repo_url}}" + +ref="${1:-}" +if [[ -z "${ref}" ]]; then + ref="$("${SCRIPT_DIR}/pinned-version.sh")" +fi +if [[ "${ref}" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + ref="v${ref}-stable" +fi +echo "Upstream ref: ${ref}" >&2 + +if [[ ! -d "${UPSTREAM_CLICKHOUSE_DIR}/.git" ]]; then + mkdir -p "${UPSTREAM_CLICKHOUSE_DIR}" + git -C "${UPSTREAM_CLICKHOUSE_DIR}" init -q + git -C "${UPSTREAM_CLICKHOUSE_DIR}" remote add origin "${UPSTREAM_REPO_URL}" +fi +# Not cone mode: the list has files, and cone mode takes only directories. +git -C "${UPSTREAM_CLICKHOUSE_DIR}" sparse-checkout set --no-cone \ + /tests/clickhouse-test /tests/queries/ /tests/config/ /tests/ci/ /tests/performance/ \ + /docker/test/util/ /src/Common/ErrorCodes.cpp +# A tag and a branch both resolve here, so the same command takes `master`. +if ! git -C "${UPSTREAM_CLICKHOUSE_DIR}" fetch -q --depth 1 --filter=blob:none origin "${ref}"; then + echo "Error: cannot fetch ${ref} from ${UPSTREAM_REPO_URL}." >&2 + exit 1 +fi +git -C "${UPSTREAM_CLICKHOUSE_DIR}" checkout -q --force FETCH_HEAD +chmod +x "${UPSTREAM_CLICKHOUSE_DIR}/tests/clickhouse-test" +echo "${ref}" > "${UPSTREAM_CLICKHOUSE_DIR}/.upstream-ref" + +"${SCRIPT_DIR}/gen-error-codes.sh" "${UPSTREAM_CLICKHOUSE_DIR}" + +if [[ -n "${GITHUB_OUTPUT:-}" ]]; then + echo "ref=${ref}" >> "${GITHUB_OUTPUT}" +fi diff --git a/tests/clickhouse-client/scripts/gen-error-codes.sh b/tests/clickhouse-client/scripts/gen-error-codes.sh new file mode 100755 index 000000000..0d8e2b97d --- /dev/null +++ b/tests/clickhouse-client/scripts/gen-error-codes.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash +# Generates the error code table of the shim +# (src/main/resources/com/clickhouse/client/cli/error-codes.tsv) from +# src/Common/ErrorCodes.cpp of a ClickHouse checkout. fetch-upstream.sh runs +# it after each checkout, so the error names of the test hints always match +# the tests. It needs only bash and sed. Commit the file when it changes. +# +# Usage: scripts/gen-error-codes.sh [] +set -euo pipefail + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +RUNNER_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)" +checkout="${1:-${UPSTREAM_CLICKHOUSE_DIR:-${RUNNER_DIR}/.upstream/ClickHouse}}" +src_file="${checkout}/src/Common/ErrorCodes.cpp" + +if [[ ! -f "${src_file}" ]]; then + echo "Error: ${src_file} not found. Run scripts/fetch-upstream.sh first." >&2 + exit 1 +fi +ref="$(cat "${checkout}/.upstream-ref" 2>/dev/null || git -C "${checkout}" rev-parse HEAD)" + +out="${RUNNER_DIR}/src/main/resources/com/clickhouse/client/cli/error-codes.tsv" +mkdir -p "$(dirname "${out}")" +{ + echo "# Generated by scripts/gen-error-codes.sh from src/Common/ErrorCodes.cpp of ClickHouse ${ref}; do not edit." + echo "# : test hints can name an error instead of giving its code." + sed -n 's/^ *M(\([0-9][0-9]*\), *\([A-Z0-9_][A-Z0-9_]*\)).*/\1\t\2/p' "${src_file}" +} > "${out}" +echo "Wrote $(grep -vc '^#' "${out}") error codes from ${ref} to ${out}" >&2 diff --git a/tests/clickhouse-client/scripts/pinned-version.sh b/tests/clickhouse-client/scripts/pinned-version.sh new file mode 100755 index 000000000..b70b0b388 --- /dev/null +++ b/tests/clickhouse-client/scripts/pinned-version.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +# Prints the pinned ClickHouse server version from ../clickhouse-version. +set -euo pipefail +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +file="${SCRIPT_DIR}/../clickhouse-version" +version="$(grep -v '^[[:space:]]*#' "${file}" | tr -d '[:space:]')" +if ! [[ "${version}" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + echo "Error: ${file} must contain one version such as 26.10.4.207 (got: '${version}')." >&2 + exit 1 +fi +echo "${version}" diff --git a/tests/clickhouse-client/scripts/run-upstream-tests.sh b/tests/clickhouse-client/scripts/run-upstream-tests.sh new file mode 100755 index 000000000..09de0f0e9 --- /dev/null +++ b/tests/clickhouse-client/scripts/run-upstream-tests.sh @@ -0,0 +1,245 @@ +#!/usr/bin/env bash +# Runs the allowlisted upstream ClickHouse SQL tests through clickhouse-java. +# +# Usage: scripts/run-upstream-tests.sh [...] +# +# See ../README.md for the environment variables. +set -euo pipefail + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +RUNNER_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)" + +UPSTREAM_CLICKHOUSE_DIR="${UPSTREAM_CLICKHOUSE_DIR:-${RUNNER_DIR}/.upstream/ClickHouse}" +UPSTREAM_TEST_LIST="${UPSTREAM_TEST_LIST:-${RUNNER_DIR}/allowlist.txt}" +CLICKHOUSE_CLIENT_CLI_IMPL="${CLICKHOUSE_CLIENT_CLI_IMPL:-client}" +SHARD_INDEX="${SHARD_INDEX:-1}" +SHARD_TOTAL="${SHARD_TOTAL:-1}" +backend="${CLICKHOUSE_CLIENT_CLI_IMPL}" + +case "${backend}" in + client|jdbc|text) ;; + *) + echo "Error: CLICKHOUSE_CLIENT_CLI_IMPL must be client, jdbc or text (got: '${backend}')." >&2 + exit 1 + ;; +esac + +if [[ ! -f "${UPSTREAM_CLICKHOUSE_DIR}/tests/clickhouse-test" ]]; then + echo "Error: ${UPSTREAM_CLICKHOUSE_DIR}/tests/clickhouse-test not found." >&2 + echo "Run scripts/fetch-upstream.sh, or set UPSTREAM_CLICKHOUSE_DIR to a checkout of ClickHouse/ClickHouse." >&2 + exit 1 +fi + +# The server and the tests must be of the same release: the `.reference` +# files of another release do not match the output of the server. +upstream_ref="$(cat "${UPSTREAM_CLICKHOUSE_DIR}/.upstream-ref" 2>/dev/null || echo unknown)" +server_host="${CLICKHOUSE_HOST:-localhost}" +server_url="http"'://'"${server_host}:${CLICKHOUSE_PORT_HTTP:-8123}/" +if ! server_version="$(curl -fsS --noproxy '*' --data-binary 'SELECT version()' "${server_url}")"; then + echo "Error: cannot get the server version from ${server_url}. Start the server first." >&2 + exit 1 +fi +if [[ "${upstream_ref}" != "v${server_version}-stable" && "${ALLOW_VERSION_MISMATCH:-0}" != "1" ]]; then + echo "Error: the server is ${server_version}, but the upstream tests are ${upstream_ref}." >&2 + echo "Start the server of the pinned version (scripts/pinned-version.sh) and run scripts/fetch-upstream.sh," >&2 + echo "or set ALLOW_VERSION_MISMATCH=1 to run anyway." >&2 + exit 1 +fi +echo "Server ${server_version}, upstream tests ${upstream_ref}" >&2 + +# Read the allowlist: one test name per line; '#' starts a comment. +# +# runs on every backend +# # only=: runs on that backend only +# # known=: [] known failure of group on that +# backend; runs on the other backends +# # # [] known failure of group ; does not run +# +# With KNOWN_FAILURES, read the known failures of this backend instead: the +# lines of the groups in KNOWN_FAILURES (comma-separated IDs, or `all`). Use +# it to check whether a fix makes the tests of a group pass. +selected_group() { + [[ "${KNOWN_FAILURES}" == "all" || ",${KNOWN_FAILURES}," == *",$1,"* ]] +} +known_re='#[[:space:]]*known=([a-z]+):[[:space:]]*\[([a-z0-9-]+)\]' +tests=() +known_mode=0 +[[ -n "${KNOWN_FAILURES:-}" ]] && known_mode=1 +while IFS= read -r line || [[ -n "${line}" ]]; do + if [[ "${line}" =~ ^#[[:space:]]*([A-Za-z0-9_.-]+)[[:space:]]+#[[:space:]]*\[([a-z0-9-]+)\] ]]; then + if (( known_mode )) && selected_group "${BASH_REMATCH[2]}"; then + tests+=("${BASH_REMATCH[1]}") + fi + continue + fi + name="${line%%#*}" + name="${name#"${name%%[![:space:]]*}"}" + name="${name%"${name##*[![:space:]]}"}" + [[ -z "${name}" ]] && continue + # `only=`: the test cannot pass on the other backends. + if [[ "${line}" =~ \#[[:space:]]*only=([a-z]+) && "${BASH_REMATCH[1]}" != "${backend}" ]]; then + continue + fi + # `known=: []`: a known failure on that backend. + known_id="" + rest="${line}" + while [[ "${rest}" =~ ${known_re} ]]; do + if [[ "${BASH_REMATCH[1]}" == "${backend}" ]]; then + known_id="${BASH_REMATCH[2]}" + fi + rest="${rest#*"${BASH_REMATCH[0]}"}" + done + if (( known_mode )); then + if [[ -n "${known_id}" ]] && selected_group "${known_id}"; then + tests+=("${name}") + fi + elif [[ -z "${known_id}" ]]; then + tests+=("${name}") + fi +done < "${UPSTREAM_TEST_LIST}" +if (( known_mode )); then + echo "Selected ${#tests[@]} known failure(s) of ${KNOWN_FAILURES} for ${backend} from ${UPSTREAM_TEST_LIST}" >&2 +else + echo "Selected ${#tests[@]} test(s) for ${backend} from ${UPSTREAM_TEST_LIST}" >&2 +fi + +# Upstream renames and removes tests. A name that selects no test file runs +# nothing and fails nothing, so report it. +missing=() +for t in "${tests[@]}"; do + if [[ ! -e "${UPSTREAM_CLICKHOUSE_DIR}/tests/queries/0_stateless/${t}.sql" && + ! -e "${UPSTREAM_CLICKHOUSE_DIR}/tests/queries/0_stateless/${t}.sql.j2" ]]; then + missing+=("${t}") + fi +done +if [[ ${#missing[@]} -gt 0 ]]; then + msg="${#missing[@]} allowlisted test(s) are not in the upstream checkout (${upstream_ref}): ${missing[*]}" + if [[ -n "${GITHUB_ACTIONS:-}" ]]; then echo "::warning::${msg}"; else echo "Warning: ${msg}" >&2; fi +fi + +# Round-robin sharding: keep the tests at positions i where +# i % SHARD_TOTAL == SHARD_INDEX - 1. +if ! [[ "${SHARD_TOTAL}" =~ ^[1-9][0-9]*$ && "${SHARD_INDEX}" =~ ^[1-9][0-9]*$ ]] || (( SHARD_INDEX > SHARD_TOTAL )); then + echo "Error: SHARD_INDEX and SHARD_TOTAL must be positive integers with SHARD_INDEX <= SHARD_TOTAL (got: ${SHARD_INDEX}/${SHARD_TOTAL})." >&2 + exit 1 +fi +if (( SHARD_TOTAL > 1 )); then + sharded=() + for i in "${!tests[@]}"; do + if (( i % SHARD_TOTAL == SHARD_INDEX - 1 )); then + sharded+=("${tests[$i]}") + fi + done + tests=("${sharded[@]}") + echo "Shard ${SHARD_INDEX}/${SHARD_TOTAL}: ${#tests[@]} test(s)" >&2 +fi + +# tests/clickhouse-test runs ALL tests when it gets no test names. +if [[ ${#tests[@]} -eq 0 ]]; then + echo "Error: no tests selected from ${UPSTREAM_TEST_LIST}. Refusing to run the full upstream suite." >&2 + exit 1 +fi + +# Build the shim against the clickhouse-java source of this repository +# (SKIP_BUILD=1 uses the jar that is already in target/, for example from an +# earlier CI job). tests/clickhouse-test calls `clickhouse` and +# `clickhouse-client`; both names go to bin/clickhouse. +JAR="${RUNNER_DIR}/target/clickhouse-client-cli-1.0.0.jar" +if [[ "${SKIP_BUILD:-0}" != "1" ]]; then + "${SCRIPT_DIR}/build.sh" -DskipTests +fi +if [[ ! -f "${JAR}" ]]; then + echo "Error: ${JAR} not found. Run scripts/build.sh first." >&2 + exit 1 +fi +export PATH="${RUNNER_DIR}/bin:${PATH}" +export CLICKHOUSE_CLIENT_CLI_IMPL + +# The runner starts the shim once per test. A class data sharing archive of +# the classes of one run of this backend makes the JVM start faster. +cds="${RUNNER_DIR}/target/clickhouse-client-cli-${backend}.jsa" +if [[ ! -f "${cds}" || "${cds}" -ot "${JAR}" ]]; then + rm -f "${cds}" + echo "Making the class data sharing archive ${cds}" >&2 + if ! CLICKHOUSE_CLIENT_CLI_CDS="" CLICKHOUSE_CLIENT_CLI_JAVA_OPTS="-XX:ArchiveClassesAtExit=${cds}" \ + CLICKHOUSE_CLIENT_CLI_LOG="" clickhouse-client --host "${server_host}" --query \ + "SELECT number, toString(number), [number], (number, 'a'), map('k', number), toDateTime64(number, 3), toDecimal64(number, 2), toNullable(number) FROM numbers(3) FORMAT Null" \ + > /dev/null; then + echo "Warning: cannot make the class data sharing archive; the tests run without it." >&2 + rm -f "${cds}" + fi +fi + +if [[ -n "${CLICKHOUSE_CLIENT_CLI_LOG:-}" ]]; then + mkdir -p "$(dirname "${CLICKHOUSE_CLIENT_CLI_LOG}")" + export CLICKHOUSE_CLIENT_CLI_LOG +fi +# tests/clickhouse-test gives the client `--database` for each test; a +# CLICKHOUSE_DATABASE in the environment would give it a second one. +unset CLICKHOUSE_DATABASE + +# shellcheck source=selectors.sh +source "${SCRIPT_DIR}/selectors.sh" +build_selectors "${tests[@]}" + +echo "Backend: ${backend}" >&2 +cd "${UPSTREAM_CLICKHOUSE_DIR}" +# --dont_retry_failures: by default the runner runs a failed test again when its +# output has one of its MESSAGES_TO_RETRY (for example "No such file or +# directory"), and reports a pass as OK. RETRY_FAILED is the only retry here. +runner=(python3 tests/clickhouse-test --no-stateful --no-random-settings --no-random-merge-tree-settings + --dont_retry_failures) + +retries="${RETRY_FAILED:-0}" +if ! [[ "${retries}" =~ ^[0-9]+$ ]]; then + echo "Error: RETRY_FAILED must be a number of retries (got: '${retries}')." >&2 + exit 1 +fi +if (( retries == 0 )); then + exec "${runner[@]}" "$@" -- "${selectors[@]}" +fi + +# RETRY_FAILED=: run the failed tests again, at most n times. A test that +# passes on a retry is reported as a warning; a test that fails on every +# attempt fails the run. Do not use this to grow or check the allowlist: a test +# that needs a retry is not reliable. + +# run_attempt runs the runner on the current selectors and sets +# attempt_status, attempt_failed and attempt_passed. +run_attempt() { + local log="$1" t + shift + set +e + "${runner[@]}" --max-failures-chain 1000000 "$@" -- "${selectors[@]}" 2>&1 | tee "${log}" + attempt_status=${PIPESTATUS[0]} + set -e + attempt_failed=() + while IFS= read -r t; do + attempt_failed+=("${t}") + done < <(sed -nE 's/^\[[ 0-9]+\/[ 0-9]+\] ([^ :]+): +\[ FAIL \].*/\1/p' "${log}" | sort -u) + attempt_passed="$(sed -nE 's/^\[[ 0-9]+\/[ 0-9]+\] ([^ :]+): +\[ OK \].*/\1/p' "${log}" | sort -u | tr '\n' ' ')" +} + +log="$(mktemp)" +trap 'rm -f "${log}"' EXIT +runner_args=("$@") +run_attempt "${log}" "${runner_args[@]}" +passed_on_retry="" +attempt=0 +while (( attempt_status != 0 && attempt < retries )); do + if [[ ${#attempt_failed[@]} -eq 0 ]]; then + echo "Error: the run failed (exit code ${attempt_status}), but no test failed. See the output above." >&2 + exit "${attempt_status}" + fi + attempt=$(( attempt + 1 )) + echo "Retry ${attempt}/${retries}: ${#attempt_failed[@]} failed test(s): ${attempt_failed[*]}" >&2 + build_selectors "${attempt_failed[@]}" + run_attempt "${log}" "${runner_args[@]}" + passed_on_retry="${passed_on_retry}${attempt_passed}" +done + +if [[ -n "${passed_on_retry}" ]]; then + msg="These tests failed and then passed on a retry: ${passed_on_retry}" + if [[ -n "${GITHUB_ACTIONS:-}" ]]; then echo "::warning::${msg}"; else echo "Warning: ${msg}" >&2; fi +fi +exit "${attempt_status}" diff --git a/tests/clickhouse-client/scripts/run-with-real-client.sh b/tests/clickhouse-client/scripts/run-with-real-client.sh new file mode 100755 index 000000000..acf995225 --- /dev/null +++ b/tests/clickhouse-client/scripts/run-with-real-client.sh @@ -0,0 +1,68 @@ +#!/usr/bin/env bash +# Runs upstream tests through the REAL clickhouse-client in the server +# container, not through clickhouse-java. Use it as the reference when you +# triage a failure: if a test fails here too, the cause is the environment +# (server config, missing cluster, ...), not clickhouse-java or the shim. +# +# Usage: scripts/run-with-real-client.sh [...] +# +# It reads the same UPSTREAM_CLICKHOUSE_DIR and UPSTREAM_TEST_LIST as +# run-upstream-tests.sh. CLICKHOUSE_CONTAINER is the name of the server +# container (default: clickhouse). +set -euo pipefail + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +RUNNER_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)" + +UPSTREAM_CLICKHOUSE_DIR="${UPSTREAM_CLICKHOUSE_DIR:-${RUNNER_DIR}/.upstream/ClickHouse}" +UPSTREAM_TEST_LIST="${UPSTREAM_TEST_LIST:-${RUNNER_DIR}/allowlist.txt}" +CLICKHOUSE_CONTAINER="${CLICKHOUSE_CONTAINER:-clickhouse}" + +if ! docker exec "${CLICKHOUSE_CONTAINER}" clickhouse-client --query "SELECT 1" > /dev/null; then + echo "Error: cannot run clickhouse-client in container '${CLICKHOUSE_CONTAINER}'. Set CLICKHOUSE_CONTAINER." >&2 + exit 1 +fi + +# A clickhouse binary that forwards to the real one in the container. +BIN_DIR="${RUNNER_DIR}/.bin-real-client" +mkdir -p "${BIN_DIR}" +cat > "${BIN_DIR}/clickhouse" <&2 + exit 1 +fi +# shellcheck source=selectors.sh +source "${SCRIPT_DIR}/selectors.sh" +build_selectors "${tests[@]}" + +export PATH="${BIN_DIR}:${PATH}" +cd "${UPSTREAM_CLICKHOUSE_DIR}" +exec python3 tests/clickhouse-test --no-stateful --no-random-settings --no-random-merge-tree-settings "$@" -- "${selectors[@]}" diff --git a/tests/clickhouse-client/scripts/selectors.sh b/tests/clickhouse-client/scripts/selectors.sh new file mode 100755 index 000000000..a737c0ab5 --- /dev/null +++ b/tests/clickhouse-client/scripts/selectors.sh @@ -0,0 +1,29 @@ +# shellcheck shell=bash +# Sourced by run-upstream-tests.sh and run-with-real-client.sh. +# +# build_selectors ... sets the array `selectors` to anchored regular +# expressions that select exactly the given tests. +# +# tests/clickhouse-test reads each test argument as a regular expression and +# selects every file that it matches anywhere in the name, so `00396_uuid` +# would also select `00396_uuid_v7`. An anchored alternation selects exactly +# the listed tests, and is much faster than one expression per test. Linux +# limits one argument to 128 KiB, so the alternation is split into several +# arguments of at most selector_max_bytes. +selector_max_bytes=65536 + +build_selectors() { + selectors=() + local chunk="" t + for t in "$@"; do + t="${t//./\\.}" + if [[ -n "${chunk}" && $(( ${#chunk} + ${#t} + 32 )) -gt ${selector_max_bytes} ]]; then + selectors+=("^(${chunk})\\.(sql|sql\\.j2)\$") + chunk="" + fi + chunk="${chunk:+${chunk}|}${t}" + done + if [[ -n "${chunk}" ]]; then + selectors+=("^(${chunk})\\.(sql|sql\\.j2)\$") + fi +} diff --git a/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/Backend.java b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/Backend.java new file mode 100644 index 000000000..aa9e44034 --- /dev/null +++ b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/Backend.java @@ -0,0 +1,49 @@ +package com.clickhouse.client.cli; + +import java.util.List; +import java.util.Map; + +/** + * Runs statements through one client API on one session. Selected by {@code CLICKHOUSE_CLIENT_CLI_IMPL}. + */ +interface Backend extends AutoCloseable { + + /** + * Runs one statement. + * + * @param sql the statement text, as {@code clickhouse-client} sends it + * @param settings the command-line settings that go with the statement + * @param database the current database of the session + * @return the result set, or null when the statement has no result set + */ + Result execute(String sql, Map settings, String database) throws Exception; + + /** Called when the test changes a forwarded setting with SET: the setting no longer goes with each query. */ + default void settingsChanged(Map settings) throws Exception { + } + + @Override + void close() throws Exception; + + /** A result set: column names and types from the metadata, and the values as the client returns them. */ + interface Result extends AutoCloseable { + List names(); + + List types(); + + boolean next() throws Exception; + + /** Returns the value of column i (0-based) of the current row, with the client's normal type mapping. */ + Object get(int i) throws Exception; + + /** + * For a pass-through backend: the raw response text, written as it is. Null for the typed backends. + */ + default byte[] rawText() throws Exception { + return null; + } + + @Override + void close() throws Exception; + } +} diff --git a/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/ChType.java b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/ChType.java new file mode 100644 index 000000000..0522878ac --- /dev/null +++ b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/ChType.java @@ -0,0 +1,281 @@ +package com.clickhouse.client.cli; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +/** + * A parsed ClickHouse data type, for example {@code Array(Nullable(DateTime64(3, 'UTC')))}. + * + *

The shim parses the type name that the server sends itself, so that the renderer does not depend on the type + * parser of the client. {@link #args} holds the parameters inside the parentheses. A parameter is either a nested + * type ({@code type != null}) or a literal ({@code literal != null}), such as the {@code 3} and {@code 'UTC'} above + * or the {@code 'a' = 1} of an {@code Enum8}. {@code name} is set for the named elements of a {@code Tuple} or + * {@code Nested}, as in {@code Tuple(a Int32, b String)}. + */ +final class ChType { + + static final class Arg { + final String name; + final ChType type; + final String literal; + + Arg(String name, ChType type, String literal) { + this.name = name; + this.type = type; + this.literal = literal; + } + } + + final String base; + final List args; + + ChType(String base, List args) { + this.base = base; + this.args = args; + } + + static ChType of(String base) { + return new ChType(base, Collections.emptyList()); + } + + /** Returns the nested type of argument i, or null. */ + ChType typeArg(int i) { + return i < args.size() ? args.get(i).type : null; + } + + /** Returns the literal of argument i without its single quotes, or null when argument i is absent. */ + String literalArg(int i) { + if (i >= args.size() || args.get(i).literal == null) { + return null; + } + String s = args.get(i).literal; + if (s.length() >= 2 && s.startsWith("'") && s.endsWith("'")) { + s = s.substring(1, s.length() - 1); + } + return s; + } + + @Override + public String toString() { + if (args.isEmpty()) { + return base; + } + StringBuilder sb = new StringBuilder(base).append('('); + for (int i = 0; i < args.size(); i++) { + if (i > 0) { + sb.append(", "); + } + Arg a = args.get(i); + if (a.type != null && a.name != null) { + sb.append(a.name).append(' ').append(a.type); + } else if (a.type != null) { + sb.append(a.type); + } else { + sb.append(a.literal); + } + } + return sb.append(')').toString(); + } + + /** Parses the type name that the server sends in the result header. */ + static ChType parse(String s) { + String in = s.trim(); + String[] rest = new String[1]; + ChType t = parseAt(in, rest); + if (!rest[0].trim().isEmpty()) { + throw new IllegalArgumentException("parse type \"" + s + "\": unexpected trailing text \"" + rest[0] + "\""); + } + return t; + } + + private static ChType parseAt(String s, String[] rest) { + int i = 0; + while (i < s.length() && (SqlText.isWordChar(s.charAt(i)) || s.charAt(i) == '.')) { + i++; + } + if (i == 0) { + throw new IllegalArgumentException("expected a type name at \"" + s + "\""); + } + String base = s.substring(0, i); + String after = stripLeadingSpaces(s.substring(i)); + if (!after.startsWith("(")) { + rest[0] = after; + return of(base); + } + List parts = new ArrayList<>(); + rest[0] = splitArgs(after, parts, s); + List args = new ArrayList<>(parts.size()); + for (String p : parts) { + args.add(parseArg(base, p)); + } + return new ChType(base, args); + } + + private static String stripLeadingSpaces(String s) { + int i = 0; + while (i < s.length() && s.charAt(i) == ' ') { + i++; + } + return s.substring(i); + } + + /** Parses a whole string as a type, or returns null. */ + private static ChType tryParse(String s) { + try { + String[] rest = new String[1]; + ChType t = parseAt(s, rest); + return rest[0].trim().isEmpty() ? t : null; + } catch (IllegalArgumentException e) { + return null; + } + } + + /** Turns one raw parameter into a nested type, a named nested type, or a literal. */ + private static Arg parseArg(String base, String raw) { + raw = raw.trim(); + if (raw.isEmpty() || raw.charAt(0) == '\'' || raw.charAt(0) == '-' + || (raw.charAt(0) >= '0' && raw.charAt(0) <= '9')) { + return new Arg(null, null, raw); + } + switch (base) { + case "Enum8": + case "Enum16": + case "Enum": + return new Arg(null, null, raw); + case "AggregateFunction": + case "SimpleAggregateFunction": { + // The first argument is a function name, such as `sum` or `quantiles(0.5, 0.9)`. It is not a type. + ChType t = tryParse(raw); + if (t != null && KNOWN_TYPES.contains(t.base)) { + return new Arg(null, t, null); + } + return new Arg(null, null, raw); + } + case "Tuple": + case "Nested": + case "JSON": + case "Object": + case "Variant": { + // Named element: `name Type` (the name can be quoted with backticks). + String[] named = splitNamedElement(raw); + if (named != null) { + ChType t = tryParse(named[1]); + if (t != null) { + return new Arg(named[0], t, null); + } + } + break; + } + default: + break; + } + ChType t = tryParse(raw); + if (t != null) { + return new Arg(null, t, null); + } + return new Arg(null, null, raw); + } + + /** + * Splits {@code name Type} into its two parts. Returns null for an element that is only a type, such as + * {@code Int32} or {@code Array(String)}. + */ + private static String[] splitNamedElement(String raw) { + if (raw.startsWith("`")) { + StringBuilder name = new StringBuilder(); + int i = 1; + while (i < raw.length()) { + char c = raw.charAt(i); + if (c == '\\' && i + 1 < raw.length()) { + name.append(raw.charAt(i + 1)); + i += 2; + } else if (c == '`' && i + 1 < raw.length() && raw.charAt(i + 1) == '`') { + name.append('`'); + i += 2; + } else if (c == '`') { + return new String[] {name.toString(), raw.substring(i + 1).trim()}; + } else { + name.append(c); + i++; + } + } + return null; + } + int i = 0; + while (i < raw.length() && (SqlText.isWordChar(raw.charAt(i)) || raw.charAt(i) == '.')) { + i++; + } + if (i == 0 || i >= raw.length() || raw.charAt(i) != ' ') { + return null; + } + return new String[] {raw.substring(0, i), raw.substring(i).trim()}; + } + + /** + * Splits {@code (a, b(c, d), 'e,f')rest} into its top-level parameters and returns the text after the closing + * parenthesis. + */ + private static String splitArgs(String s, List parts, String whole) { + int depth = 0; + int start = 1; + char quote = 0; + for (int i = 0; i < s.length(); i++) { + char c = s.charAt(i); + if (quote != 0) { + if (c == '\\') { + i++; + } else if (c == quote) { + quote = 0; + } + continue; + } + switch (c) { + case '\'': + case '`': + case '"': + quote = c; + break; + case '(': + depth++; + break; + case ')': + depth--; + if (depth == 0) { + String p = s.substring(start, i).trim(); + if (!p.isEmpty() || !parts.isEmpty()) { + parts.add(p); + } + return s.substring(i + 1); + } + break; + case ',': + if (depth == 1) { + parts.add(s.substring(start, i).trim()); + start = i + 1; + } + break; + default: + break; + } + } + throw new IllegalArgumentException("unbalanced parentheses in \"" + whole + "\""); + } + + /** + * Used only to tell {@code SimpleAggregateFunction(sum, UInt64)} (function name, then type) apart; a false + * negative only makes the renderer report an unsupported type. + */ + private static final Set KNOWN_TYPES = new HashSet<>(Arrays.asList( + "Int8", "Int16", "Int32", "Int64", "Int128", "Int256", + "UInt8", "UInt16", "UInt32", "UInt64", "UInt128", "UInt256", + "Float32", "Float64", "BFloat16", "Bool", "String", "FixedString", + "Date", "Date32", "DateTime", "DateTime64", "Time", "Time64", "UUID", "IPv4", "IPv6", + "Decimal", "Decimal32", "Decimal64", "Decimal128", "Decimal256", + "Enum8", "Enum16", "Nullable", "LowCardinality", "Array", "Tuple", "Map", "Nothing", + "Point", "Ring", "LineString", "MultiLineString", "Polygon", "MultiPolygon", "MultiPoint", "Geometry", + "JSON", "Object", "Dynamic", "Variant", "Nested", "QBit")); +} diff --git a/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/CliOptions.java b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/CliOptions.java new file mode 100644 index 000000000..55dfe3471 --- /dev/null +++ b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/CliOptions.java @@ -0,0 +1,198 @@ +package com.clickhouse.client.cli; + +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.HelpFormatter; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; +import org.apache.commons.cli.ParseException; + +import java.io.PrintWriter; +import java.io.StringWriter; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; + +/** The {@code clickhouse-client} command line, as far as {@code tests/clickhouse-test} uses it. */ +final class CliOptions { + + /** + * The command-line settings that the shim sends to the server. {@code tests/clickhouse-test} also adds many + * randomized settings to the command line. The shim drops them: they only change performance-related paths in + * the server, and some of them are client-only. + * + *

{@code async_insert} and {@code enable_parallel_replicas} are not randomized: {@code tests/clickhouse-test} + * sets them to 0 for a test with the tag {@code no-async-insert} or {@code no-parallel-replicas} + * ({@code FEATURE_TAG_OVERRIDES}), because the test does not work with the feature. The server default of + * {@code async_insert} is 1, so the shim must send them. + */ + static final Set SERVER_SETTINGS = new HashSet<>(Arrays.asList( + "log_comment", "max_insert_threads", "max_threads", "send_logs_level", + "async_insert", "enable_parallel_replicas")); + + String host = "localhost"; + /** The port of the command line, or null when not given. */ + Integer port; + String user = "default"; + String password = ""; + String database = "default"; + String query; + boolean secure; + boolean help; + /** The command-line settings that go to the server, in command-line order. */ + final Map settings = new LinkedHashMap<>(); + /** The query parameters from {@code --param_=}. */ + final Map params = new LinkedHashMap<>(); + + static Options baseOptions() { + Options options = new Options(); + options.addOption(Option.builder("h").longOpt("host").hasArg().argName("HOST") + .desc("Server host (default: localhost)").build()); + options.addOption(Option.builder().longOpt("port").hasArg().argName("PORT") + .desc("Server port. The native port of the test runner (CLICKHOUSE_PORT_TCP) maps to" + + " CLICKHOUSE_PORT_HTTP (default: 8123)").build()); + options.addOption(Option.builder("u").longOpt("user").hasArg().argName("USER") + .desc("User name (default: default)").build()); + options.addOption(Option.builder().longOpt("password").hasArg().argName("PASSWORD") + .desc("Password (default: empty)").build()); + options.addOption(Option.builder("d").longOpt("database").hasArg().argName("DB") + .desc("Database (default: default)").build()); + options.addOption(Option.builder("q").longOpt("query").hasArg().argName("SQL") + .desc("Queries to run; without it, the queries are read from stdin").build()); + options.addOption(Option.builder("s").longOpt("secure").desc("Use HTTPS").build()); + options.addOption(Option.builder().longOpt("no-secure").desc("Use HTTP (default)").build()); + // As in clickhouse-client: `-n` is `--multiquery`, `-m` is `--multiline`. The shim always runs every + // statement of the input. + options.addOption(Option.builder("n").longOpt("multiquery").desc("Ignored").build()); + options.addOption(Option.builder().longOpt("multi-query").desc("Ignored").build()); + options.addOption(Option.builder("m").longOpt("multiline").desc("Ignored").build()); + options.addOption(Option.builder().longOpt("help").desc("Show this help").build()); + // Accepted and ignored. + options.addOption(Option.builder("C").longOpt("config-file").hasArg().argName("FILE").desc("Ignored").build()); + options.addOption(Option.builder().longOpt("client_logs_file").hasArg().argName("FILE").desc("Ignored").build()); + options.addOption(Option.builder().longOpt("allow_repeated_settings").desc("Ignored").build()); + return options; + } + + static CliOptions parse(String[] argv) throws ParseException { + Options options = baseOptions(); + Set known = new HashSet<>(); + for (Option o : options.getOptions()) { + if (o.getLongOpt() != null) { + known.add(o.getLongOpt()); + } + } + // Any other long option is a setting (`--max_threads=1`) or a query parameter (`--param_x=1`), with an + // optional value. Unknown short options are ignored, as in the other language ports. + List args = new ArrayList<>(); + for (String arg : argv) { + if (arg.startsWith("--") && arg.length() > 2) { + int eq = arg.indexOf('='); + String name = eq >= 0 ? arg.substring(2, eq) : arg.substring(2); + if (!name.isEmpty() && !known.contains(name) && !options.hasLongOption(name)) { + options.addOption(Option.builder().longOpt(name).hasArg().optionalArg(true).build()); + } + } else if (isIgnoredShortOption(arg, options)) { + continue; + } + args.add(arg); + } + + CommandLine cmd = DefaultParser.builder().setAllowPartialMatching(false).build() + .parse(options, args.toArray(new String[0])); + CliOptions o = new CliOptions(); + o.help = cmd.hasOption("help"); + o.host = cmd.getOptionValue("host", o.host); + String port = cmd.getOptionValue("port"); + if (port != null) { + try { + o.port = Integer.valueOf(port); + } catch (NumberFormatException e) { + throw new ParseException("bad --port value \"" + port + "\""); + } + } + o.user = cmd.getOptionValue("user", o.user); + o.password = cmd.getOptionValue("password", o.password); + o.database = cmd.getOptionValue("database", o.database); + o.query = cmd.getOptionValue("query"); + for (Option opt : cmd.getOptions()) { + String name = opt.getLongOpt(); + if ("secure".equals(name)) { + o.secure = true; + } else if ("no-secure".equals(name)) { + o.secure = false; + } + if (name == null || known.contains(name)) { + continue; + } + String value = opt.getValue() == null ? "1" : opt.getValue(); + if (name.startsWith("param_")) { + o.params.put(name.substring("param_".length()), value); + continue; + } + String setting = name.replace('-', '_'); + if (SERVER_SETTINGS.contains(setting)) { + o.settings.put(setting, value); + } + } + return o; + } + + /** An unknown short option, such as {@code -x}. {@link #parse} drops it before commons-cli reads the arguments. */ + private static boolean isIgnoredShortOption(String arg, Options options) { + return arg.length() > 1 && arg.charAt(0) == '-' && Character.isLetter(arg.charAt(1)) + && !options.hasShortOption(arg.substring(1, 2)); + } + + /** + * Returns the arguments with the password replaced by {@code ***}, for the invocation log. {@link #parse} takes + * the password from {@code --password X} and {@code --password=X}, and, after an unknown option {@code --p}, also + * from {@code -password X}, {@code -password=X} and {@code -passwordX}. After {@code --password} or + * {@code -password}, each argument is hidden up to and including the next argument that {@link #parse} keeps: + * {@link #parse} drops unknown short options, so in {@code --password -x secret} the password is {@code secret}. + * All other arguments stay as they are. + */ + static String[] redactPassword(String[] argv) { + Options options = baseOptions(); + String[] out = argv.clone(); + for (int i = 0; i < argv.length; i++) { + String arg = argv[i]; + boolean doubleDash = arg.startsWith("--"); + String name = doubleDash ? arg.substring(2) : arg.startsWith("-") ? arg.substring(1) : ""; + if (name.equals("password")) { + for (int j = i + 1; j < argv.length; j++) { + out[j] = "***"; + if (!isIgnoredShortOption(argv[j], options)) { + break; + } + } + } else if (name.startsWith("password=")) { + out[i] = (doubleDash ? "--" : "-") + "password=***"; + } else if (!doubleDash && name.startsWith("password")) { + out[i] = "-password***"; + } + } + return out; + } + + static String usage() { + StringWriter sw = new StringWriter(); + HelpFormatter formatter = new HelpFormatter(); + formatter.setOptionComparator(null); + String header = "\nA clickhouse-client imitation that runs queries through clickhouse-java, so that the" + + " ClickHouse tests/clickhouse-test runner can drive it. Every \";\"-separated statement runs." + + " --SETTING=VALUE: log_comment, max_insert_threads, max_threads, send_logs_level, async_insert" + + " and enable_parallel_replicas go to the server, other settings are ignored." + + " --param_NAME=VALUE: a query parameter.\n\n"; + String footer = "\nEnvironment variables:\n" + + " CLICKHOUSE_CLIENT_CLI_IMPL client (default, client-v2), jdbc (jdbc-v2) or text (transport only)\n" + + " CLICKHOUSE_CLIENT_CLI_LOG Log file for troubleshooting\n"; + formatter.printHelp(new PrintWriter(sw), 100, "clickhouse-client [options]", header, baseOptions(), 2, 2, + footer, true); + return sw.toString(); + } +} diff --git a/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/ClientBackend.java b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/ClientBackend.java new file mode 100644 index 000000000..0aa439be9 --- /dev/null +++ b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/ClientBackend.java @@ -0,0 +1,176 @@ +package com.clickhouse.client.cli; + +import com.clickhouse.client.api.Client; +import com.clickhouse.client.api.ClientConfigProperties; +import com.clickhouse.client.api.data_formats.ClickHouseBinaryFormatReader; +import com.clickhouse.client.api.metadata.TableSchema; +import com.clickhouse.client.api.query.QueryResponse; +import com.clickhouse.client.api.query.QuerySettings; +import com.clickhouse.data.ClickHouseColumn; + +import java.io.ByteArrayOutputStream; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +/** + * The {@code client} backend: client-v2 over HTTP. + * + *

Every statement runs with {@link Client#query(String, Map, QuerySettings)} in the default format of the + * client ({@code RowBinaryWithNamesAndTypes}). The values come from + * {@link ClickHouseBinaryFormatReader#readValue(int)}, and the column types from the {@link TableSchema} of the + * reader. The session is the client's {@code session_id}. + * + *

With {@code text} (transport only), the client sends no format header, so the server writes the text of the + * FORMAT clause of the statement (or {@code TabSeparated}), and the shim copies the bytes. That checks only the + * transport, not the decoding. + */ +final class ClientBackend implements Backend { + + private final Client client; + private final Map params; + private final boolean text; + + ClientBackend(CliOptions opts, int port, String sessionId, boolean text, InvocationLog log) { + String endpoint = (opts.secure ? "https" : "http") + "://" + opts.host + ":" + port; + log.add("endpoint", endpoint); + this.client = new Client.Builder() + .addEndpoint(endpoint) + .setUsername(opts.user) + .setPassword(opts.password) + .setDefaultDatabase(opts.database) + .setSessionId(sessionId) + .build(); + this.params = opts.params.isEmpty() ? null : new LinkedHashMap<>(opts.params); + this.text = text; + } + + @Override + public Result execute(String sql, Map settings, String database) throws Exception { + QuerySettings qs = new QuerySettings().setDatabase(database); + for (Map.Entry e : settings.entrySet()) { + qs.serverSetting(e.getKey(), e.getValue()); + } + if (text) { + // No X-ClickHouse-Format header: the FORMAT clause of the statement selects the output. + qs.setOption(ClientConfigProperties.INPUT_OUTPUT_FORMAT.getKey(), null); + } + QueryResponse response = Errors.unwrap(() -> client.query(sql, params, qs).get()); + if (text) { + return new TextResult(response); + } + ClickHouseBinaryFormatReader reader; + try { + reader = client.newBinaryFormatReader(response); + } catch (Exception e) { + response.close(); + throw e; + } + TableSchema schema = reader.getSchema(); + if (schema == null) { + // No result set (for example an INSERT or a DDL statement). + reader.close(); + response.close(); + return null; + } + return new ReaderResult(response, reader, schema); + } + + @Override + public void close() { + client.close(); + } + + private static final class ReaderResult implements Result { + private final QueryResponse response; + private final ClickHouseBinaryFormatReader reader; + private final List names = new ArrayList<>(); + private final List types = new ArrayList<>(); + + ReaderResult(QueryResponse response, ClickHouseBinaryFormatReader reader, TableSchema schema) { + this.response = response; + this.reader = reader; + for (ClickHouseColumn c : schema.getColumns()) { + names.add(c.getColumnName()); + types.add(c.getOriginalTypeName()); + } + } + + @Override + public List names() { + return names; + } + + @Override + public List types() { + return types; + } + + @Override + public boolean next() { + return reader.next() != null; + } + + @Override + public Object get(int i) { + return reader.readValue(i + 1); + } + + @Override + public void close() throws Exception { + try { + reader.close(); + } finally { + response.close(); + } + } + } + + private static final class TextResult implements Result { + private final QueryResponse response; + + TextResult(QueryResponse response) { + this.response = response; + } + + @Override + public List names() { + return new ArrayList<>(); + } + + @Override + public List types() { + return new ArrayList<>(); + } + + @Override + public boolean next() { + return false; + } + + @Override + public Object get(int i) { + throw new IllegalStateException("no values in the text backend"); + } + + @Override + public byte[] rawText() throws Exception { + ByteArrayOutputStream out = new ByteArrayOutputStream(); + try (InputStream in = response.getInputStream()) { + byte[] buf = new byte[8192]; + int n; + while ((n = in.read(buf)) != -1) { + out.write(buf, 0, n); + } + } + return out.toByteArray(); + } + + @Override + public void close() throws Exception { + response.close(); + } + } +} diff --git a/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/ErrorCodes.java b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/ErrorCodes.java new file mode 100644 index 000000000..c525bfd23 --- /dev/null +++ b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/ErrorCodes.java @@ -0,0 +1,61 @@ +package com.clickhouse.client.cli; + +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.UncheckedIOException; +import java.nio.charset.StandardCharsets; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; + +/** + * The error codes of ClickHouse's {@code src/Common/ErrorCodes.cpp}. Test hints can name an error instead of giving + * its code. {@code scripts/gen-error-codes.sh} generates the table ({@code error-codes.tsv}) from the upstream + * checkout, so it always matches the tests. + */ +final class ErrorCodes { + + private static final Map CODES; + private static final Map NAMES; + + static { + Map codes = new HashMap<>(); + Map names = new HashMap<>(); + try (InputStream in = ErrorCodes.class.getResourceAsStream("error-codes.tsv")) { + if (in == null) { + throw new IllegalStateException("error-codes.tsv is not on the class path; run scripts/gen-error-codes.sh"); + } + BufferedReader reader = new BufferedReader(new InputStreamReader(in, StandardCharsets.UTF_8)); + String line; + while ((line = reader.readLine()) != null) { + int tab = line.indexOf('\t'); + if (line.startsWith("#") || tab < 0) { + continue; + } + int code = Integer.parseInt(line.substring(0, tab)); + String name = line.substring(tab + 1); + codes.put(name, code); + names.put(code, name); + } + } catch (IOException e) { + throw new UncheckedIOException(e); + } + CODES = Collections.unmodifiableMap(codes); + NAMES = Collections.unmodifiableMap(names); + } + + private ErrorCodes() { + } + + /** Returns the code of an error name, or null. */ + static Integer code(String name) { + return CODES.get(name); + } + + /** Returns the name of an error code, or null. */ + static String name(int code) { + return NAMES.get(code); + } +} diff --git a/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/Errors.java b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/Errors.java new file mode 100644 index 000000000..1153036d4 --- /dev/null +++ b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/Errors.java @@ -0,0 +1,116 @@ +package com.clickhouse.client.cli; + +import com.clickhouse.client.api.ServerException; + +import java.sql.SQLException; +import java.util.concurrent.Callable; +import java.util.concurrent.CompletionException; +import java.util.concurrent.ExecutionException; + +/** Error helpers: the server error code of an exception, and the error text that clickhouse-client writes. */ +final class Errors { + + static final int SYNTAX_ERROR = 62; + + private Errors() { + } + + /** Runs call and removes the ExecutionException wrapper of a future. */ + static T unwrap(Callable call) throws Exception { + try { + return call.call(); + } catch (ExecutionException | CompletionException e) { + Throwable cause = e.getCause(); + if (cause instanceof Exception) { + throw (Exception) cause; + } + throw e; + } + } + + /** A result that does not match the test hint of the statement. */ + static final class HintException extends Exception { + final int code; + + HintException(String message, int code) { + super(message); + this.code = code; + } + } + + /** Returns the ServerException in the cause chain, or null. */ + static ServerException serverException(Throwable e) { + for (Throwable t = e; t != null; t = t.getCause()) { + if (t instanceof ServerException) { + return (ServerException) t; + } + if (t.getCause() == t) { + break; + } + } + return null; + } + + /** + * Returns the server error code of an exception: the code of a ServerException in the cause chain, or the + * vendor code of a SQLException. Returns null for an error that did not come from the server. + */ + static Integer serverCode(Throwable e) { + if (e == null) { + return null; + } + ServerException se = serverException(e); + if (se != null) { + return se.getCode(); + } + for (Throwable t = e; t != null; t = t.getCause()) { + if (t instanceof SQLException && ((SQLException) t).getErrorCode() > 0) { + return ((SQLException) t).getErrorCode(); + } + if (t.getCause() == t) { + break; + } + } + return null; + } + + /** + * Writes a server error the way clickhouse-client does, {@code Code: N. DB::Exception: ... (NAME)}, so that the + * error name is in the text. + */ + static String formatServerError(Throwable e, int code) { + ServerException se = serverException(e); + String msg = se != null ? se.getMessage() : e.getMessage(); + if (msg == null) { + msg = e.toString(); + } + msg = msg.trim(); + String name = ErrorCodes.name(code); + if (!msg.startsWith("Code:")) { + msg = "Code: " + code + ". DB::Exception: " + msg; + } + if (name != null && !msg.contains("(" + name + ")")) { + msg += " (" + name + ")"; + } + return msg; + } + + /** Returns the message of an exception with the messages of its causes. */ + static String describe(Throwable e) { + StringBuilder sb = new StringBuilder(); + for (Throwable t = e; t != null; t = t.getCause()) { + if (sb.length() > 0) { + sb.append(": "); + } + String m = t.getMessage(); + sb.append(t.getClass().getSimpleName()); + if (m != null && !m.isEmpty()) { + sb.append(" ").append(m); + } + if (t.getCause() == t) { + break; + } + } + return sb.toString(); + } +} diff --git a/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/FloatFormat.java b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/FloatFormat.java new file mode 100644 index 000000000..b1fd2087a --- /dev/null +++ b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/FloatFormat.java @@ -0,0 +1,141 @@ +package com.clickhouse.client.cli; + +import java.math.BigDecimal; +import java.math.MathContext; +import java.math.RoundingMode; + +/** + * Writes floating-point values as ClickHouse does: the shortest text that reads back as the same value, in + * positional notation when the decimal exponent is in [-6, 21), else in scientific notation without a {@code +} + * sign or exponent padding ({@code 1e21}, {@code 1.5e-7}). This is the same layout as JavaScript's + * {@code Number.prototype.toString}. + * + *

{@link Double#toString(double)} is not a substitute: before JDK 19 it sometimes gives more digits than + * necessary, and it uses another layout. The digits come from the exact decimal value of the binary value + * ({@link BigDecimal}), rounded to the smallest precision that reads back as the same value. + */ +final class FloatFormat { + + private FloatFormat() { + } + + static String formatDouble(double f) { + String special = special(f, Double.isNaN(f), Double.isInfinite(f), f == 0, 1 / f < 0); + if (special != null) { + return special; + } + BigDecimal exact = new BigDecimal(Math.abs(f)); + int hi = significantDigits(Double.toString(Math.abs(f))); + BigDecimal shortest = shortest(exact, hi, 17, p -> Double.parseDouble(p.toString()) == Math.abs(f)); + return layout(f < 0, shortest); + } + + static String formatFloat(float f) { + String special = special(f, Float.isNaN(f), Float.isInfinite(f), f == 0, 1 / f < 0); + if (special != null) { + return special; + } + float abs = Math.abs(f); + BigDecimal exact = new BigDecimal(abs); + int hi = significantDigits(Float.toString(abs)); + BigDecimal shortest = shortest(exact, hi, 9, p -> Float.parseFloat(p.toString()) == abs); + return layout(f < 0, shortest); + } + + private static String special(double f, boolean nan, boolean inf, boolean zero, boolean negZero) { + if (nan) { + return "nan"; + } + if (inf) { + return f > 0 ? "inf" : "-inf"; + } + if (zero) { + return negZero ? "-0" : "0"; + } + return null; + } + + private interface RoundTrip { + boolean test(BigDecimal candidate); + } + + /** + * Returns the exact value rounded to the smallest precision that reads back as the same value. Rounding to + * more digits only comes closer to the value, so the round-trip test is monotonic in the precision. + * {@code hint} (the digit count of {@code Double.toString}, which reads back) bounds the search. + */ + private static BigDecimal shortest(BigDecimal exact, int hint, int max, RoundTrip roundTrip) { + int hi = Math.max(1, Math.min(hint, max)); + BigDecimal best = round(exact, hi); + if (!roundTrip.test(best)) { + hi = max; + best = round(exact, hi); + } + int lo = 1; + while (lo < hi) { + int mid = (lo + hi) >>> 1; + BigDecimal candidate = round(exact, mid); + if (roundTrip.test(candidate)) { + hi = mid; + best = candidate; + } else { + lo = mid + 1; + } + } + return best; + } + + private static BigDecimal round(BigDecimal exact, int precision) { + return exact.round(new MathContext(precision, RoundingMode.HALF_EVEN)); + } + + /** Counts the significant digits of the text of Double.toString or Float.toString. */ + private static int significantDigits(String s) { + int e = s.indexOf('E'); + String mantissa = e >= 0 ? s.substring(0, e) : s; + String digits = mantissa.replace(".", ""); + int start = 0; + while (start < digits.length() - 1 && digits.charAt(start) == '0') { + start++; + } + int end = digits.length(); + while (end > start + 1 && digits.charAt(end - 1) == '0') { + end--; + } + return end - start; + } + + /** Writes the decimal value v (positive) in the layout of JavaScript's Number.prototype.toString. */ + private static String layout(boolean negative, BigDecimal v) { + BigDecimal stripped = v.stripTrailingZeros(); + String digits = stripped.unscaledValue().toString(); + // The value is 0.digits x 10^n. + int k = digits.length(); + int n = k - stripped.scale(); + StringBuilder out = new StringBuilder(k + 8); + if (negative) { + out.append('-'); + } + if (k <= n && n <= 21) { + out.append(digits); + for (int i = 0; i < n - k; i++) { + out.append('0'); + } + } else if (0 < n && n <= 21) { + out.append(digits, 0, n).append('.').append(digits, n, k); + } else if (-6 < n && n <= 0) { + out.append("0."); + for (int i = 0; i < -n; i++) { + out.append('0'); + } + out.append(digits); + } else { + out.append(digits.charAt(0)); + if (k > 1) { + out.append('.').append(digits, 1, k); + } + out.append('e').append(n - 1); + } + return out.toString(); + } +} diff --git a/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/InvocationLog.java b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/InvocationLog.java new file mode 100644 index 000000000..e8acd9afd --- /dev/null +++ b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/InvocationLog.java @@ -0,0 +1,56 @@ +package com.clickhouse.client.cli; + +import java.nio.ByteBuffer; +import java.nio.channels.FileChannel; +import java.nio.charset.StandardCharsets; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.nio.file.StandardOpenOption; +import java.time.Instant; + +/** + * Collects troubleshooting lines for one invocation and appends them to the file named by + * {@code CLICKHOUSE_CLIENT_CLI_LOG}. Without that variable, it does nothing. The lines are written in one write, so + * the lines of parallel invocations do not mix. + */ +final class InvocationLog { + static final String LOG_PATH_ENV = "CLICKHOUSE_CLIENT_CLI_LOG"; + + private final Path path; + private final StringBuilder lines = new StringBuilder(); + + InvocationLog(String path) { + this.path = path == null || path.isEmpty() ? null : Paths.get(path); + add("=== clickhouse-client invocation", Instant.now().toString()); + } + + void add(String key, String value) { + if (path == null) { + return; + } + lines.append(key).append('=').append(String.valueOf(value).replace("\n", "\\n")).append('\n'); + } + + /** + * Appends the lines to the log file. A log that cannot be written must not change the result of a test, so a + * write error is ignored here; the missing lines in the log show it. + */ + void flush() { + if (path == null) { + return; + } + try { + Path parent = path.toAbsolutePath().getParent(); + if (parent != null) { + Files.createDirectories(parent); + } + try (FileChannel channel = FileChannel.open(path, StandardOpenOption.CREATE, StandardOpenOption.WRITE, + StandardOpenOption.APPEND)) { + channel.write(ByteBuffer.wrap(lines.toString().getBytes(StandardCharsets.UTF_8))); + } + } catch (Exception ignored) { + // See the method comment. + } + } +} diff --git a/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/JdbcBackend.java b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/JdbcBackend.java new file mode 100644 index 000000000..3204482ae --- /dev/null +++ b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/JdbcBackend.java @@ -0,0 +1,130 @@ +package com.clickhouse.client.cli; + +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.ResultSet; +import java.sql.ResultSetMetaData; +import java.sql.SQLException; +import java.sql.Statement; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Properties; + +/** + * The {@code jdbc} backend: jdbc-v2 over HTTP, through {@link DriverManager}. + * + *

Every statement runs with {@link Statement#execute(String)} on one {@link Statement}. The values come from + * {@link ResultSet#getObject(int)}, and the column types from {@link ResultSetMetaData#getColumnTypeName(int)}. The + * session is the {@code session_id} server setting of the connection. The driver handles {@code USE} itself. + * + *

The command-line settings are connection properties ({@code clickhouse_setting_}), so they go with each + * request. When the test changes one of them with SET, the backend opens the connection again (with the same + * session) without it, so that the session value counts. The query parameters of the command line + * ({@code --param_}) go as {@code param_} server settings, which the HTTP interface reads as query + * parameters. + */ +final class JdbcBackend implements Backend { + + private static final String SETTING_PREFIX = "clickhouse_setting_"; + + private final String baseUrl; + private final CliOptions opts; + private final String sessionId; + private final InvocationLog log; + private Connection conn; + private Statement stmt; + private String database; + + JdbcBackend(CliOptions opts, int port, String sessionId, Map settings, InvocationLog log) + throws SQLException { + this.baseUrl = "jdbc:clickhouse:" + (opts.secure ? "https" : "http") + "://" + opts.host + ":" + port + "/"; + this.opts = opts; + this.sessionId = sessionId; + this.log = log; + this.database = opts.database; + open(settings); + } + + private void open(Map settings) throws SQLException { + Properties props = new Properties(); + props.setProperty("user", opts.user); + props.setProperty("password", opts.password); + props.setProperty(SETTING_PREFIX + "session_id", sessionId); + for (Map.Entry e : settings.entrySet()) { + props.setProperty(SETTING_PREFIX + e.getKey(), e.getValue()); + } + for (Map.Entry e : opts.params.entrySet()) { + props.setProperty(SETTING_PREFIX + "param_" + e.getKey(), e.getValue()); + } + String url = baseUrl + database; + log.add("jdbc_url", url); + conn = DriverManager.getConnection(url, props); + stmt = conn.createStatement(); + } + + @Override + public void settingsChanged(Map settings) throws Exception { + close(); + open(settings); + } + + @Override + public Result execute(String sql, Map settings, String currentDatabase) throws Exception { + // The shim tracks the current database only to open the connection again in it. + this.database = currentDatabase; + if (!stmt.execute(sql)) { + return null; + } + ResultSet rs = stmt.getResultSet(); + if (rs == null) { + return null; + } + ResultSetMetaData meta = rs.getMetaData(); + List names = new ArrayList<>(); + List types = new ArrayList<>(); + for (int i = 1; i <= meta.getColumnCount(); i++) { + names.add(meta.getColumnLabel(i)); + types.add(meta.getColumnTypeName(i)); + } + return new Result() { + @Override + public List names() { + return names; + } + + @Override + public List types() { + return types; + } + + @Override + public boolean next() throws SQLException { + return rs.next(); + } + + @Override + public Object get(int i) throws SQLException { + return rs.getObject(i + 1); + } + + @Override + public void close() throws SQLException { + rs.close(); + } + }; + } + + @Override + public void close() throws SQLException { + try { + if (stmt != null) { + stmt.close(); + } + } finally { + if (conn != null) { + conn.close(); + } + } + } +} diff --git a/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/Main.java b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/Main.java index 3c55ddba7..5b1df97b5 100644 --- a/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/Main.java +++ b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/Main.java @@ -1,710 +1,235 @@ package com.clickhouse.client.cli; -import com.clickhouse.client.api.Client; -import com.clickhouse.client.api.query.QueryResponse; -import com.clickhouse.client.api.query.QuerySettings; -import com.clickhouse.data.ClickHouseFormat; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.CommandLineParser; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.HelpFormatter; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; import org.apache.commons.cli.ParseException; -import org.apache.commons.csv.CSVFormat; -import org.apache.commons.csv.CSVPrinter; -import java.io.BufferedReader; +import java.io.BufferedOutputStream; +import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.OutputStreamWriter; +import java.io.OutputStream; +import java.io.PrintStream; import java.nio.charset.StandardCharsets; -import java.nio.ByteBuffer; -import java.nio.channels.FileChannel; -import java.nio.file.Files; -import java.nio.file.Path; -import java.nio.file.Paths; -import java.nio.file.StandardOpenOption; -import java.sql.Connection; -import java.sql.DriverManager; -import java.sql.ResultSet; -import java.sql.ResultSetMetaData; -import java.sql.Statement; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Date; -import java.util.HashSet; -import java.util.LinkedHashSet; +import java.security.SecureRandom; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; -import java.util.LinkedHashMap; -import java.util.Properties; -import java.util.Set; -import java.util.concurrent.TimeUnit; +import java.util.function.Function; /** - * Simple CLI tool that mimics clickhouse-client. - * Executes a SQL query against a ClickHouse server and prints results in TSV format. + * A CLI that imitates {@code clickhouse-client} well enough for the ClickHouse core test runner + * ({@code tests/clickhouse-test}) to drive it, and runs every query through clickhouse-java. It reads the result + * values that the client decoded and writes them as {@code TabSeparated} text, so the upstream {@code .reference} + * files check the decoding of the client. * - *

Supports two backend implementations selected via the {@code CLICKHOUSE_CLIENT_CLI_IMPL} - * environment variable: + *

The backend is selected by the {@code CLICKHOUSE_CLIENT_CLI_IMPL} environment variable: *

    - *
  • {@code client} (default) – uses the ClickHouse client-v2 API
  • - *
  • {@code jdbc} – uses the ClickHouse JDBC driver
  • + *
  • {@code client} (default): client-v2, values from {@code ClickHouseBinaryFormatReader.readValue}
  • + *
  • {@code jdbc}: jdbc-v2, values from {@code ResultSet.getObject}
  • + *
  • {@code text}: client-v2, the server's own text output copied as it is. Transport only: this backend does + * not check the decoding of the client.
  • *
* - * Usage: - * java -jar clickhouse-client-cli.jar [options] - * - * Options: - * --host, -h Server host (default: localhost) - * --port HTTP port (default: 8123) - * --user, -u Username (default: default) - * --password Password (default: empty) - * --database, -d Database (default: default) - * --query, -q SQL query to execute - * --log_comment Comment for query_log records - * --send_logs_level Server log level to send with result - * --max_insert_threads Max insert threads setting - * --multiquery Execute multiple ';'-separated queries - * --multiline, -n (ignored, accepted for compatibility) - * --help Print usage - * - * If --query is not specified, the query is read from stdin. + *

See {@code README.md} for how to run the upstream SQL tests with it. */ -public class Main { - - private static final long QUERY_TIMEOUT_SECONDS = 300; - private static final String LOG_PATH_ENV = "CLICKHOUSE_CLIENT_CLI_LOG"; - private static final String IMPL_ENV = "CLICKHOUSE_CLIENT_CLI_IMPL"; - private static final String IMPL_CLIENT = "client"; - private static final String IMPL_JDBC = "jdbc"; - private static final Path DEFAULT_LOG_PATH = Paths.get("/tmp/clickhouse-client-cli.log"); - private static final Path FALLBACK_LOG_PATH = Paths.get("clickhouse-client-cli.log"); - private static final CSVFormat CLICKHOUSE_TSV_FORMAT = CSVFormat.TDF.builder() - .setQuote(null) - .setEscape('\\') - .setRecordSeparator('\n') - .setNullString("\\N") - .build(); - private static final String USAGE_HEADER = System.lineSeparator() - + "Known server settings are forwarded to ClickHouse." - + System.lineSeparator() - + "Client-only and unknown settings are accepted but not sent to server." - + System.lineSeparator() - + "If --query is not specified, the query is read from stdin." - + System.lineSeparator() - + System.lineSeparator() - + "Environment variables:" - + System.lineSeparator() - + " CLICKHOUSE_CLIENT_CLI_IMPL Backend implementation: 'client' (default) or 'jdbc'" - + System.lineSeparator() - + " CLICKHOUSE_CLIENT_CLI_LOG Path to log file for troubleshooting"; - private static final Set CLIENT_ONLY_SETTINGS = createClientOnlySettings(); - private static final Set SERVER_SETTINGS = createServerSettings(); +public final class Main { - public static void main(String[] args) { - String host = "localhost"; - int port = 8123; - String user = "default"; - String password = ""; - String database = "default"; - String logComment = null; - String sendLogsLevel = null; - String maxInsertThreads = null; - String query = null; - boolean secure = false; - boolean multiquery = false; - Map extraServerSettings = new LinkedHashMap<>(); - Path logPath = resolveLogPath(); - Options options = createBaseOptions(); - Set knownLongOptions = collectLongOptionNames(options); + static final String IMPL_ENV = "CLICKHOUSE_CLIENT_CLI_IMPL"; - appendLog(logPath, "=== clickhouse-client invocation ==="); - appendLog(logPath, "timestamp=" + new Date()); - appendLog(logPath, "argv=" + String.join(" ", args)); + private Main() { + } - registerDynamicLongOptions(options, knownLongOptions, args); + public static void main(String[] args) { + int code = run(args, System.in, System.out, System.err, System::getenv); + System.out.flush(); + System.exit(code); + } - CommandLineParser parser = DefaultParser.builder() - .setAllowPartialMatching(false) - .build(); - CommandLine cmd; + /** Runs one invocation. env gives the environment variables (the live tests give their own). */ + static int run(String[] argv, InputStream stdin, OutputStream stdout, PrintStream stderr, + Function env) { + InvocationLog log = new InvocationLog(env.apply(InvocationLog.LOG_PATH_ENV)); try { - cmd = parser.parse(options, args); - } catch (ParseException e) { - System.err.println("Error: " + e.getMessage()); - printUsage(options); - System.exit(1); - return; - } - - if (cmd.hasOption("help")) { - printUsage(options); - System.exit(0); + return runLogged(argv, stdin, stdout, stderr, env, log); + } finally { + log.flush(); } + } - host = cmd.getOptionValue("host", host); - String portValue = cmd.getOptionValue("port"); - if (portValue != null) { - port = Integer.parseInt(portValue); + private static int runLogged(String[] argv, InputStream stdin, OutputStream stdout, PrintStream stderr, + Function env, InvocationLog log) { + log.add("argv", String.join(" ", CliOptions.redactPassword(argv))); + if (argv.length > 0 && argv[0].equals("extract-from-config")) { + return extractFromConfig(argv, stdout); } - user = cmd.getOptionValue("user", user); - password = cmd.getOptionValue("password", password); - database = cmd.getOptionValue("database", database); - query = cmd.getOptionValue("query", query); - logComment = firstNonNullOptionValue(cmd, "log_comment", "log-comment"); - sendLogsLevel = firstNonNullOptionValue(cmd, "send_logs_level", "send-logs-level"); - maxInsertThreads = firstNonNullOptionValue(cmd, "max_insert_threads", "max-insert-threads"); - secure = cmd.hasOption("secure"); - multiquery = cmd.hasOption("multiquery") || cmd.hasOption("multi-query"); - - for (Option option : cmd.getOptions()) { - String longOpt = option.getLongOpt(); - if (longOpt == null || knownLongOptions.contains(longOpt)) { - continue; - } - String settingName = longOpt.replace('-', '_'); - String settingValue = option.hasArg() ? option.getValue() : null; - if (settingValue == null) { - settingValue = "1"; - } - if (classifySetting(settingName) == SettingScope.SERVER) { - extraServerSettings.put(settingName, settingValue); - } + CliOptions opts; + try { + opts = CliOptions.parse(argv); + } catch (ParseException e) { + stderr.print("Error: " + e.getMessage() + "\n\n" + CliOptions.usage()); + return 1; } - - if (query == null) { - query = readStdin(); + if (opts.help) { + write(stdout, CliOptions.usage()); + return 0; } - - if (query == null || query.isBlank()) { - System.err.println("No query provided. Use --query or pipe SQL via stdin."); - System.exit(1); + String impl = env.apply(IMPL_ENV); + if (impl == null || impl.isEmpty()) { + impl = "client"; } - List queries = multiquery ? splitQueries(query) : List.of(query); - if (queries.isEmpty()) { - System.err.println("No query provided. Use --query or pipe SQL via stdin."); - System.exit(1); + if (!impl.equals("client") && !impl.equals("jdbc") && !impl.equals("text")) { + stderr.println("Error: unknown " + IMPL_ENV + " \"" + impl + "\": use client, jdbc or text"); + return 1; } + log.add("impl", impl); - String impl = System.getenv(IMPL_ENV); - if (impl == null || impl.isBlank()) { - impl = IMPL_CLIENT; + String text = opts.query; + if (text == null) { + try { + text = new String(readAll(stdin), StandardCharsets.UTF_8); + } catch (IOException e) { + stderr.println("Error: read stdin: " + e.getMessage()); + return 1; + } } - - appendLog(logPath, "impl=" + impl); - appendLog(logPath, "database=" + database + ", user=" + user + ", secure=" + secure + ", multiquery=" + multiquery); - appendLog(logPath, "log_comment=" + safeForLog(logComment)); - appendLog(logPath, "send_logs_level=" + safeForLog(sendLogsLevel)); - appendLog(logPath, "max_insert_threads=" + safeForLog(maxInsertThreads)); - appendLog(logPath, "server_settings=" + extraServerSettings); - appendLog(logPath, "queries_count=" + queries.size()); - for (int qi = 0; qi < queries.size(); qi++) { - appendLog(logPath, "query[" + qi + "]=" + queries.get(qi)); + if (text.trim().isEmpty()) { + stderr.println("Error: no query. Use --query or write the queries to stdin."); + return 1; + } + List statements = StatementSplitter.split(text); + log.add("statements", String.valueOf(statements.size())); + if (statements.isEmpty()) { + return 0; } + String sessionId = newSessionId(); + log.add("session_id", sessionId); + int port = httpPort(opts.port, opts.secure, env); + Map settings = new LinkedHashMap<>(opts.settings); + OutputStream out = new BufferedOutputStream(stdout, 1 << 16); + Exception error = null; + Backend backend = null; try { - switch (impl) { - case IMPL_CLIENT: - executeWithClient(host, port, user, password, database, secure, - logComment, sendLogsLevel, maxInsertThreads, - extraServerSettings, queries, logPath); - break; - case IMPL_JDBC: - executeWithJdbc(host, port, user, password, database, secure, - logComment, sendLogsLevel, maxInsertThreads, - extraServerSettings, queries, logPath); - break; - default: - System.err.println("Unknown " + IMPL_ENV + " value: " + impl - + ". Supported: " + IMPL_CLIENT + ", " + IMPL_JDBC); - System.exit(1); - } + backend = impl.equals("jdbc") + ? new JdbcBackend(opts, port, sessionId, settings, log) + : new ClientBackend(opts, port, sessionId, impl.equals("text"), log); + new Runner(backend, opts, settings, out, log).run(statements); } catch (Exception e) { - appendLog(logPath, "error=" + e.getMessage()); - System.err.println("Error: " + e.getMessage()); - System.exit(1); - } - } - - private static void executeWithClient(String host, int port, String user, String password, - String database, boolean secure, - String logComment, String sendLogsLevel, String maxInsertThreads, - Map extraServerSettings, - List queries, Path logPath) throws Exception { - String endpoint = (secure ? "https://" : "http://") + host + ":" + port; - appendLog(logPath, "endpoint=" + endpoint); - - try (Client client = new Client.Builder() - .addEndpoint(endpoint) - .setUsername(user) - .setPassword(password) - .setDefaultDatabase(database) - .build()) { - - QuerySettings settings = new QuerySettings() - .setFormat(ClickHouseFormat.TabSeparated); - if (logComment != null && !logComment.isBlank()) { - settings.logComment(logComment); - } - if (sendLogsLevel != null && !sendLogsLevel.isBlank()) { - settings.serverSetting("send_logs_level", sendLogsLevel); - } - if (maxInsertThreads != null && !maxInsertThreads.isBlank()) { - settings.serverSetting("max_insert_threads", maxInsertThreads); - } - for (Map.Entry entry : extraServerSettings.entrySet()) { - if (entry.getValue() != null && !entry.getValue().isBlank()) { - settings.serverSetting(entry.getKey(), entry.getValue()); - } - } - - for (String q : queries) { - appendLog(logPath, "executing_query=" + q); - try (QueryResponse response = client.query(q, settings) - .get(QUERY_TIMEOUT_SECONDS, TimeUnit.SECONDS)) { - try (InputStream is = response.getInputStream()) { - byte[] buf = new byte[8192]; - int n; - while ((n = is.read(buf)) != -1) { - System.out.write(buf, 0, n); - } - System.out.flush(); - } - } - } + error = e; } - } - - private static void executeWithJdbc(String host, int port, String user, String password, - String database, boolean secure, - String logComment, String sendLogsLevel, String maxInsertThreads, - Map extraServerSettings, - List queries, Path logPath) throws Exception { - String protocol = secure ? "https" : "http"; - String jdbcUrl = "jdbc:clickhouse:" + protocol + "://" + host + ":" + port + "/" + database; - appendLog(logPath, "jdbc_url=" + jdbcUrl); - - Properties props = new Properties(); - props.setProperty("user", user); - props.setProperty("password", password); - - addServerSetting(props, "log_comment", logComment); - addServerSetting(props, "send_logs_level", sendLogsLevel); - addServerSetting(props, "max_insert_threads", maxInsertThreads); - for (Map.Entry entry : extraServerSettings.entrySet()) { - addServerSetting(props, entry.getKey(), entry.getValue()); + try { + out.flush(); + } catch (IOException e) { + error = error == null ? e : error; } - - try (Connection conn = DriverManager.getConnection(jdbcUrl, props); - Statement stmt = conn.createStatement()) { - - for (String q : queries) { - appendLog(logPath, "executing_query=" + q); - boolean hasResultSet = stmt.execute(q); - if (hasResultSet) { - try (ResultSet rs = stmt.getResultSet()) { - writeResultSetAsTsv(rs); - } - } + if (backend != null) { + try { + backend.close(); + } catch (Exception e) { + error = error == null ? e : error; } } - } - - private static void addServerSetting(Properties props, String name, String value) { - if (value != null && !value.isBlank()) { - props.setProperty("clickhouse_setting_" + name, value); + if (error != null) { + log.add("error", Errors.describe(error)); + return reportError(stderr, error); } + return 0; } - private static void writeResultSetAsTsv(ResultSet rs) throws Exception { - ResultSetMetaData meta = rs.getMetaData(); - int columnCount = meta.getColumnCount(); - CSVPrinter printer = new CSVPrinter(new OutputStreamWriter(System.out, StandardCharsets.UTF_8), CLICKHOUSE_TSV_FORMAT); - while (rs.next()) { - for (int i = 1; i <= columnCount; i++) { - printer.print(rs.getString(i)); + /** + * Writes the error to stderr and returns the exit code. As in clickhouse-client, the exit code is the error + * code modulo 256 when it is a server error. + */ + static int reportError(PrintStream stderr, Throwable e) { + int code = 0; + if (e instanceof Errors.HintException) { + stderr.println("Error: " + e.getMessage()); + code = ((Errors.HintException) e).code; + } else { + Integer serverCode = Errors.serverCode(e); + if (serverCode != null) { + stderr.println("Received exception from server:\n" + Errors.formatServerError(e, serverCode)); + code = serverCode; + } else { + stderr.println("Error: " + Errors.describe(e)); } - printer.println(); } - printer.flush(); + stderr.flush(); + return code % 256 != 0 ? code % 256 : 1; } - private static Options createBaseOptions() { - Options options = new Options(); - options.addOption(Option.builder("h").longOpt("host").hasArg().argName("HOST") - .desc("Server host (default: localhost)").build()); - options.addOption(Option.builder().longOpt("port").hasArg().argName("PORT") - .desc("HTTP port (default: 8123)").build()); - options.addOption(Option.builder("u").longOpt("user").hasArg().argName("USER") - .desc("Username (default: default)").build()); - options.addOption(Option.builder().longOpt("password").hasArg().argName("PASSWORD") - .desc("Password (default: empty)").build()); - options.addOption(Option.builder("d").longOpt("database").hasArg().argName("DB") - .desc("Database (default: default)").build()); - options.addOption(Option.builder("q").longOpt("query").hasArg().argName("SQL") - .desc("SQL query to execute").build()); - options.addOption(Option.builder().longOpt("log_comment").hasArg().argName("VALUE") - .desc("Comment for query_log records").build()); - options.addOption(Option.builder().longOpt("log-comment").hasArg().argName("VALUE").build()); - options.addOption(Option.builder().longOpt("send_logs_level").hasArg().argName("VALUE") - .desc("Server log level to send with result").build()); - options.addOption(Option.builder().longOpt("send-logs-level").hasArg().argName("VALUE").build()); - options.addOption(Option.builder().longOpt("max_insert_threads").hasArg().argName("VALUE") - .desc("Max insert threads setting").build()); - options.addOption(Option.builder().longOpt("max-insert-threads").hasArg().argName("VALUE").build()); - options.addOption(Option.builder("s").longOpt("secure") - .desc("Use HTTPS").build()); - options.addOption(Option.builder("n").longOpt("multiline") - .desc("(ignored, accepted for compatibility)").build()); - options.addOption(Option.builder().longOpt("multiquery") - .desc("Execute multiple ';'-separated queries").build()); - options.addOption(Option.builder().longOpt("multi-query").build()); - options.addOption(Option.builder().longOpt("help") - .desc("Print this help").build()); - return options; - } - - private static Set collectLongOptionNames(Options options) { - Set names = new HashSet<>(); - for (Option option : options.getOptions()) { - if (option.getLongOpt() != null) { - names.add(option.getLongOpt()); - } - } - return names; - } - - private static void registerDynamicLongOptions(Options options, Set knownLongOptions, String[] args) { - Set added = new LinkedHashSet<>(); - for (String arg : args) { - if (arg == null || !arg.startsWith("--") || "--".equals(arg)) { - continue; - } - int eq = arg.indexOf('='); - String longOpt = eq >= 0 ? arg.substring(2, eq) : arg.substring(2); - if (longOpt.isBlank() || knownLongOptions.contains(longOpt) || added.contains(longOpt)) { - continue; - } - options.addOption(Option.builder() - .longOpt(longOpt) - .hasArg() - .optionalArg(true) - .argName("VALUE") - .build()); - added.add(longOpt); + /** + * Maps the port that {@code tests/clickhouse-test} gives (the native TCP port, from CLICKHOUSE_PORT_TCP) to the + * HTTP port that the runner exports. Any other port is used as given. + */ + static int httpPort(Integer port, boolean secure, Function env) { + String nativeEnv = secure ? "CLICKHOUSE_PORT_TCP_SECURE" : "CLICKHOUSE_PORT_TCP"; + String httpEnv = secure ? "CLICKHOUSE_PORT_HTTPS" : "CLICKHOUSE_PORT_HTTP"; + int nativeDefault = secure ? 9440 : 9000; + int httpDefault = secure ? 8443 : 8123; + int nativePort = envInt(env.apply(nativeEnv), nativeDefault); + if (port != null && port != 0 && port != nativePort) { + return port; } + return envInt(env.apply(httpEnv), httpDefault); } - private static String firstNonNullOptionValue(CommandLine cmd, String... optionNames) { - for (String optionName : optionNames) { - String value = cmd.getOptionValue(optionName); - if (value != null) { - return value; - } + private static int envInt(String v, int def) { + if (v == null) { + return def; } - return null; - } - - private static Path resolveLogPath() { - String fromEnv = System.getenv(LOG_PATH_ENV); - if (fromEnv != null && !fromEnv.isBlank()) { - return Paths.get(fromEnv); + try { + return Integer.parseInt(v.trim()); + } catch (NumberFormatException e) { + return def; } - return DEFAULT_LOG_PATH; } - private static void appendLog(Path path, String line) { - String payload = line + System.lineSeparator(); - if (appendLogInternal(path, payload)) { - return; - } - if (!FALLBACK_LOG_PATH.equals(path)) { - appendLogInternal(FALLBACK_LOG_PATH, payload); + private static String newSessionId() { + byte[] b = new byte[16]; + new SecureRandom().nextBytes(b); + StringBuilder sb = new StringBuilder("clickhouse-java-cli-"); + for (byte x : b) { + sb.append(String.format("%02x", x)); } + return sb.toString(); } - private static boolean appendLogInternal(Path path, String payload) { - try { - Path parent = path.getParent(); - if (parent != null) { - Files.createDirectories(parent); - } - byte[] bytes = payload.getBytes(StandardCharsets.UTF_8); - try (FileChannel channel = FileChannel.open(path, - StandardOpenOption.CREATE, - StandardOpenOption.WRITE, - StandardOpenOption.APPEND)) { - channel.write(ByteBuffer.wrap(bytes)); - channel.force(true); + /** + * Answers {@code clickhouse extract-from-config --key }, which {@code tests/clickhouse-test} runs to read + * the server config. Only {@code listen_host} has an answer; for other keys the output is empty, as for a key + * that is not in the config. ({@code bin/clickhouse} answers it without a JVM; this is for direct use.) + */ + static int extractFromConfig(String[] argv, OutputStream stdout) { + String key = null; + for (int i = 1; i < argv.length; i++) { + if (argv[i].equals("--key") && i + 1 < argv.length) { + key = argv[++i]; + } else if (argv[i].startsWith("--key=")) { + key = argv[i].substring("--key=".length()); } - return true; - } catch (Exception ignored) { - // Logging must never break CLI behavior in tests. - return false; } + if ("listen_host".equals(key)) { + write(stdout, "127.0.0.1\n"); + } + return 0; } - private static String safeForLog(String value) { - return value == null ? "" : value; - } - - private static String readStdin() { + private static void write(OutputStream out, String s) { try { - StringBuilder sb = new StringBuilder(); - try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) { - String line; - while ((line = reader.readLine()) != null) { - if (sb.length() > 0) { - sb.append('\n'); - } - sb.append(line); - } - } - return sb.isEmpty() ? null : sb.toString(); + out.write(s.getBytes(StandardCharsets.UTF_8)); + out.flush(); } catch (IOException e) { - return null; - } - } - - private static List splitQueries(String sql) { - List queries = new ArrayList<>(); - StringBuilder current = new StringBuilder(); - - boolean inSingleQuote = false; - boolean inDoubleQuote = false; - boolean inBacktick = false; - boolean escaping = false; - - for (int i = 0; i < sql.length(); i++) { - char ch = sql.charAt(i); - - if (escaping) { - current.append(ch); - escaping = false; - continue; - } - - if ((inSingleQuote || inDoubleQuote) && ch == '\\') { - current.append(ch); - escaping = true; - continue; - } - - if (!inDoubleQuote && !inBacktick && ch == '\'') { - inSingleQuote = !inSingleQuote; - current.append(ch); - continue; - } - if (!inSingleQuote && !inBacktick && ch == '"') { - inDoubleQuote = !inDoubleQuote; - current.append(ch); - continue; - } - if (!inSingleQuote && !inDoubleQuote && ch == '`') { - inBacktick = !inBacktick; - current.append(ch); - continue; - } - - if (!inSingleQuote && !inDoubleQuote && !inBacktick && ch == ';') { - String statement = current.toString().trim(); - if (!statement.isEmpty()) { - queries.add(statement); - } - current.setLength(0); - continue; - } - - current.append(ch); + // Nothing to do: stdout is gone. } - - String trailing = current.toString().trim(); - if (!trailing.isEmpty()) { - queries.add(trailing); - } - - return queries; - } - - private static void printUsage(Options options) { - HelpFormatter formatter = new HelpFormatter(); - formatter.setOptionComparator(null); - formatter.printHelp("clickhouse-client [options]", USAGE_HEADER, options, "", true); } - private static SettingScope classifySetting(String settingName) { - if (SERVER_SETTINGS.contains(settingName)) { - return SettingScope.SERVER; - } - if (CLIENT_ONLY_SETTINGS.contains(settingName)) { - return SettingScope.CLIENT_ONLY; + private static byte[] readAll(InputStream in) throws IOException { + ByteArrayOutputStream buf = new ByteArrayOutputStream(); + byte[] b = new byte[8192]; + int n; + while ((n = in.read(b)) != -1) { + buf.write(b, 0, n); } - return SettingScope.UNKNOWN; - } - - private enum SettingScope { - SERVER, - CLIENT_ONLY, - UNKNOWN - } - - private static Set createServerSettings() { - Set settings = new HashSet<>(); - Collections.addAll(settings, - "max_insert_threads", - "send_logs_level"); - return Collections.unmodifiableSet(settings); - } - - private static Set createClientOnlySettings() { - Set settings = new HashSet<>(); - Collections.addAll(settings, - "group_by_two_level_threshold", - "group_by_two_level_threshold_bytes", - "distributed_aggregation_memory_efficient", - "fsync_metadata", - "output_format_parallel_formatting", - "input_format_parallel_parsing", - "min_chunk_bytes_for_parallel_parsing", - "max_read_buffer_size", - "prefer_localhost_replica", - "max_block_size", - "max_joined_block_size_rows", - "joined_block_split_single_row", - "join_output_by_rowlist_perkey_rows_threshold", - "max_threads", - "optimize_append_index", - "use_hedged_requests", - "optimize_if_chain_to_multiif", - "optimize_if_transform_strings_to_enum", - "optimize_read_in_order", - "optimize_or_like_chain", - "optimize_substitute_columns", - "enable_multiple_prewhere_read_steps", - "read_in_order_two_level_merge_threshold", - "optimize_aggregation_in_order", - "aggregation_in_order_max_block_bytes", - "use_uncompressed_cache", - "min_bytes_to_use_direct_io", - "min_bytes_to_use_mmap_io", - "local_filesystem_read_method", - "remote_filesystem_read_method", - "local_filesystem_read_prefetch", - "filesystem_cache_segments_batch_size", - "read_from_filesystem_cache_if_exists_otherwise_bypass_cache", - "throw_on_error_from_cache_on_write_operations", - "remote_filesystem_read_prefetch", - "distributed_cache_discard_connection_if_unread_data", - "distributed_cache_use_clients_cache_for_write", - "distributed_cache_use_clients_cache_for_read", - "allow_prefetched_read_pool_for_remote_filesystem", - "filesystem_prefetch_max_memory_usage", - "filesystem_prefetches_limit", - "filesystem_prefetch_min_bytes_for_single_read_task", - "filesystem_prefetch_step_marks", - "filesystem_prefetch_step_bytes", - "enable_filesystem_cache", - "enable_filesystem_cache_on_write_operations", - "compile_expressions", - "compile_aggregate_expressions", - "compile_sort_description", - "merge_tree_coarse_index_granularity", - "optimize_distinct_in_order", - "max_bytes_before_remerge_sort", - "min_compress_block_size", - "max_compress_block_size", - "merge_tree_compact_parts_min_granules_to_multibuffer_read", - "optimize_sorting_by_input_stream_properties", - "http_response_buffer_size", - "http_wait_end_of_query", - "enable_memory_bound_merging_of_aggregation_results", - "min_count_to_compile_expression", - "min_count_to_compile_aggregate_expression", - "min_count_to_compile_sort_description", - "session_timezone", - "use_page_cache_for_disks_without_file_cache", - "use_page_cache_for_local_disks", - "use_page_cache_for_object_storage", - "page_cache_inject_eviction", - "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", - "prefer_external_sort_block_bytes", - "cross_join_min_rows_to_compress", - "cross_join_min_bytes_to_compress", - "min_external_table_block_size_bytes", - "max_parsing_threads", - "optimize_functions_to_subcolumns", - "parallel_replicas_local_plan", - "query_plan_join_swap_table", - "enable_vertical_final", - "optimize_extract_common_expressions", - "optimize_syntax_fuse_functions", - "use_async_executor_for_materialized_views", - "use_query_condition_cache", - "secondary_indices_enable_bulk_filtering", - "use_skip_indexes_if_final", - "use_skip_indexes_on_data_read", - "optimize_rewrite_like_perfect_affix", - "input_format_parquet_use_native_reader_v3", - "enable_lazy_columns_replication", - "allow_special_serialization_kinds_in_output_formats", - "short_circuit_function_evaluation_for_nulls_threshold", - "automatic_parallel_replicas_mode", - "temporary_files_buffer_size", - "query_plan_optimize_join_order_algorithm", - "max_bytes_before_external_sort", - "max_bytes_before_external_group_by", - "max_bytes_ratio_before_external_sort", - "max_bytes_ratio_before_external_group_by", - "allow_repeated_settings", - "use_skip_indexes_if_final_exact_mode", - "ratio_of_defaults_for_sparse_serialization", - "prefer_fetch_merged_part_size_threshold", - "vertical_merge_algorithm_min_rows_to_activate", - "vertical_merge_algorithm_min_columns_to_activate", - "allow_vertical_merges_from_compact_to_wide_parts", - "min_merge_bytes_to_use_direct_io", - "index_granularity_bytes", - "merge_max_block_size", - "index_granularity", - "min_bytes_for_wide_part", - "compress_marks", - "compress_primary_key", - "marks_compress_block_size", - "primary_key_compress_block_size", - "replace_long_file_name_to_hash", - "max_file_name_length", - "min_bytes_for_full_part_storage", - "compact_parts_max_bytes_to_buffer", - "compact_parts_max_granules_to_buffer", - "compact_parts_merge_max_bytes_to_prefetch_part", - "cache_populated_by_fetch", - "concurrent_part_removal_threshold", - "old_parts_lifetime", - "prewarm_mark_cache", - "use_const_adaptive_granularity", - "enable_index_granularity_compression", - "enable_block_number_column", - "enable_block_offset_column", - "use_primary_key_cache", - "prewarm_primary_key_cache", - "object_serialization_version", - "object_shared_data_serialization_version", - "object_shared_data_serialization_version_for_zero_level_parts", - "object_shared_data_buckets_for_compact_part", - "object_shared_data_buckets_for_wide_part", - "dynamic_serialization_version", - "auto_statistics_types", - "serialization_info_version", - "string_serialization_version", - "nullable_serialization_version", - "enable_shared_storage_snapshot_in_query", - "min_columns_to_activate_adaptive_write_buffer", - "reduce_blocking_parts_sleep_ms", - "shared_merge_tree_outdated_parts_group_size", - "shared_merge_tree_max_outdated_parts_to_process_at_once"); - return Collections.unmodifiableSet(settings); + return buf.toByteArray(); } } diff --git a/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/OutputFormat.java b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/OutputFormat.java new file mode 100644 index 000000000..597900f9f --- /dev/null +++ b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/OutputFormat.java @@ -0,0 +1,156 @@ +package com.clickhouse.client.cli; + +import java.util.Locale; + +/** + * How the shim writes a result set. The Java client reads every result in a binary format (the server prefers the + * {@code X-ClickHouse-Format} request header to a FORMAT clause), and the shim writes the values itself, so it + * supports only the {@code TabSeparated} family and {@code Null}. + */ +final class OutputFormat { + static final OutputFormat DEFAULT = new OutputFormat("TabSeparated", false, false, false, false, true); + + final String name; + /** A header line with the column names. */ + final boolean names; + /** A header line with the column types. */ + final boolean types; + /** Top-level strings and the header lines are not escaped. */ + final boolean raw; + /** The {@code Null} format: the values are read, but not written. */ + final boolean discard; + final boolean supported; + + private OutputFormat(String name, boolean names, boolean types, boolean raw, boolean discard, boolean supported) { + this.name = name; + this.names = names; + this.types = types; + this.raw = raw; + this.discard = discard; + this.supported = supported; + } + + /** Returns the output format of a statement: its top-level FORMAT clause, else TabSeparated. */ + static OutputFormat of(String sql) { + String name = findFormatName(sql); + if (name == null) { + return DEFAULT; + } + // Format names are case-insensitive. + switch (name.toLowerCase(Locale.ROOT)) { + case "tabseparated": + case "tsv": + return new OutputFormat(name, false, false, false, false, true); + case "tabseparatedwithnames": + case "tsvwithnames": + return new OutputFormat(name, true, false, false, false, true); + case "tabseparatedwithnamesandtypes": + case "tsvwithnamesandtypes": + return new OutputFormat(name, true, true, false, false, true); + case "tabseparatedraw": + case "tsvraw": + case "raw": + return new OutputFormat(name, false, false, true, false, true); + case "tabseparatedrawwithnames": + case "tsvrawwithnames": + case "rawwithnames": + return new OutputFormat(name, true, false, true, false, true); + case "tabseparatedrawwithnamesandtypes": + case "tsvrawwithnamesandtypes": + case "rawwithnamesandtypes": + return new OutputFormat(name, true, true, true, false, true); + case "null": + return new OutputFormat(name, false, false, false, true, true); + default: + return new OutputFormat(name, false, false, false, false, false); + } + } + + /** Returns the name of the top-level {@code FORMAT } clause of sql, or null. */ + static String findFormatName(String sql) { + int depth = 0; + int i = 0; + while (i < sql.length()) { + char c = sql.charAt(i); + if (c == '\'' || c == '"' || c == '`') { + i = SqlText.skipQuoted(sql, i); + } else if (SqlText.lineCommentAt(sql, i)) { + i = SqlText.skipLineComment(sql, i); + } else if (sql.startsWith("/*", i)) { + i = SqlText.skipBlockComment(sql, i); + } else if (c == '$') { + int e = SqlText.heredocEnd(sql, i); + i = e > 0 ? e : i + 1; + } else if (c == '(' || c == '[') { + depth++; + i++; + } else if (c == ')' || c == ']') { + depth--; + i++; + } else if (SqlText.isWordChar(c)) { + int j = i; + while (j < sql.length() && SqlText.isWordChar(sql.charAt(j))) { + j++; + } + if (depth == 0 && j - i == 6 && sql.regionMatches(true, i, "FORMAT", 0, 6) + && (i == 0 || sql.charAt(i - 1) != '.')) { + // `ORDER BY format DESC` ends the query too: a clause keyword after FORMAT shows an identifier + // named `format`. + int[] end = new int[1]; + String name = formatName(sql, j, end); + if (name != null && !SqlText.isClauseKeyword(name) && endsQuery(sql, end[0])) { + return name; + } + } + i = j; + } else { + i++; + } + } + return null; + } + + /** Reads the format name after the FORMAT keyword that ends at j; sets end[0] to the end of the name. */ + private static String formatName(String sql, int j, int[] end) { + int k = SqlText.skipWhitespaceAndComments(sql, j); + if (k == j || k >= sql.length()) { + return null; + } + if (sql.charAt(k) == '`' || sql.charAt(k) == '"') { + // A quoted format name: FORMAT `Null`. + int m = SqlText.skipQuoted(sql, k); + end[0] = m; + return SqlText.unquoteIdentifier(sql.substring(k, m)); + } + int m = k; + while (m < sql.length() && SqlText.isWordChar(sql.charAt(m))) { + m++; + } + if (m == k) { + return null; + } + end[0] = m; + return sql.substring(k, m); + } + + /** + * Tells if the text from i on can follow the FORMAT clause of a query: nothing, a semicolon, or a SETTINGS + * clause. Otherwise FORMAT is an identifier, as in {@code SELECT format FROM t}. + */ + private static boolean endsQuery(String sql, int i) { + int k = SqlText.skipWhitespaceAndComments(sql, i); + if (k >= sql.length() || sql.charAt(k) == ';') { + return true; + } + int m = k; + while (m < sql.length() && SqlText.isWordChar(sql.charAt(m))) { + m++; + } + return sql.substring(k, m).equalsIgnoreCase("SETTINGS"); + } + + @Override + public String toString() { + return name; + } +} diff --git a/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/Runner.java b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/Runner.java new file mode 100644 index 000000000..05e7cd535 --- /dev/null +++ b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/Runner.java @@ -0,0 +1,321 @@ +package com.clickhouse.client.cli; + +import java.io.IOException; +import java.io.OutputStream; +import java.util.ArrayList; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +/** + * Runs the statements of one shim invocation on one session, as {@code clickhouse-client} does. + * + *

Session state ({@code SET}, {@code USE}, temporary tables) must survive from one statement to the next. Both + * backends use HTTP with one {@code session_id}; the server keeps the session after an error. + * + *

The shim sends nothing that {@code clickhouse-client} does not send, because some tests read their own queries + * from {@code system.query_log}. + */ +final class Runner { + + private final Backend backend; + private final OutputStream out; + private final InvocationLog log; + private final Map params; + + /** The current database of the session. */ + private String database; + /** + * The command-line settings that go with each query, as clickhouse-client sends them. A SET of the same + * setting in the test removes it from here, because the session then holds the value. + */ + private final Map settings; + /** The value of the last {@code SET dialect}. */ + private String dialect; + /** The session value of {@code ignore_format_null_for_explain} (default on). */ + private boolean ignoreFormatNullForExplain = true; + /** The output of the current statement, until the runner knows whether it echoes the statement first. */ + private final TsvOutput result = new TsvOutput(); + + Runner(Backend backend, CliOptions opts, Map settings, OutputStream out, InvocationLog log) { + this.backend = backend; + this.out = out; + this.log = log; + this.params = opts.params; + this.database = opts.database; + this.settings = settings; + } + + /** Runs the statements in order. Stops at the first statement whose result does not match its hint. */ + void run(List statements) throws Exception { + for (Statement st : statements) { + runOne(st); + } + } + + private void runOne(Statement st) throws Exception { + if (st.hint.parseError != null) { + echo(st); + out.flush(); + throw new Errors.HintException(st.hint.parseError, 0); + } + log.add("query", st.sql); + result.reset(); + Exception err = null; + try { + execute(st.sql); + } catch (Exception e) { + err = e; + } + Integer code = Errors.serverCode(err); + // clickhouse-client parses a statement before it echoes it, so it does not echo a statement with a syntax + // error. + if (code == null || code != Errors.SYNTAX_ERROR) { + echo(st); + } + result.writeTo(out); + out.flush(); + + if (st.hint.expectsError() && err == null) { + throw new Errors.HintException("expected " + st.hint.label() + ", but the query succeeded (query: " + + st.full + ")", 0); + } + if (st.hint.expectsError() && code != null) { + if (!st.hint.matches(code)) { + throw new Errors.HintException("expected " + st.hint.label() + ", but got " + + Errors.formatServerError(err, code) + " (query: " + st.full + ")", code); + } + log.add("expected_error_matched", st.hint.label()); + return; + } + if (err != null) { + throw err; + } + afterSuccess(st.sql); + } + + /** Writes the statement for the {@code echo} test hints. */ + private void echo(Statement st) throws IOException { + if (st.echo) { + out.write((st.full + "\n").getBytes(java.nio.charset.StandardCharsets.UTF_8)); + } + } + + private void execute(String sql) throws Exception { + boolean other = otherDialect(sql); + String query = sql; + if (other) { + // Over HTTP the server parses the request body as one query, and the parsers of other dialects do not + // accept a trailing semicolon. + query = StatementSplitter.trimRight(sql); + if (query.endsWith(";")) { + query = query.substring(0, query.length() - 1); + } + } + try (Backend.Result rs = backend.execute(query, settings, database)) { + if (rs != null) { + writeRows(rs, sql, other); + } + } + } + + private void writeRows(Backend.Result rs, String sql, boolean other) throws Exception { + byte[] raw = rs.rawText(); + if (raw != null) { + result.write(raw); + return; + } + // The FORMAT clause is SQL; other dialects can use the word differently (the `format` pipe of LogsQL). + OutputFormat format = other ? OutputFormat.DEFAULT : OutputFormat.of(sql); + if (!format.supported) { + throw new ShimException("output format " + format.name + " is not supported: the Java client reads" + + " results in a binary format, and the shim writes them only as TabSeparated"); + } + boolean discard = format.discard; + if (discard && ignoreFormatNullForExplain && "EXPLAIN".equals(SqlText.leadingKeyword(sql))) { + // With ignore_format_null_for_explain (on by default), the server ignores `FORMAT Null` for EXPLAIN + // and clickhouse-client prints the plan. + discard = false; + } + List names = rs.names(); + List types = rs.types(); + List renderers = new ArrayList<>(types.size()); + for (String t : types) { + renderers.add(new TsvRenderer(t)); + } + if (!discard && format.names) { + writeHeader(names, format.raw); + } + if (!discard && format.types) { + writeHeader(types, format.raw); + } + while (rs.next()) { + for (int i = 0; i < renderers.size(); i++) { + Object v = rs.get(i); + if (discard) { + continue; + } + if (i > 0) { + result.write('\t'); + } + try { + renderers.get(i).render(result, v, format.raw); + } catch (RuntimeException e) { + throw new ShimException("column " + names.get(i) + ": " + e.getMessage(), e); + } + } + if (!discard) { + result.write('\n'); + } + } + } + + /** + * Writes a header line (names or types). A Raw format writes it without escapes, as its rows: the server does + * the same (TabSeparatedRowOutputFormat::writeLine). + */ + private void writeHeader(List values, boolean raw) { + for (int i = 0; i < values.size(); i++) { + if (i > 0) { + result.write('\t'); + } + if (raw) { + result.write(values.get(i)); + } else { + TsvRenderer.writeEscaped(result, values.get(i), false); + } + } + result.write('\n'); + } + + /** + * Tells if the session uses another query language than SQL ({@code SET dialect = 'kusto'}, 'prql', ...). + */ + private boolean otherDialect(String sql) { + return dialect != null && !dialect.equalsIgnoreCase("clickhouse") + && !"SET".equals(SqlText.leadingKeyword(sql)); + } + + /** Updates the session state after a USE or SET statement. */ + private void afterSuccess(String sql) throws Exception { + String keyword = SqlText.leadingKeyword(sql); + if (keyword.equals("USE")) { + String db = parseUseDatabase(sql, params); + if (db == null) { + throw new ShimException("cannot read the database name of \"" + sql + "\""); + } + database = db; + } else if (keyword.equals("SET")) { + boolean changed = false; + for (Map.Entry e : parseSetAssignments(sql).entrySet()) { + if (settings.remove(e.getKey()) != null) { + changed = true; + } + if (e.getKey().equals("dialect")) { + dialect = e.getValue(); + } else if (e.getKey().equals("ignore_format_null_for_explain")) { + ignoreFormatNullForExplain = !isFalse(e.getValue()); + } + } + if (changed) { + backend.settingsChanged(settings); + } + } + } + + /** Tells if the value of a Bool setting in a SET statement is false ({@code 0} or {@code false}). */ + static boolean isFalse(String value) { + String v = value.trim(); + return v.equals("0") || v.equalsIgnoreCase("false"); + } + + /** + * Returns the database name of a USE statement, or null. A {@code {name:Identifier}} query parameter is + * replaced by its value. + */ + static String parseUseDatabase(String sql, Map params) { + int i = SqlText.skipWhitespaceAndComments(sql, 0) + "USE".length(); + String rest = sql.substring(Math.min(i, sql.length())).trim(); + if (rest.endsWith(";")) { + rest = rest.substring(0, rest.length() - 1).trim(); + } + int sp = rest.indexOf(' '); + if (sp > 0 && rest.substring(0, sp).equalsIgnoreCase("DATABASE")) { + rest = rest.substring(sp + 1).trim(); + } + if (rest.isEmpty()) { + return null; + } + char c = rest.charAt(0); + if (c == '`' || c == '"') { + return SqlText.unquoteIdentifier(rest); + } + if (c == '{') { + String inner = rest.replaceAll("^\\{|}$", ""); + int colon = inner.indexOf(':'); + if (colon < 0) { + return null; + } + return params.get(inner.substring(0, colon).trim()); + } + for (int j = 0; j < rest.length(); j++) { + if (!SqlText.isWordChar(rest.charAt(j))) { + return null; + } + } + return rest; + } + + /** + * Returns the settings that a {@code SET a = 1, b = 'x'} statement assigns, with their values (string values + * without quotes). + */ + static Map parseSetAssignments(String sql) { + int i = SqlText.skipWhitespaceAndComments(sql, 0) + "SET".length(); + String body = sql.substring(Math.min(i, sql.length())).trim(); + if (body.endsWith(";")) { + body = body.substring(0, body.length() - 1); + } + Map out = new LinkedHashMap<>(); + int depth = 0; + int start = 0; + for (int j = 0; j < body.length(); j++) { + char c = body.charAt(j); + if (c == '\'' || c == '"' || c == '`') { + j = SqlText.skipQuoted(body, j) - 1; + } else if (c == '(' || c == '[') { + depth++; + } else if (c == ')' || c == ']') { + depth--; + } else if (c == ',' && depth == 0) { + addAssignment(out, body.substring(start, j)); + start = j + 1; + } + } + addAssignment(out, body.substring(start)); + return out; + } + + private static void addAssignment(Map out, String part) { + int eq = part.indexOf('='); + if (eq < 0) { + return; + } + String value = part.substring(eq + 1).trim(); + if (value.length() >= 2 && value.startsWith("'") && value.endsWith("'")) { + value = value.substring(1, value.length() - 1); + } + out.put(part.substring(0, eq).trim(), value); + } + + /** An error of the shim itself, not of the client or the server. */ + static final class ShimException extends Exception { + ShimException(String message) { + super(message); + } + + ShimException(String message, Throwable cause) { + super(message, cause); + } + } +} diff --git a/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/SqlText.java b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/SqlText.java new file mode 100644 index 000000000..6bec706ea --- /dev/null +++ b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/SqlText.java @@ -0,0 +1,221 @@ +package com.clickhouse.client.cli; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashSet; +import java.util.List; +import java.util.Locale; +import java.util.Set; + +/** + * Lexical helpers for SQL text: quotes, comments, heredocs and keywords, as the ClickHouse lexer reads them. All + * the syntax characters are ASCII, so the helpers work on {@code char} positions. + */ +final class SqlText { + + private SqlText() { + } + + /** + * SQL words that can follow a column or an alias named {@code format}, as in + * {@code INSERT INTO t SELECT format FROM s}. No input or output format has such a name, so after FORMAT they + * show an identifier, not the FORMAT clause. + */ + private static final Set CLAUSE_KEYWORDS = new HashSet<>(Arrays.asList( + "FROM", "WHERE", "PREWHERE", "AS", "AND", "OR", "NOT", "IN", "IS", "LIKE", "ILIKE", "BETWEEN", + "GROUP", "ORDER", "LIMIT", "OFFSET", "HAVING", "QUALIFY", "WINDOW", "UNION", "EXCEPT", "INTERSECT", + "JOIN", "INNER", "LEFT", "RIGHT", "FULL", "CROSS", "ARRAY", "ON", "USING", "SETTINGS", "INTO", + "ASC", "DESC", "NULLS", "COLLATE", "WITH", "THEN", "ELSE", "END", "WHEN", "OVER", + "GLOBAL", "DIV", "MOD", "REGEXP", "FINAL", "SAMPLE", "FILL", "TIES", "BY")); + + static boolean isClauseKeyword(String word) { + return CLAUSE_KEYWORDS.contains(word.toUpperCase(Locale.ROOT)); + } + + static boolean isWordChar(char c) { + return c == '_' || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9'); + } + + static boolean isSpace(char c) { + return c == ' ' || c == '\t' || c == '\n' || c == '\r' || c == '\f' || c == 0x0B; + } + + /** Tells if a line comment starts at i: {@code --}, {@code #!} or {@code # }. */ + static boolean lineCommentAt(String text, int i) { + return text.startsWith("--", i) || text.startsWith("#!", i) || text.startsWith("# ", i); + } + + /** Returns the end of the quoted text that starts at i (after the closing quote). */ + static int skipQuoted(String text, int i) { + char q = text.charAt(i); + for (int j = i + 1; j < text.length(); j++) { + char c = text.charAt(j); + if (c == '\\') { + j++; + } else if (c == q) { + // A doubled quote is an escaped quote. + if (j + 1 < text.length() && text.charAt(j + 1) == q) { + j++; + continue; + } + return j + 1; + } + } + return text.length(); + } + + /** Returns the position of the newline that ends the line comment at i, or the end of the text. */ + static int skipLineComment(String text, int i) { + int nl = text.indexOf('\n', i); + return nl >= 0 ? nl : text.length(); + } + + /** Returns the end of the block comment at i. Block comments nest in ClickHouse. */ + static int skipBlockComment(String text, int i) { + int depth = 0; + int j = i; + while (j < text.length() - 1) { + if (text.charAt(j) == '/' && text.charAt(j + 1) == '*') { + depth++; + j += 2; + } else if (text.charAt(j) == '*' && text.charAt(j + 1) == '/') { + depth--; + j += 2; + if (depth == 0) { + return j; + } + } else { + j++; + } + } + return text.length(); + } + + /** + * Returns the end of the {@code $tag$ ... $tag$} heredoc that starts at i, or 0 when the {@code $} at i does + * not start one. + */ + static int heredocEnd(String text, int i) { + int tagEnd = text.indexOf('$', i + 1); + if (tagEnd < 0) { + return 0; + } + for (int k = i + 1; k < tagEnd; k++) { + if (!isWordChar(text.charAt(k))) { + return 0; + } + } + String delim = text.substring(i, tagEnd + 1); + int end = text.indexOf(delim, tagEnd + 1); + if (end < 0) { + return 0; + } + return end + delim.length(); + } + + static int skipWhitespace(String text, int i) { + while (i < text.length() && isSpace(text.charAt(i))) { + i++; + } + return i; + } + + static int skipWhitespaceAndComments(String text, int i) { + while (i < text.length()) { + if (isSpace(text.charAt(i))) { + i++; + } else if (lineCommentAt(text, i)) { + i = skipLineComment(text, i); + } else if (text.startsWith("/*", i)) { + i = skipBlockComment(text, i); + } else { + return i; + } + } + return i; + } + + static boolean hasSignificantToken(String text, int from) { + return skipWhitespaceAndComments(text, from) < text.length(); + } + + /** + * Returns the first word of a statement in upper case, after comments, whitespace and opening parentheses. + */ + static String leadingKeyword(String sql) { + int i = skipWhitespaceAndComments(sql, 0); + while (i < sql.length() && (sql.charAt(i) == '(' || isSpace(sql.charAt(i)))) { + i = skipWhitespaceAndComments(sql, i + 1); + } + int j = i; + while (j < sql.length() && isWordChar(sql.charAt(j))) { + j++; + } + return sql.substring(i, j).toUpperCase(Locale.ROOT); + } + + /** Returns the words of sql outside quotes, heredocs, comments and parentheses. */ + static List topLevelWords(String sql) { + List words = new ArrayList<>(); + int depth = 0; + int i = 0; + while (i < sql.length()) { + char c = sql.charAt(i); + if (c == '\'' || c == '"' || c == '`') { + i = skipQuoted(sql, i); + } else if (c == '$') { + int end = heredocEnd(sql, i); + i = end > 0 ? end : i + 1; + } else if (lineCommentAt(sql, i)) { + i = skipLineComment(sql, i); + } else if (sql.startsWith("/*", i)) { + i = skipBlockComment(sql, i); + } else if (c == '(' || c == '[') { + depth++; + i++; + } else if (c == ')' || c == ']') { + depth--; + i++; + } else if (isWordChar(c)) { + int j = i; + while (j < sql.length() && isWordChar(sql.charAt(j))) { + j++; + } + if (depth == 0) { + words.add(sql.substring(i, j)); + } + i = j; + } else { + i++; + } + } + return words; + } + + /** + * Removes the quotes of a quoted identifier ({@code `a b`} or {@code "a b"}); returns null when s is not one. + */ + static String unquoteIdentifier(String s) { + if (s.length() < 2) { + return null; + } + char q = s.charAt(0); + if (s.charAt(s.length() - 1) != q) { + return null; + } + StringBuilder sb = new StringBuilder(); + for (int i = 1; i < s.length() - 1; i++) { + char c = s.charAt(i); + if (c == '\\' && i + 1 < s.length() - 1) { + i++; + sb.append(s.charAt(i)); + } else if (c == q && i + 1 < s.length() - 1 && s.charAt(i + 1) == q) { + i++; + sb.append(q); + } else { + sb.append(c); + } + } + return sb.toString(); + } +} diff --git a/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/Statement.java b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/Statement.java new file mode 100644 index 000000000..0a86a32f6 --- /dev/null +++ b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/Statement.java @@ -0,0 +1,33 @@ +package com.clickhouse.client.cli; + +/** + * One query of a multi-query script, split the way {@code clickhouse-client} splits it (see + * {@code ClientBase::executeMultiQuery}). + */ +final class Statement { + /** + * The text to send to the server: from the first non-whitespace character (leading comments included) to the + * end of the query, with the semicolon. + */ + final String sql; + /** + * {@link #sql} plus the semicolon and the same-line trailing comment. The client reads the test hints from this + * text and prints it for {@code echo}. + */ + final String full; + final TestHint hint; + /** Tells if this statement is printed before it runs ({@code echo}, {@code echoOn}). */ + final boolean echo; + + Statement(String sql, String full, TestHint hint, boolean echo) { + this.sql = sql; + this.full = full; + this.hint = hint; + this.echo = echo; + } + + @Override + public String toString() { + return sql; + } +} diff --git a/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/StatementSplitter.java b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/StatementSplitter.java new file mode 100644 index 000000000..abb6840ee --- /dev/null +++ b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/StatementSplitter.java @@ -0,0 +1,231 @@ +package com.clickhouse.client.cli; + +import java.util.ArrayList; +import java.util.List; +import java.util.Locale; + +/** + * Splits a script into statements as {@code clickhouse-client} does ({@code ClientBase::executeMultiQuery}): + *

    + *
  • The {@code -- Tags:} header (the first line and the {@code --} lines after it) is not part of any + * statement.
  • + *
  • A statement ends at a top-level {@code ;}. A comment on the same line after the {@code ;} belongs to that + * statement; this is where test hints are.
  • + *
  • The inline data of {@code INSERT ... FORMAT } (other than {@code Values}) ends at an empty line, not + * at {@code ;}.
  • + *
  • Comment-only text after the last statement is not a statement.
  • + *
+ */ +final class StatementSplitter { + + private StatementSplitter() { + } + + static List split(String text) { + List out = new ArrayList<>(); + int pos = testTagsLength(text); + boolean echo = false; + while (true) { + pos = SqlText.skipWhitespace(text, pos); + if (pos >= text.length() || !SqlText.hasSignificantToken(text, pos)) { + return out; + } + int begin = pos; + int end = scanStatementEnd(text, pos); + int sqlEnd = end; + // Consume the semicolons after the statement. + pos = end; + while (pos < text.length() && text.charAt(pos) == ';') { + pos++; + int next = SqlText.skipWhitespaceAndComments(text, pos); + if (next < text.length() && text.charAt(next) == ';') { + pos = next; + } + } + // Add the same-line trailing comment when the next statement starts after the end of this line. + int newline = text.indexOf('\n', pos); + if (newline < 0) { + newline = text.length(); + } + if (newline <= SqlText.skipWhitespaceAndComments(text, pos)) { + pos = newline; + } + // clickhouse-client sends the statement with its semicolon. Tests that read system.query_log see it. + String sql = trimRight(text.substring(begin, sqlEnd)); + if (sqlEnd < text.length() && text.charAt(sqlEnd) == ';') { + sql = text.substring(begin, sqlEnd + 1); + } + String full = trimRight(text.substring(begin, pos)); + if (sqlEnd == text.length()) { + // The last statement has no semicolon: clickhouse-client echoes all the rest of the text, with its + // trailing newlines. + full = text.substring(begin); + } + TestHint hint = TestHint.parse(full); + if (hint.echo != null) { + echo = hint.echo; + } + out.add(new Statement(sql, full, hint, echo)); + } + } + + static String trimRight(String s) { + int end = s.length(); + while (end > 0) { + char c = s.charAt(end - 1); + if (c != ' ' && c != '\t' && c != '\r' && c != '\n') { + break; + } + end--; + } + return s.substring(0, end); + } + + /** + * Mirrors {@code getTestTagsLength}: the length of the leading {@code -- Tags: ...} line and the {@code --} + * comment lines right after it. + */ + static int testTagsLength(String text) { + int pos = 0; + boolean first = true; + while (true) { + int lineStart = pos; + while (pos < text.length() && (text.charAt(pos) == ' ' || text.charAt(pos) == '\t')) { + pos++; + } + if (!text.startsWith("--", pos)) { + return lineStart; + } + pos += 2; + if (first) { + while (pos < text.length() && (text.charAt(pos) == ' ' || text.charAt(pos) == '\t')) { + pos++; + } + if (!text.startsWith("Tags:", pos)) { + return 0; + } + pos += "Tags:".length(); + first = false; + } + int eol = -1; + for (int k = pos; k < text.length(); k++) { + char c = text.charAt(k); + if (c == '\r' || c == '\n') { + eol = k; + break; + } + } + if (eol < 0) { + return text.length(); + } + int eolLen = 1; + if (eol + 1 < text.length() && (text.charAt(eol + 1) == '\r' || text.charAt(eol + 1) == '\n') + && text.charAt(eol + 1) != text.charAt(eol)) { + eolLen = 2; + } + pos = eol + eolLen; + } + } + + /** Returns the offset of the {@code ;} that ends the statement at start, or the length of the text. */ + static int scanStatementEnd(String text, int start) { + int parens = 0; + int i = start; + while (i < text.length()) { + char c = text.charAt(i); + if (c == '\'' || c == '"' || c == '`') { + i = SqlText.skipQuoted(text, i); + } else if (c == '-' && text.startsWith("--", i)) { + i = SqlText.skipLineComment(text, i); + } else if (c == '#' && (text.startsWith("#!", i) || text.startsWith("# ", i))) { + i = SqlText.skipLineComment(text, i); + } else if (c == '/' && text.startsWith("/*", i)) { + i = SqlText.skipBlockComment(text, i); + } else if (c == '$') { + int end = SqlText.heredocEnd(text, i); + i = end > 0 ? end : i + 1; + } else if (c == '(' || c == '[') { + parens++; + i++; + } else if (c == ')' || c == ']') { + parens--; + i++; + } else if (c == ';' && parens <= 0) { + return i; + } else if (SqlText.isWordChar(c)) { + int j = i; + while (j < text.length() && SqlText.isWordChar(text.charAt(j))) { + j++; + } + if (parens <= 0 && text.regionMatches(true, i, "FORMAT", 0, 6) && j - i == 6) { + int dataStart = insertDataStart(text, start, j); + if (dataStart >= 0) { + // The inline data ends at an empty line. + int k = text.indexOf("\n\n", dataStart); + return k >= 0 ? k : text.length(); + } + } + i = j; + } else { + i++; + } + } + return text.length(); + } + + /** + * Tells whether the {@code FORMAT} keyword that ends at formatEnd starts the inline data of an INSERT statement + * that begins at start. Returns the offset of the data after the format name, or -1. The {@code Values} format + * is excluded: its data ends at {@code ;}, like a query. + */ + static int insertDataStart(String text, int start, int formatEnd) { + if (!"INSERT".equals(SqlText.leadingKeyword(text.substring(start, formatEnd)))) { + return -1; + } + int i = formatEnd; + if (i >= text.length() || !isBlank(text.charAt(i))) { + return -1; + } + while (i < text.length() && isBlank(text.charAt(i))) { + i++; + } + int j = i; + while (j < text.length() && SqlText.isWordChar(text.charAt(j))) { + j++; + } + String name = text.substring(i, j); + if (j == i || name.toUpperCase(Locale.ROOT).equals("VALUES") || SqlText.isClauseKeyword(name)) { + return -1; + } + // After a SELECT, the FORMAT clause comes at the end of the SELECT, so after its top-level FROM: + // `INSERT INTO t SELECT * FROM input('x UInt8') FORMAT TSV`. Before that FROM, `format` is in the select + // list (`SELECT format x FROM s`, `SELECT format DIV 2 FROM s`). + if (!formatAfterSelectFrom(text.substring(start, formatEnd - "FORMAT".length()))) { + return -1; + } + return j; + } + + private static boolean isBlank(char c) { + return c == ' ' || c == '\t' || c == '\n' || c == '\r'; + } + + /** + * Tells if a FORMAT that follows head can be the FORMAT clause of an INSERT: head has no top-level SELECT, or a + * top-level FROM follows its last top-level SELECT. + */ + static boolean formatAfterSelectFrom(String head) { + boolean afterSelect = false; + boolean sawFrom = false; + for (String w : SqlText.topLevelWords(head)) { + String u = w.toUpperCase(Locale.ROOT); + if (u.equals("SELECT")) { + afterSelect = true; + sawFrom = false; + } else if (u.equals("FROM")) { + sawFrom = true; + } + } + return !afterSelect || sawFrom; + } +} diff --git a/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/TestHint.java b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/TestHint.java new file mode 100644 index 000000000..6efcdc099 --- /dev/null +++ b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/TestHint.java @@ -0,0 +1,177 @@ +package com.clickhouse.client.cli; + +import java.util.ArrayList; +import java.util.List; +import java.util.stream.Collectors; + +/** + * The test hints of one statement, as {@code clickhouse-client} parses them ({@code src/Client/TestHint.cpp}): + * + *
+ * SELECT throwIf(1); -- { serverError FUNCTION_THROW_IF_VALUE_IS_NON_ZERO }
+ * SELECT 1 / 0;      -- { serverError 153, 6 }
+ * -- { echoOn }
+ * 
+ * + * An error hint counts only when it is not in a leading comment. An {@code echo} hint counts in any comment. + */ +final class TestHint { + final List serverErrors = new ArrayList<>(); + final List clientErrors = new ArrayList<>(); + /** Set by {@code echo}, {@code echoOn} (true) or {@code echoOff} (false); null when there is no echo hint. */ + Boolean echo; + /** Set when a hint is malformed or names an unknown error. */ + String parseError; + + boolean expectsError() { + return !serverErrors.isEmpty() || !clientErrors.isEmpty(); + } + + /** + * Tells if the error code satisfies the hint. Through the Java client the server finds every error, including + * syntax errors that {@code clickhouse-client} finds locally, so a server error can satisfy a + * {@code clientError} hint too. + */ + boolean matches(int code) { + return serverErrors.contains(code) || clientErrors.contains(code); + } + + String label() { + if (!serverErrors.isEmpty() && !clientErrors.isEmpty()) { + return "error " + codes(serverErrors); + } + if (!serverErrors.isEmpty()) { + return "serverError " + codes(serverErrors); + } + return "clientError " + codes(clientErrors); + } + + private static String codes(List list) { + return list.stream().map(c -> { + String name = ErrorCodes.name(c); + return name != null ? name : String.valueOf(c); + }).collect(Collectors.joining(", ")); + } + + static TestHint parse(String full) { + TestHint h = new TestHint(); + boolean leading = true; + int i = 0; + while (i < full.length()) { + char c = full.charAt(i); + int end; + if (SqlText.isSpace(c)) { + i++; + continue; + } else if (SqlText.lineCommentAt(full, i)) { + end = SqlText.skipLineComment(full, i); + } else if (full.startsWith("/*", i)) { + end = SqlText.skipBlockComment(full, i); + } else if (c == '\'' || c == '"' || c == '`') { + leading = false; + i = SqlText.skipQuoted(full, i); + continue; + } else if (c == '$') { + leading = false; + int e = SqlText.heredocEnd(full, i); + i = e > 0 ? e : i + 1; + continue; + } else { + leading = false; + i++; + continue; + } + String comment = full.substring(i, end); + int open = comment.indexOf('{'); + if (open >= 0) { + int close = comment.indexOf('}', open); + if (close >= 0) { + h.parseBody(comment.substring(open + 1, close), leading); + } + } + i = end; + } + return h; + } + + private void parseBody(String body, boolean leading) { + List tokens = tokenize(body); + for (int i = 0; i < tokens.size(); i++) { + String tok = tokens.get(i); + switch (tok) { + case "echo": + case "echoOn": + echo = Boolean.TRUE; + break; + case "echoOff": + echo = Boolean.FALSE; + break; + case "retry": + // `retry N until|while serverError X` is used by a few tests that wait for a background + // process. It is not supported. + parseError = "the \"retry\" test hint is not supported"; + return; + case "serverError": + case "clientError": + case "error": { + if (leading) { + continue; + } + List codes = new ArrayList<>(); + for (String t : tokens.subList(i + 1, tokens.size())) { + if (t.equals(",")) { + continue; + } + Integer code = parseCode(t); + if (code == null) { + parseError = "unknown error name \"" + t + "\" in test hint"; + return; + } + codes.add(code); + } + if (tok.equals("serverError")) { + serverErrors.addAll(codes); + } else if (tok.equals("clientError")) { + clientErrors.addAll(codes); + } else { + serverErrors.addAll(codes); + clientErrors.addAll(codes); + } + return; + } + default: + break; + } + } + } + + private static Integer parseCode(String t) { + try { + return Integer.valueOf(t); + } catch (NumberFormatException e) { + return ErrorCodes.code(t); + } + } + + private static List tokenize(String body) { + List out = new ArrayList<>(); + int i = 0; + while (i < body.length()) { + char c = body.charAt(i); + if (SqlText.isSpace(c)) { + i++; + } else if (c == ',') { + out.add(","); + i++; + } else { + int j = i; + while (j < body.length() && !SqlText.isSpace(body.charAt(j)) && body.charAt(j) != ',') { + j++; + } + out.add(body.substring(i, j)); + i = j; + } + } + return out; + } +} diff --git a/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/TsvOutput.java b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/TsvOutput.java new file mode 100644 index 000000000..a47da991a --- /dev/null +++ b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/TsvOutput.java @@ -0,0 +1,75 @@ +package com.clickhouse.client.cli; + +import java.io.IOException; +import java.io.OutputStream; +import java.nio.charset.StandardCharsets; +import java.util.Arrays; + +/** A growable byte buffer for the text that the shim writes to stdout. Text is written as UTF-8. */ +final class TsvOutput { + private byte[] buf = new byte[8192]; + private int len; + + int size() { + return len; + } + + void reset() { + len = 0; + } + + /** Removes the bytes after position size, for a value that failed to render. */ + void truncate(int size) { + len = size; + } + + TsvOutput write(int b) { + ensure(1); + buf[len++] = (byte) b; + return this; + } + + TsvOutput write(byte[] b) { + ensure(b.length); + System.arraycopy(b, 0, buf, len, b.length); + len += b.length; + return this; + } + + TsvOutput write(String s) { + boolean ascii = true; + for (int i = 0; i < s.length(); i++) { + if (s.charAt(i) >= 0x80) { + ascii = false; + break; + } + } + if (!ascii) { + return write(s.getBytes(StandardCharsets.UTF_8)); + } + ensure(s.length()); + for (int i = 0; i < s.length(); i++) { + buf[len++] = (byte) s.charAt(i); + } + return this; + } + + void writeTo(OutputStream out) throws IOException { + out.write(buf, 0, len); + } + + byte[] toByteArray() { + return Arrays.copyOf(buf, len); + } + + @Override + public String toString() { + return new String(buf, 0, len, StandardCharsets.UTF_8); + } + + private void ensure(int n) { + if (len + n > buf.length) { + buf = Arrays.copyOf(buf, Math.max(buf.length * 2, len + n)); + } + } +} diff --git a/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/TsvRenderer.java b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/TsvRenderer.java new file mode 100644 index 000000000..4d7db386f --- /dev/null +++ b/tests/clickhouse-client/src/main/java/com/clickhouse/client/cli/TsvRenderer.java @@ -0,0 +1,764 @@ +package com.clickhouse.client.cli; + +import com.clickhouse.client.api.data_formats.internal.BinaryStreamReader; +import com.clickhouse.client.api.data_formats.internal.StringValue; + +import java.math.BigDecimal; +import java.math.BigInteger; +import java.net.Inet4Address; +import java.net.Inet6Address; +import java.net.InetAddress; +import java.nio.charset.StandardCharsets; +import java.sql.SQLException; +import java.sql.Timestamp; +import java.time.Duration; +import java.time.LocalDate; +import java.time.LocalDateTime; +import java.time.LocalTime; +import java.time.OffsetDateTime; +import java.time.Period; +import java.time.ZoneOffset; +import java.time.ZonedDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.UUID; + +/** + * Writes the Java values that the client returns as the text that the server writes for the {@code TabSeparated} + * format. The upstream {@code .reference} files hold the server's text, so a test passes only when the client + * decoded every value correctly. + * + *

The rendering is type-directed: the column type from the result metadata selects the text form, because the + * Java value alone is not sufficient (for example, the precision of a {@code DateTime64} is in the type only). + * The renderer accepts the Java types of both backends (client-v2 {@code readValue} and jdbc-v2 + * {@code getObject}); any other Java type for a column type is an error, so a test cannot pass by accident. + * + *

ClickHouse uses two text forms: + *

    + *
  • top level ({@code serializeTextEscaped}): strings are escaped, not quoted, and NULL is {@code \N};
  • + *
  • nested in {@code Array}, {@code Tuple} and {@code Map} ({@code serializeTextQuoted}): strings are quoted, + * and NULL is {@code NULL}.
  • + *
+ */ +final class TsvRenderer { + + /** A column type that the renderer does not support. The statement fails. */ + static final class UnsupportedTypeException extends RuntimeException { + UnsupportedTypeException(String type) { + super("clickhouse-client-cli: no TabSeparated renderer for type " + type); + } + } + + /** A Java value that does not fit the column type. The statement fails. */ + static final class ValueMismatchException extends RuntimeException { + ValueMismatchException(ChType type, Object value) { + super("clickhouse-client-cli: unexpected Java value " + describe(value) + " for type " + type); + } + + private static String describe(Object value) { + String text = String.valueOf(value); + if (text.length() > 80) { + text = text.substring(0, 80) + "..."; + } + return value.getClass().getName() + " (" + text + ")"; + } + } + + private final ChType type; + + TsvRenderer(String typeName) { + this.type = ChType.parse(typeName); + } + + /** + * Writes one top-level value. With raw (the {@code TSVRaw} formats), a top-level string is written without + * escapes. + */ + void render(TsvOutput out, Object value, boolean raw) { + if (raw && value != null && isStringType(type)) { + byte[] bytes = stringBytes(type, value); + if (bytes != null) { + out.write(bytes); + return; + } + } + renderValue(out, type, value, false); + } + + static void renderValue(TsvOutput out, ChType t, Object v, boolean nested) { + switch (t.base) { + case "Nullable": + case "LowCardinality": { + ChType inner = t.typeArg(0); + if (inner == null) { + throw new UnsupportedTypeException(t.toString()); + } + renderValue(out, inner, v, nested); + return; + } + case "SimpleAggregateFunction": { + ChType inner = t.typeArg(t.args.size() - 1); + if (inner == null) { + throw new UnsupportedTypeException(t.toString()); + } + renderValue(out, inner, v, nested); + return; + } + default: + break; + } + if (v == null) { + out.write(nested ? "NULL" : "\\N"); + return; + } + switch (t.base) { + case "Int8": + case "Int16": + case "Int32": + case "Int64": + case "Int128": + case "Int256": + case "UInt8": + case "UInt16": + case "UInt32": + case "UInt64": + case "UInt128": + case "UInt256": + if (v instanceof Byte || v instanceof Short || v instanceof Integer || v instanceof Long + || v instanceof BigInteger) { + out.write(v.toString()); + return; + } + throw new ValueMismatchException(t, v); + case "Float32": + case "BFloat16": + if (v instanceof Float) { + out.write(FloatFormat.formatFloat((Float) v)); + return; + } + throw new ValueMismatchException(t, v); + case "Float64": + if (v instanceof Double) { + out.write(FloatFormat.formatDouble((Double) v)); + return; + } + throw new ValueMismatchException(t, v); + case "Bool": + if (v instanceof Boolean) { + out.write(v.toString()); + return; + } + throw new ValueMismatchException(t, v); + case "String": + case "FixedString": + case "Enum8": + case "Enum16": + case "Enum": { + byte[] bytes = stringBytes(t, v); + if (bytes == null) { + throw new ValueMismatchException(t, v); + } + writeEscaped(out, bytes, nested); + return; + } + case "Decimal": + case "Decimal32": + case "Decimal64": + case "Decimal128": + case "Decimal256": + if (v instanceof BigDecimal) { + out.write(formatDecimal((BigDecimal) v)); + return; + } + throw new ValueMismatchException(t, v); + case "Date": + case "Date32": + quotedIf(out, formatDate(t, v), nested); + return; + case "DateTime": + case "DateTime32": + quotedIf(out, formatDateTime(t, v, 0), nested); + return; + case "DateTime64": { + int precision = precision(t, 0); + quotedIf(out, formatDateTime(t, v, precision), nested); + return; + } + case "Time": + quotedIf(out, formatTime(t, v, 0), nested); + return; + case "Time64": + quotedIf(out, formatTime(t, v, precision(t, 0)), nested); + return; + case "UUID": + if (v instanceof UUID) { + quotedIf(out, v.toString(), nested); + return; + } + throw new ValueMismatchException(t, v); + case "IPv4": + if (v instanceof Inet4Address) { + quotedIf(out, ((Inet4Address) v).getHostAddress(), nested); + return; + } + throw new ValueMismatchException(t, v); + case "IPv6": + if (v instanceof Inet6Address) { + quotedIf(out, formatIPv6(((Inet6Address) v).getAddress()), nested); + return; + } + if (v instanceof Inet4Address) { + // InetAddress.getByAddress gives an IPv4-mapped address (::ffff:a.b.c.d) as Inet4Address. + byte[] b = new byte[16]; + b[10] = (byte) 0xff; + b[11] = (byte) 0xff; + System.arraycopy(((InetAddress) v).getAddress(), 0, b, 12, 4); + quotedIf(out, formatIPv6(b), nested); + return; + } + throw new ValueMismatchException(t, v); + case "Nothing": + // A `Nothing` column has no values; a value here is a NULL. + out.write(nested ? "NULL" : "\\N"); + return; + case "Array": { + ChType inner = t.typeArg(0); + List items = sequence(v); + if (inner == null || items == null) { + throw new ValueMismatchException(t, v); + } + renderSequence(out, inner, items, '[', ']'); + return; + } + case "Nested": { + // Nested(a T, b U) (with flatten_nested = 0) is Array(Tuple(a T, b U)). + List items = sequence(v); + if (items == null) { + throw new ValueMismatchException(t, v); + } + renderSequence(out, new ChType("Tuple", t.args), items, '[', ']'); + return; + } + case "Tuple": + renderTuple(out, t, v); + return; + case "Map": + renderMap(out, t, v); + return; + case "Point": + renderPoint(out, t, v); + return; + case "Ring": + case "LineString": + case "MultiPoint": + renderGeo(out, t, v, ChType.of("Point")); + return; + case "Polygon": + case "MultiLineString": + renderGeo(out, t, v, ChType.of("Ring")); + return; + case "MultiPolygon": + renderGeo(out, t, v, ChType.of("Polygon")); + return; + case "Geometry": + renderGeometry(out, t, v); + return; + case "Variant": + renderVariant(out, t, v, nested); + return; + case "QBit": { + // QBit(T, dimension) is written as an array of its element type. + ChType inner = t.typeArg(0); + List items = sequence(v); + if (inner == null || items == null) { + throw new ValueMismatchException(t, v); + } + renderSequence(out, inner, items, '[', ']'); + return; + } + default: + if (t.base.startsWith("Interval")) { + out.write(formatInterval(t, v)); + return; + } + throw new UnsupportedTypeException(t.toString()); + } + } + + static boolean isStringType(ChType t) { + while ((t.base.equals("Nullable") || t.base.equals("LowCardinality")) && t.typeArg(0) != null) { + t = t.typeArg(0); + } + switch (t.base) { + case "String": + case "FixedString": + case "Enum8": + case "Enum16": + case "Enum": + return true; + default: + return false; + } + } + + /** Returns the bytes of a string-like value, or null when v is not one. */ + private static byte[] stringBytes(ChType t, Object v) { + if (v instanceof String) { + return ((String) v).getBytes(StandardCharsets.UTF_8); + } + if (v instanceof StringValue) { + return ((StringValue) v).toByteArray(); + } + if (v instanceof BinaryStreamReader.EnumValue && t.base.startsWith("Enum")) { + return ((BinaryStreamReader.EnumValue) v).getName().getBytes(StandardCharsets.UTF_8); + } + return null; + } + + /** + * Writes s with the escapes of ClickHouse's {@code writeAnyEscapedString} (with the single quote as the quote + * character), quoted when nested. + */ + static void writeEscaped(TsvOutput out, byte[] s, boolean nested) { + if (nested) { + out.write('\''); + } + for (byte b : s) { + switch (b) { + case '\\': + out.write('\\').write('\\'); + break; + case '\'': + out.write('\\').write('\''); + break; + case '\b': + out.write('\\').write('b'); + break; + case '\f': + out.write('\\').write('f'); + break; + case '\n': + out.write('\\').write('n'); + break; + case '\r': + out.write('\\').write('r'); + break; + case '\t': + out.write('\\').write('t'); + break; + case 0: + out.write('\\').write('0'); + break; + default: + out.write(b); + } + } + if (nested) { + out.write('\''); + } + } + + static void writeEscaped(TsvOutput out, String s, boolean nested) { + writeEscaped(out, s.getBytes(StandardCharsets.UTF_8), nested); + } + + /** Writes text that has no characters to escape (dates, UUIDs, addresses), quoted when nested. */ + private static void quotedIf(TsvOutput out, String s, boolean nested) { + if (nested) { + out.write('\'').write(s).write('\''); + } else { + out.write(s); + } + } + + private static int precision(ChType t, int arg) { + String p = t.literalArg(arg); + try { + int n = Integer.parseInt(p); + if (n >= 0 && n <= 9) { + return n; + } + } catch (NumberFormatException | NullPointerException e) { + // reported below + } + throw new UnsupportedTypeException(t.toString()); + } + + static String formatDecimal(BigDecimal d) { + if (d.signum() == 0) { + return "0"; + } + return d.stripTrailingZeros().toPlainString(); + } + + private static String formatDate(ChType t, Object v) { + LocalDate d; + if (v instanceof LocalDate) { + d = (LocalDate) v; + } else if (v instanceof java.sql.Date) { + d = ((java.sql.Date) v).toLocalDate(); + } else { + throw new ValueMismatchException(t, v); + } + if (d.getYear() > MAX_TEXT_YEAR) { + return "9999-12-31"; + } + if (d.getYear() < 0) { + return "0000-01-01"; + } + return String.format("%04d-%02d-%02d", d.getYear(), d.getMonthValue(), d.getDayOfMonth()); + } + + /** + * The last year that the server writes as text. The server writes a {@code Date32} or {@code DateTime64} value + * after year 9999 as {@code 9999-12-31 [23:59:59]}, and a value before year 0 as {@code 0000-01-01 [00:00:00]} + * (the wall-clock time in the time zone of the column; the fractional digits stay those of the value). + */ + private static final int MAX_TEXT_YEAR = 9999; + + /** Writes the wall-clock time of the value, in the time zone that the client gave it. */ + private static String formatDateTime(ChType t, Object v, int precision) { + LocalDateTime ldt; + if (v instanceof ZonedDateTime) { + ldt = ((ZonedDateTime) v).toLocalDateTime(); + } else if (v instanceof OffsetDateTime) { + ldt = ((OffsetDateTime) v).toLocalDateTime(); + } else if (v instanceof LocalDateTime) { + ldt = (LocalDateTime) v; + } else if (v instanceof Timestamp) { + ldt = ((Timestamp) v).toLocalDateTime(); + } else { + throw new ValueMismatchException(t, v); + } + StringBuilder sb = new StringBuilder(32); + if (ldt.getYear() > MAX_TEXT_YEAR) { + sb.append("9999-12-31 23:59:59"); + } else if (ldt.getYear() < 0) { + sb.append("0000-01-01 00:00:00"); + } else { + sb.append(String.format("%04d-%02d-%02d %02d:%02d:%02d", ldt.getYear(), ldt.getMonthValue(), + ldt.getDayOfMonth(), ldt.getHour(), ldt.getMinute(), ldt.getSecond())); + } + if (precision > 0) { + sb.append('.').append(String.format("%09d", ldt.getNano()), 0, precision); + } + return sb.toString(); + } + + private static final long MAX_TIME_SECONDS = 999L * 3600 + 59 * 60 + 59; + + /** + * Writes a {@code Time} / {@code Time64} value: {@code [-]HH:MM:SS[.fff]}. The hours can be more than 24. The + * client-v2 reader gives the value as a LocalDateTime on 1970-01-01 (the value is the time since its start). + */ + private static String formatTime(ChType t, Object v, int precision) { + long seconds; + long nanos; + if (v instanceof LocalDateTime) { + LocalDateTime ldt = (LocalDateTime) v; + seconds = ldt.toEpochSecond(ZoneOffset.UTC); + nanos = ldt.getNano(); + } else if (v instanceof Duration) { + seconds = ((Duration) v).getSeconds(); + nanos = ((Duration) v).getNano(); + } else if (v instanceof LocalTime) { + seconds = ((LocalTime) v).toSecondOfDay(); + nanos = ((LocalTime) v).getNano(); + } else if (v instanceof java.sql.Time) { + // jdbc-v2 gives Time and Time64 as java.sql.Time (a time of day) without the sign, the hours over 23 + // and the fraction (known failures in allowlist.txt). toLocalTime() drops the milliseconds that a + // java.sql.Time can hold, so take them from getTime(). + java.sql.Time time = (java.sql.Time) v; + seconds = time.toLocalTime().toSecondOfDay(); + nanos = Math.floorMod(time.getTime(), 1000L) * 1_000_000L; + } else { + throw new ValueMismatchException(t, v); + } + // (seconds, nanos) with 0 <= nanos < 1e9 is the value seconds + nanos / 1e9. + boolean negative = seconds < 0; + if (negative) { + if (nanos > 0) { + seconds = -seconds - 1; + nanos = 1_000_000_000L - nanos; + } else { + seconds = -seconds; + } + } + // The server writes a value above 999:59:59 as 999:59:59, with a zero fraction. + if (seconds > MAX_TIME_SECONDS) { + seconds = MAX_TIME_SECONDS; + nanos = 0; + } + StringBuilder sb = new StringBuilder(24); + if (negative) { + sb.append('-'); + } + sb.append(String.format("%02d:%02d:%02d", seconds / 3600, seconds / 60 % 60, seconds % 60)); + if (precision > 0) { + sb.append('.').append(String.format("%09d", nanos), 0, precision); + } + return sb.toString(); + } + + private static String formatInterval(ChType t, Object v) { + if (v instanceof Byte || v instanceof Short || v instanceof Integer || v instanceof Long + || v instanceof BigInteger) { + return v.toString(); + } + if (v instanceof Period) { + Period p = (Period) v; + switch (t.base) { + case "IntervalYear": + return String.valueOf(p.toTotalMonths() / 12); + case "IntervalQuarter": + return String.valueOf(p.toTotalMonths() / 3); + case "IntervalMonth": + return String.valueOf(p.toTotalMonths()); + case "IntervalWeek": + return String.valueOf(p.getDays() / 7); + case "IntervalDay": + return String.valueOf(p.getDays()); + default: + break; + } + } else if (v instanceof Duration) { + Duration d = (Duration) v; + switch (t.base) { + case "IntervalHour": + return String.valueOf(d.toHours()); + case "IntervalMinute": + return String.valueOf(d.toMinutes()); + case "IntervalSecond": + return String.valueOf(d.getSeconds()); + case "IntervalMillisecond": + return String.valueOf(d.toMillis()); + case "IntervalMicrosecond": + return String.valueOf(d.toNanos() / 1000); + case "IntervalNanosecond": + return String.valueOf(d.toNanos()); + default: + break; + } + } + throw new ValueMismatchException(t, v); + } + + /** + * Returns the elements of an array-like value: the client's ArrayValue, a List, a Java array or a + * java.sql.Array. Returns null for any other value. + */ + static List sequence(Object v) { + if (v instanceof BinaryStreamReader.ArrayValue) { + return ((BinaryStreamReader.ArrayValue) v).asList(); + } + if (v instanceof List) { + return (List) v; + } + if (v instanceof Object[]) { + return Arrays.asList((Object[]) v); + } + if (v != null && v.getClass().isArray()) { + int n = java.lang.reflect.Array.getLength(v); + List out = new ArrayList<>(n); + for (int i = 0; i < n; i++) { + out.add(java.lang.reflect.Array.get(v, i)); + } + return out; + } + if (v instanceof java.sql.Array) { + try { + return sequence(((java.sql.Array) v).getArray()); + } catch (SQLException e) { + throw new IllegalStateException("java.sql.Array.getArray() failed: " + e.getMessage(), e); + } + } + return null; + } + + private static void renderSequence(TsvOutput out, ChType inner, List items, char open, char close) { + out.write(open); + for (int i = 0; i < items.size(); i++) { + if (i > 0) { + out.write(','); + } + renderValue(out, inner, items.get(i), true); + } + out.write(close); + } + + private static void renderTuple(TsvOutput out, ChType t, Object v) { + List items = sequence(v); + if (items == null || items.size() != t.args.size()) { + throw new ValueMismatchException(t, v); + } + out.write('('); + for (int i = 0; i < t.args.size(); i++) { + if (i > 0) { + out.write(','); + } + ChType.Arg a = t.args.get(i); + if (a.type == null) { + throw new UnsupportedTypeException(t.toString()); + } + renderValue(out, a.type, items.get(i), true); + } + out.write(')'); + } + + /** + * Writes a {@code Map} in the order of the Java map. The client gives a LinkedHashMap in server order; a map + * without order cannot be written. + */ + private static void renderMap(TsvOutput out, ChType t, Object v) { + ChType kt = t.typeArg(0); + ChType vt = t.typeArg(1); + if (kt == null || vt == null || !(v instanceof Map)) { + throw new ValueMismatchException(t, v); + } + Map m = (Map) v; + if (m.size() > 1 && !(m instanceof java.util.LinkedHashMap) && !(m instanceof java.util.SortedMap)) { + throw new UnsupportedTypeException(t + " (a " + m.getClass().getName() + " does not keep the server order)"); + } + out.write('{'); + Iterator> it = m.entrySet().iterator(); + boolean first = true; + while (it.hasNext()) { + Map.Entry e = it.next(); + if (!first) { + out.write(','); + } + first = false; + renderValue(out, kt, e.getKey(), true); + out.write(':'); + renderValue(out, vt, e.getValue(), true); + } + out.write('}'); + } + + private static void renderPoint(TsvOutput out, ChType t, Object v) { + List xy = sequence(v); + if (xy == null || xy.size() != 2 || !(xy.get(0) instanceof Double) || !(xy.get(1) instanceof Double)) { + throw new ValueMismatchException(t, v); + } + out.write('(').write(FloatFormat.formatDouble((Double) xy.get(0))).write(',') + .write(FloatFormat.formatDouble((Double) xy.get(1))).write(')'); + } + + private static void renderGeo(TsvOutput out, ChType t, Object v, ChType element) { + List items = sequence(v); + if (items == null) { + throw new ValueMismatchException(t, v); + } + renderSequence(out, element, items, '[', ']'); + } + + /** + * Writes a {@code Geometry} value: a Variant of {@code Point}, {@code Ring}, {@code LineString}, + * {@code MultiLineString}, {@code Polygon} and {@code MultiPolygon}. The client gives the value of the active + * member as nested {@code double} arrays, so the number of array dimensions selects the text form: 1 is a Point, + * 2 a Ring or LineString, 3 a Polygon or MultiLineString, 4 a MultiPolygon. The members with the same number of + * dimensions have the same text. + */ + private static void renderGeometry(TsvOutput out, ChType t, Object v) { + int dimensions = 0; + for (Class c = v.getClass(); c.isArray(); c = c.getComponentType()) { + dimensions++; + } + switch (dimensions) { + case 1: + renderPoint(out, ChType.of("Point"), v); + return; + case 2: + renderGeo(out, ChType.of("LineString"), v, ChType.of("Point")); + return; + case 3: + renderGeo(out, ChType.of("Polygon"), v, ChType.of("Ring")); + return; + case 4: + renderGeo(out, ChType.of("MultiPolygon"), v, ChType.of("Polygon")); + return; + default: + throw new ValueMismatchException(t, v); + } + } + + /** + * Writes a {@code Variant} value. The client gives the value of the active member only, so the member type is + * the first one that accepts the Java value. + */ + private static void renderVariant(TsvOutput out, ChType t, Object v, boolean nested) { + int mark = out.size(); + RuntimeException last = null; + for (ChType.Arg a : t.args) { + if (a.type == null) { + throw new UnsupportedTypeException(t.toString()); + } + try { + renderValue(out, a.type, v, nested); + return; + } catch (ValueMismatchException | UnsupportedTypeException e) { + out.truncate(mark); + last = e; + } + } + throw last != null ? last : new ValueMismatchException(t, v); + } + + /** + * Follows ClickHouse's {@code formatIPv6}: the longest run of two or more zero words becomes {@code ::}, and an + * IPv4-mapped ({@code ::ffff:a.b.c.d}) or IPv4-compatible ({@code ::a.b.c.d}) address ends in dotted form. + */ + static String formatIPv6(byte[] ip) { + int[] words = new int[8]; + for (int i = 0; i < 8; i++) { + words[i] = (ip[2 * i] & 0xff) << 8 | (ip[2 * i + 1] & 0xff); + } + int bestBase = -1; + int bestLen = 0; + for (int i = 0; i < 8;) { + if (words[i] != 0) { + i++; + continue; + } + int j = i; + while (j < 8 && words[j] == 0) { + j++; + } + if (j - i > bestLen) { + bestBase = i; + bestLen = j - i; + } + i = j; + } + if (bestLen < 2) { + bestBase = -1; + } + boolean ipv4Compatible = bestBase == 0 && bestLen == 6; + boolean ipv4Mapped = bestBase == 0 && bestLen == 5 && words[5] == 0xffff; + StringBuilder sb = new StringBuilder(40); + for (int i = 0; i < 8; i++) { + if (bestBase != -1 && i >= bestBase && i < bestBase + bestLen) { + if (i == bestBase) { + sb.append(':'); + } + continue; + } + if (i != 0) { + sb.append(':'); + } + if (i == 6 && (ipv4Compatible || ipv4Mapped)) { + sb.append(ip[12] & 0xff).append('.').append(ip[13] & 0xff).append('.') + .append(ip[14] & 0xff).append('.').append(ip[15] & 0xff); + return sb.toString(); + } + sb.append(Integer.toHexString(words[i])); + } + if (bestBase != -1 && bestBase + bestLen == 8) { + sb.append(':'); + } + return sb.toString(); + } +} diff --git a/tests/clickhouse-client/src/main/resources/com/clickhouse/client/cli/error-codes.tsv b/tests/clickhouse-client/src/main/resources/com/clickhouse/client/cli/error-codes.tsv new file mode 100644 index 000000000..46e628dc8 --- /dev/null +++ b/tests/clickhouse-client/src/main/resources/com/clickhouse/client/cli/error-codes.tsv @@ -0,0 +1,685 @@ +# Generated by scripts/gen-error-codes.sh from src/Common/ErrorCodes.cpp of ClickHouse v26.10.4.207-stable; do not edit. +# : test hints can name an error instead of giving its code. +0 OK +1 UNSUPPORTED_METHOD +2 UNSUPPORTED_PARAMETER +3 UNEXPECTED_END_OF_FILE +4 EXPECTED_END_OF_FILE +6 CANNOT_PARSE_TEXT +7 INCORRECT_NUMBER_OF_COLUMNS +8 THERE_IS_NO_COLUMN +9 SIZES_OF_COLUMNS_DOESNT_MATCH +10 NOT_FOUND_COLUMN_IN_BLOCK +11 POSITION_OUT_OF_BOUND +12 PARAMETER_OUT_OF_BOUND +13 SIZES_OF_COLUMNS_IN_TUPLE_DOESNT_MATCH +15 DUPLICATE_COLUMN +16 NO_SUCH_COLUMN_IN_TABLE +19 SIZE_OF_FIXED_STRING_DOESNT_MATCH +20 NUMBER_OF_COLUMNS_DOESNT_MATCH +23 CANNOT_READ_FROM_ISTREAM +24 CANNOT_WRITE_TO_OSTREAM +25 CANNOT_PARSE_ESCAPE_SEQUENCE +26 CANNOT_PARSE_QUOTED_STRING +27 CANNOT_PARSE_INPUT_ASSERTION_FAILED +28 CANNOT_PRINT_FLOAT_OR_DOUBLE_NUMBER +32 ATTEMPT_TO_READ_AFTER_EOF +33 CANNOT_READ_ALL_DATA +34 TOO_MANY_ARGUMENTS_FOR_FUNCTION +35 TOO_FEW_ARGUMENTS_FOR_FUNCTION +36 BAD_ARGUMENTS +37 UNKNOWN_ELEMENT_IN_AST +38 CANNOT_PARSE_DATE +39 TOO_LARGE_SIZE_COMPRESSED +40 CHECKSUM_DOESNT_MATCH +41 CANNOT_PARSE_DATETIME +42 NUMBER_OF_ARGUMENTS_DOESNT_MATCH +43 ILLEGAL_TYPE_OF_ARGUMENT +44 ILLEGAL_COLUMN +46 UNKNOWN_FUNCTION +47 UNKNOWN_IDENTIFIER +48 NOT_IMPLEMENTED +49 LOGICAL_ERROR +50 UNKNOWN_TYPE +51 EMPTY_LIST_OF_COLUMNS_QUERIED +52 COLUMN_QUERIED_MORE_THAN_ONCE +53 TYPE_MISMATCH +55 STORAGE_REQUIRES_PARAMETER +56 UNKNOWN_STORAGE +57 TABLE_ALREADY_EXISTS +58 TABLE_METADATA_ALREADY_EXISTS +59 ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER +60 UNKNOWN_TABLE +62 SYNTAX_ERROR +63 UNKNOWN_AGGREGATE_FUNCTION +68 CANNOT_GET_SIZE_OF_FIELD +69 ARGUMENT_OUT_OF_BOUND +70 CANNOT_CONVERT_TYPE +71 CANNOT_WRITE_AFTER_END_OF_BUFFER +72 CANNOT_PARSE_NUMBER +73 UNKNOWN_FORMAT +74 CANNOT_READ_FROM_FILE_DESCRIPTOR +75 CANNOT_WRITE_TO_FILE_DESCRIPTOR +76 CANNOT_OPEN_FILE +77 CANNOT_CLOSE_FILE +78 UNKNOWN_TYPE_OF_QUERY +79 INCORRECT_FILE_NAME +80 INCORRECT_QUERY +81 UNKNOWN_DATABASE +82 DATABASE_ALREADY_EXISTS +83 DIRECTORY_DOESNT_EXIST +84 DIRECTORY_ALREADY_EXISTS +85 FORMAT_IS_NOT_SUITABLE_FOR_INPUT +86 RECEIVED_ERROR_FROM_REMOTE_IO_SERVER +87 CANNOT_SEEK_THROUGH_FILE +88 CANNOT_TRUNCATE_FILE +89 UNKNOWN_COMPRESSION_METHOD +90 EMPTY_LIST_OF_COLUMNS_PASSED +91 SIZES_OF_MARKS_FILES_ARE_INCONSISTENT +92 EMPTY_DATA_PASSED +93 UNKNOWN_AGGREGATED_DATA_VARIANT +94 CANNOT_MERGE_DIFFERENT_AGGREGATED_DATA_VARIANTS +95 CANNOT_READ_FROM_SOCKET +96 CANNOT_WRITE_TO_SOCKET +99 UNKNOWN_PACKET_FROM_CLIENT +100 UNKNOWN_PACKET_FROM_SERVER +101 UNEXPECTED_PACKET_FROM_CLIENT +102 UNEXPECTED_PACKET_FROM_SERVER +104 TOO_SMALL_BUFFER_SIZE +107 FILE_DOESNT_EXIST +108 NO_DATA_TO_INSERT +109 CANNOT_BLOCK_SIGNAL +110 CANNOT_UNBLOCK_SIGNAL +111 CANNOT_MANIPULATE_SIGSET +112 CANNOT_WAIT_FOR_SIGNAL +113 THERE_IS_NO_SESSION +114 CANNOT_CLOCK_GETTIME +115 UNKNOWN_SETTING +116 THERE_IS_NO_DEFAULT_VALUE +117 INCORRECT_DATA +119 ENGINE_REQUIRED +120 CANNOT_INSERT_VALUE_OF_DIFFERENT_SIZE_INTO_TUPLE +121 UNSUPPORTED_JOIN_KEYS +122 INCOMPATIBLE_COLUMNS +123 UNKNOWN_TYPE_OF_AST_NODE +124 INCORRECT_ELEMENT_OF_SET +125 INCORRECT_RESULT_OF_SCALAR_SUBQUERY +127 ILLEGAL_INDEX +128 TOO_LARGE_ARRAY_SIZE +129 FUNCTION_IS_SPECIAL +130 CANNOT_READ_ARRAY_FROM_TEXT +131 TOO_LARGE_STRING_SIZE +133 AGGREGATE_FUNCTION_DOESNT_ALLOW_PARAMETERS +134 PARAMETERS_TO_AGGREGATE_FUNCTIONS_MUST_BE_LITERALS +135 ZERO_ARRAY_OR_TUPLE_INDEX +137 UNKNOWN_ELEMENT_IN_CONFIG +138 EXCESSIVE_ELEMENT_IN_CONFIG +139 NO_ELEMENTS_IN_CONFIG +141 SAMPLING_NOT_SUPPORTED +142 NOT_FOUND_NODE +145 UNKNOWN_OVERFLOW_MODE +152 UNKNOWN_DIRECTION_OF_SORTING +153 ILLEGAL_DIVISION +156 DICTIONARIES_WAS_NOT_LOADED +158 TOO_MANY_ROWS +159 TIMEOUT_EXCEEDED +160 TOO_SLOW +161 TOO_MANY_COLUMNS +162 TOO_DEEP_SUBQUERIES +164 READONLY +165 TOO_MANY_TEMPORARY_COLUMNS +166 TOO_MANY_TEMPORARY_NON_CONST_COLUMNS +167 TOO_DEEP_AST +168 TOO_BIG_AST +169 BAD_TYPE_OF_FIELD +170 BAD_GET +172 CANNOT_CREATE_DIRECTORY +173 CANNOT_ALLOCATE_MEMORY +174 CYCLIC_ALIASES +179 MULTIPLE_EXPRESSIONS_FOR_ALIAS +180 THERE_IS_NO_PROFILE +181 ILLEGAL_FINAL +182 ILLEGAL_PREWHERE +183 UNEXPECTED_EXPRESSION +184 ILLEGAL_AGGREGATION +186 UNSUPPORTED_COLLATION_LOCALE +187 COLLATION_COMPARISON_FAILED +190 SIZES_OF_ARRAYS_DONT_MATCH +191 SET_SIZE_LIMIT_EXCEEDED +192 UNKNOWN_USER +193 WRONG_PASSWORD +194 REQUIRED_PASSWORD +195 IP_ADDRESS_NOT_ALLOWED +196 UNKNOWN_ADDRESS_PATTERN_TYPE +198 DNS_ERROR +199 UNKNOWN_QUOTA +201 QUOTA_EXCEEDED +202 TOO_MANY_SIMULTANEOUS_QUERIES +203 NO_FREE_CONNECTION +204 CANNOT_FSYNC +206 ALIAS_REQUIRED +207 AMBIGUOUS_IDENTIFIER +208 EMPTY_NESTED_TABLE +209 SOCKET_TIMEOUT +210 NETWORK_ERROR +211 EMPTY_QUERY +212 UNKNOWN_LOAD_BALANCING +213 UNKNOWN_TOTALS_MODE +214 CANNOT_STATVFS +215 NOT_AN_AGGREGATE +216 QUERY_WITH_SAME_ID_IS_ALREADY_RUNNING +217 CLIENT_HAS_CONNECTED_TO_WRONG_PORT +218 TABLE_IS_DROPPED +219 DATABASE_NOT_EMPTY +220 DUPLICATE_INTERSERVER_IO_ENDPOINT +221 NO_SUCH_INTERSERVER_IO_ENDPOINT +223 UNEXPECTED_AST_STRUCTURE +224 REPLICA_IS_ALREADY_ACTIVE +225 NO_ZOOKEEPER +226 NO_FILE_IN_DATA_PART +227 UNEXPECTED_FILE_IN_DATA_PART +228 BAD_SIZE_OF_FILE_IN_DATA_PART +229 QUERY_IS_TOO_LARGE +230 NOT_FOUND_EXPECTED_DATA_PART +231 TOO_MANY_UNEXPECTED_DATA_PARTS +232 NO_SUCH_DATA_PART +233 BAD_DATA_PART_NAME +234 NO_REPLICA_HAS_PART +235 DUPLICATE_DATA_PART +236 ABORTED +237 NO_REPLICA_NAME_GIVEN +238 FORMAT_VERSION_TOO_OLD +239 CANNOT_MUNMAP +240 CANNOT_MREMAP +241 MEMORY_LIMIT_EXCEEDED +242 TABLE_IS_READ_ONLY +243 NOT_ENOUGH_SPACE +244 UNEXPECTED_ZOOKEEPER_ERROR +246 CORRUPTED_DATA +248 INVALID_PARTITION_VALUE +251 NO_SUCH_REPLICA +252 TOO_MANY_PARTS +253 REPLICA_ALREADY_EXISTS +254 NO_ACTIVE_REPLICAS +255 TOO_MANY_RETRIES_TO_FETCH_PARTS +256 PARTITION_ALREADY_EXISTS +257 PARTITION_DOESNT_EXIST +258 UNION_ALL_RESULT_STRUCTURES_MISMATCH +260 CLIENT_OUTPUT_FORMAT_SPECIFIED +261 UNKNOWN_BLOCK_INFO_FIELD +262 BAD_COLLATION +263 CANNOT_COMPILE_CODE +264 INCOMPATIBLE_TYPE_OF_JOIN +265 NO_AVAILABLE_REPLICA +266 MISMATCH_REPLICAS_DATA_SOURCES +269 INFINITE_LOOP +270 CANNOT_COMPRESS +271 CANNOT_DECOMPRESS +272 CANNOT_IO_SUBMIT +273 CANNOT_IO_GETEVENTS +274 AIO_READ_ERROR +275 AIO_WRITE_ERROR +277 INDEX_NOT_USED +279 ALL_CONNECTION_TRIES_FAILED +280 NO_AVAILABLE_DATA +281 DICTIONARY_IS_EMPTY +282 INCORRECT_INDEX +283 UNKNOWN_DISTRIBUTED_PRODUCT_MODE +284 WRONG_GLOBAL_SUBQUERY +285 TOO_FEW_LIVE_REPLICAS +286 UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE +287 UNKNOWN_FORMAT_VERSION +288 DISTRIBUTED_IN_JOIN_SUBQUERY_DENIED +289 REPLICA_IS_NOT_IN_QUORUM +290 LIMIT_EXCEEDED +291 DATABASE_ACCESS_DENIED +293 MONGODB_CANNOT_AUTHENTICATE +294 CANNOT_WRITE_TO_FILE +295 RECEIVED_EMPTY_DATA +297 SHARD_HAS_NO_CONNECTIONS +298 CANNOT_PIPE +299 CANNOT_FORK +300 CANNOT_DLSYM +301 CANNOT_CREATE_CHILD_PROCESS +302 CHILD_WAS_NOT_EXITED_NORMALLY +303 CANNOT_SELECT +304 CANNOT_WAITPID +305 TABLE_WAS_NOT_DROPPED +306 TOO_DEEP_RECURSION +307 TOO_MANY_BYTES +308 UNEXPECTED_NODE_IN_ZOOKEEPER +309 FUNCTION_CANNOT_HAVE_PARAMETERS +318 INVALID_CONFIG_PARAMETER +319 UNKNOWN_STATUS_OF_INSERT +321 VALUE_IS_OUT_OF_RANGE_OF_DATA_TYPE +336 UNKNOWN_DATABASE_ENGINE +341 UNFINISHED +342 METADATA_MISMATCH +344 SUPPORT_IS_DISABLED +345 TABLE_DIFFERS_TOO_MUCH +346 CANNOT_CONVERT_CHARSET +347 CANNOT_LOAD_CONFIG +349 CANNOT_INSERT_NULL_IN_ORDINARY_COLUMN +352 AMBIGUOUS_COLUMN_NAME +353 INDEX_OF_POSITIONAL_ARGUMENT_IS_OUT_OF_RANGE +354 ZLIB_INFLATE_FAILED +355 ZLIB_DEFLATE_FAILED +358 INTO_OUTFILE_NOT_ALLOWED +359 TABLE_SIZE_EXCEEDS_MAX_DROP_SIZE_LIMIT +360 CANNOT_CREATE_CHARSET_CONVERTER +361 SEEK_POSITION_OUT_OF_BOUND +362 CURRENT_WRITE_BUFFER_IS_EXHAUSTED +363 CANNOT_CREATE_IO_BUFFER +364 RECEIVED_ERROR_TOO_MANY_REQUESTS +366 SIZES_OF_NESTED_COLUMNS_ARE_INCONSISTENT +369 ALL_REPLICAS_ARE_STALE +370 DATA_TYPE_CANNOT_BE_USED_IN_TABLES +371 INCONSISTENT_CLUSTER_DEFINITION +372 SESSION_NOT_FOUND +373 SESSION_IS_LOCKED +374 INVALID_SESSION_TIMEOUT +375 CANNOT_DLOPEN +376 CANNOT_PARSE_UUID +377 ILLEGAL_SYNTAX_FOR_DATA_TYPE +378 DATA_TYPE_CANNOT_HAVE_ARGUMENTS +380 CANNOT_KILL +381 HTTP_LENGTH_REQUIRED +382 CANNOT_LOAD_CATBOOST_MODEL +383 CANNOT_APPLY_CATBOOST_MODEL +384 PART_IS_TEMPORARILY_LOCKED +385 MULTIPLE_STREAMS_REQUIRED +386 NO_COMMON_TYPE +387 DICTIONARY_ALREADY_EXISTS +388 CANNOT_ASSIGN_OPTIMIZE +389 INSERT_WAS_DEDUPLICATED +390 CANNOT_GET_CREATE_TABLE_QUERY +391 EXTERNAL_LIBRARY_ERROR +392 QUERY_IS_PROHIBITED +393 THERE_IS_NO_QUERY +394 QUERY_WAS_CANCELLED +395 FUNCTION_THROW_IF_VALUE_IS_NON_ZERO +396 TOO_MANY_ROWS_OR_BYTES +397 QUERY_IS_NOT_SUPPORTED_IN_MATERIALIZED_VIEW +398 UNKNOWN_MUTATION_COMMAND +399 FORMAT_IS_NOT_SUITABLE_FOR_OUTPUT +400 CANNOT_STAT +401 FEATURE_IS_NOT_ENABLED_AT_BUILD_TIME +402 CANNOT_IOSETUP +403 INVALID_JOIN_ON_EXPRESSION +404 BAD_ODBC_CONNECTION_STRING +406 TOP_AND_LIMIT_TOGETHER +407 DECIMAL_OVERFLOW +408 BAD_REQUEST_PARAMETER +410 EXTERNAL_SERVER_IS_NOT_RESPONDING +411 PTHREAD_ERROR +412 NETLINK_ERROR +413 CANNOT_SET_SIGNAL_HANDLER +415 ALL_REPLICAS_LOST +416 REPLICA_STATUS_CHANGED +417 EXPECTED_ALL_OR_ANY +418 UNKNOWN_JOIN +419 MULTIPLE_ASSIGNMENTS_TO_COLUMN +420 CANNOT_UPDATE_COLUMN +421 CANNOT_ADD_DIFFERENT_AGGREGATE_STATES +422 UNSUPPORTED_URI_SCHEME +423 CANNOT_GETTIMEOFDAY +424 CANNOT_LINK +425 SYSTEM_ERROR +427 CANNOT_COMPILE_REGEXP +429 FAILED_TO_GETPWUID +430 MISMATCHING_USERS_FOR_PROCESS_AND_DATA +431 ILLEGAL_SYNTAX_FOR_CODEC_TYPE +432 UNKNOWN_CODEC +433 ILLEGAL_CODEC_PARAMETER +434 CANNOT_PARSE_PROTOBUF_SCHEMA +435 NO_COLUMN_SERIALIZED_TO_REQUIRED_PROTOBUF_FIELD +436 PROTOBUF_BAD_CAST +437 PROTOBUF_FIELD_NOT_REPEATED +438 DATA_TYPE_CANNOT_BE_PROMOTED +439 CANNOT_SCHEDULE_TASK +440 INVALID_LIMIT_EXPRESSION +441 CANNOT_PARSE_DOMAIN_VALUE_FROM_STRING +442 BAD_DATABASE_FOR_TEMPORARY_TABLE +443 NO_COLUMNS_SERIALIZED_TO_PROTOBUF_FIELDS +444 UNKNOWN_PROTOBUF_FORMAT +445 CANNOT_MPROTECT +446 FUNCTION_NOT_ALLOWED +447 HYPERSCAN_CANNOT_SCAN_TEXT +448 BROTLI_READ_FAILED +449 BROTLI_WRITE_FAILED +450 BAD_TTL_EXPRESSION +451 BAD_TTL_FILE +452 SETTING_CONSTRAINT_VIOLATION +453 MYSQL_CLIENT_INSUFFICIENT_CAPABILITIES +454 OPENSSL_ERROR +455 SUSPICIOUS_TYPE_FOR_LOW_CARDINALITY +456 UNKNOWN_QUERY_PARAMETER +457 BAD_QUERY_PARAMETER +458 CANNOT_UNLINK +459 CANNOT_SET_THREAD_PRIORITY +460 CANNOT_CREATE_TIMER +461 CANNOT_SET_TIMER_PERIOD +463 CANNOT_FCNTL +464 CANNOT_PARSE_ELF +465 CANNOT_PARSE_DWARF +466 INSECURE_PATH +467 CANNOT_PARSE_BOOL +468 CANNOT_PTHREAD_ATTR +469 VIOLATED_CONSTRAINT +471 INVALID_SETTING_VALUE +472 READONLY_SETTING +473 DEADLOCK_AVOIDED +474 INVALID_TEMPLATE_FORMAT +475 INVALID_WITH_FILL_EXPRESSION +476 WITH_TIES_WITHOUT_ORDER_BY +477 INVALID_USAGE_OF_INPUT +478 UNKNOWN_POLICY +479 UNKNOWN_DISK +480 UNKNOWN_PROTOCOL +481 PATH_ACCESS_DENIED +482 DICTIONARY_ACCESS_DENIED +483 TOO_MANY_REDIRECTS +484 INTERNAL_REDIS_ERROR +487 CANNOT_GET_CREATE_DICTIONARY_QUERY +489 INCORRECT_DICTIONARY_DEFINITION +490 CANNOT_FORMAT_DATETIME +491 UNACCEPTABLE_URL +492 ACCESS_ENTITY_NOT_FOUND +493 ACCESS_ENTITY_ALREADY_EXISTS +495 ACCESS_STORAGE_READONLY +496 QUOTA_REQUIRES_CLIENT_KEY +497 ACCESS_DENIED +498 LIMIT_BY_WITH_TIES_IS_NOT_SUPPORTED +499 S3_ERROR +500 AZURE_BLOB_STORAGE_ERROR +501 CANNOT_CREATE_DATABASE +502 CANNOT_SIGQUEUE +503 AGGREGATE_FUNCTION_THROW +504 FILE_ALREADY_EXISTS +507 UNABLE_TO_SKIP_UNUSED_SHARDS +508 UNKNOWN_ACCESS_TYPE +509 INVALID_GRANT +510 CACHE_DICTIONARY_UPDATE_FAIL +511 UNKNOWN_ROLE +512 SET_NON_GRANTED_ROLE +513 UNKNOWN_PART_TYPE +514 ACCESS_STORAGE_FOR_INSERTION_NOT_FOUND +515 INCORRECT_ACCESS_ENTITY_DEFINITION +516 AUTHENTICATION_FAILED +517 CANNOT_ASSIGN_ALTER +518 CANNOT_COMMIT_OFFSET +519 NO_REMOTE_SHARD_AVAILABLE +520 CANNOT_DETACH_DICTIONARY_AS_TABLE +521 ATOMIC_RENAME_FAIL +523 UNKNOWN_ROW_POLICY +524 ALTER_OF_COLUMN_IS_FORBIDDEN +525 INCORRECT_DISK_INDEX +527 NO_SUITABLE_FUNCTION_IMPLEMENTATION +528 CASSANDRA_INTERNAL_ERROR +529 NOT_A_LEADER +530 CANNOT_CONNECT_RABBITMQ +531 CANNOT_FSTAT +532 LDAP_ERROR +535 UNKNOWN_RAID_TYPE +536 CANNOT_RESTORE_FROM_FIELD_DUMP +537 ILLEGAL_MYSQL_VARIABLE +538 MYSQL_SYNTAX_ERROR +539 CANNOT_BIND_RABBITMQ_EXCHANGE +540 CANNOT_DECLARE_RABBITMQ_EXCHANGE +541 CANNOT_CREATE_RABBITMQ_QUEUE_BINDING +542 CANNOT_REMOVE_RABBITMQ_EXCHANGE +543 UNKNOWN_MYSQL_DATATYPES_SUPPORT_LEVEL +544 ROW_AND_ROWS_TOGETHER +545 FIRST_AND_NEXT_TOGETHER +546 NO_ROW_DELIMITER +547 INVALID_RAID_TYPE +548 UNKNOWN_VOLUME +549 DATA_TYPE_CANNOT_BE_USED_IN_KEY +552 UNRECOGNIZED_ARGUMENTS +553 LZMA_STREAM_ENCODER_FAILED +554 LZMA_STREAM_DECODER_FAILED +555 ROCKSDB_ERROR +556 SYNC_MYSQL_USER_ACCESS_ERROR +557 UNKNOWN_UNION +558 EXPECTED_ALL_OR_DISTINCT +559 INVALID_GRPC_QUERY_INFO +560 ZSTD_ENCODER_FAILED +561 ZSTD_DECODER_FAILED +562 TLD_LIST_NOT_FOUND +563 CANNOT_READ_MAP_FROM_TEXT +564 INTERSERVER_SCHEME_DOESNT_MATCH +565 TOO_MANY_PARTITIONS +566 CANNOT_RMDIR +567 DUPLICATED_PART_UUIDS +568 RAFT_ERROR +569 MULTIPLE_COLUMNS_SERIALIZED_TO_SAME_PROTOBUF_FIELD +570 DATA_TYPE_INCOMPATIBLE_WITH_PROTOBUF_FIELD +571 DATABASE_REPLICATION_FAILED +572 TOO_MANY_QUERY_PLAN_OPTIMIZATIONS +573 EPOLL_ERROR +574 DISTRIBUTED_TOO_MANY_PENDING_BYTES +575 UNKNOWN_SNAPSHOT +576 KERBEROS_ERROR +577 INVALID_SHARD_ID +578 INVALID_FORMAT_INSERT_QUERY_WITH_DATA +579 INCORRECT_PART_TYPE +580 CANNOT_SET_ROUNDING_MODE +581 TOO_LARGE_DISTRIBUTED_DEPTH +582 NO_SUCH_PROJECTION_IN_TABLE +583 ILLEGAL_PROJECTION +584 PROJECTION_NOT_USED +585 CANNOT_PARSE_YAML +586 CANNOT_CREATE_FILE +587 CONCURRENT_ACCESS_NOT_SUPPORTED +588 DISTRIBUTED_BROKEN_BATCH_INFO +589 DISTRIBUTED_BROKEN_BATCH_FILES +590 CANNOT_SYSCONF +591 SQLITE_ENGINE_ERROR +592 DATA_ENCRYPTION_ERROR +593 ZERO_COPY_REPLICATION_ERROR +594 BZIP2_STREAM_DECODER_FAILED +595 BZIP2_STREAM_ENCODER_FAILED +596 INTERSECT_OR_EXCEPT_RESULT_STRUCTURES_MISMATCH +597 NO_SUCH_ERROR_CODE +598 BACKUP_ALREADY_EXISTS +599 BACKUP_NOT_FOUND +600 BACKUP_VERSION_NOT_SUPPORTED +601 BACKUP_DAMAGED +602 NO_BASE_BACKUP +603 WRONG_BASE_BACKUP +604 BACKUP_ENTRY_ALREADY_EXISTS +605 BACKUP_ENTRY_NOT_FOUND +606 BACKUP_IS_EMPTY +607 CANNOT_RESTORE_DATABASE +608 CANNOT_RESTORE_TABLE +609 FUNCTION_ALREADY_EXISTS +610 CANNOT_DROP_FUNCTION +611 CANNOT_CREATE_RECURSIVE_FUNCTION +614 POSTGRESQL_CONNECTION_FAILURE +615 CANNOT_ADVISE +616 UNKNOWN_READ_METHOD +617 LZ4_ENCODER_FAILED +618 LZ4_DECODER_FAILED +619 POSTGRESQL_REPLICATION_INTERNAL_ERROR +620 QUERY_NOT_ALLOWED +621 CANNOT_NORMALIZE_STRING +622 CANNOT_PARSE_CAPN_PROTO_SCHEMA +623 CAPN_PROTO_BAD_CAST +624 BAD_FILE_TYPE +625 IO_SETUP_ERROR +626 CANNOT_SKIP_UNKNOWN_FIELD +627 BACKUP_ENGINE_NOT_FOUND +628 OFFSET_FETCH_WITHOUT_ORDER_BY +629 HTTP_RANGE_NOT_SATISFIABLE +630 HAVE_DEPENDENT_OBJECTS +631 UNKNOWN_FILE_SIZE +632 UNEXPECTED_DATA_AFTER_PARSED_VALUE +634 MONGODB_ERROR +635 CANNOT_POLL +636 CANNOT_EXTRACT_TABLE_STRUCTURE +637 INVALID_TABLE_OVERRIDE +638 SNAPPY_UNCOMPRESS_FAILED +639 SNAPPY_COMPRESS_FAILED +640 NO_HIVEMETASTORE +641 CANNOT_APPEND_TO_FILE +642 CANNOT_PACK_ARCHIVE +643 CANNOT_UNPACK_ARCHIVE +645 NUMBER_OF_DIMENSIONS_MISMATCHED +647 CANNOT_BACKUP_TABLE +648 WRONG_DDL_RENAMING_SETTINGS +649 INVALID_TRANSACTION +650 SERIALIZATION_ERROR +651 CAPN_PROTO_BAD_TYPE +652 ONLY_NULLS_WHILE_READING_SCHEMA +653 CANNOT_PARSE_BACKUP_SETTINGS +654 WRONG_BACKUP_SETTINGS +655 FAILED_TO_SYNC_BACKUP_OR_RESTORE +659 UNKNOWN_STATUS_OF_TRANSACTION +660 HDFS_ERROR +661 CANNOT_SEND_SIGNAL +662 FS_METADATA_ERROR +663 INCONSISTENT_METADATA_FOR_BACKUP +664 ACCESS_STORAGE_DOESNT_ALLOW_BACKUP +665 CANNOT_CONNECT_NATS +667 NOT_INITIALIZED +668 INVALID_STATE +669 NAMED_COLLECTION_DOESNT_EXIST +670 NAMED_COLLECTION_ALREADY_EXISTS +671 NAMED_COLLECTION_IS_IMMUTABLE +672 INVALID_SCHEDULER_NODE +673 RESOURCE_ACCESS_DENIED +674 RESOURCE_NOT_FOUND +675 CANNOT_PARSE_IPV4 +676 CANNOT_PARSE_IPV6 +677 THREAD_WAS_CANCELED +678 IO_URING_INIT_FAILED +679 IO_URING_SUBMIT_ERROR +690 MIXED_ACCESS_PARAMETER_TYPES +691 UNKNOWN_ELEMENT_OF_ENUM +692 TOO_MANY_MUTATIONS +693 AWS_ERROR +694 ASYNC_LOAD_CYCLE +695 ASYNC_LOAD_FAILED +696 ASYNC_LOAD_CANCELED +697 CANNOT_RESTORE_TO_NONENCRYPTED_DISK +698 INVALID_REDIS_STORAGE_TYPE +699 INVALID_REDIS_TABLE_STRUCTURE +700 USER_SESSION_LIMIT_EXCEEDED +701 CLUSTER_DOESNT_EXIST +702 CLIENT_INFO_DOES_NOT_MATCH +703 INVALID_IDENTIFIER +704 QUERY_CACHE_USED_WITH_NONDETERMINISTIC_FUNCTIONS +705 TABLE_NOT_EMPTY +706 LIBSSH_ERROR +707 GCP_ERROR +708 ILLEGAL_STATISTICS +709 CANNOT_GET_REPLICATED_DATABASE_SNAPSHOT +710 FAULT_INJECTED +711 FILECACHE_ACCESS_DENIED +712 TOO_MANY_MATERIALIZED_VIEWS +713 BROKEN_PROJECTION +714 UNEXPECTED_CLUSTER +715 CANNOT_DETECT_FORMAT +716 CANNOT_FORGET_PARTITION +717 EXPERIMENTAL_FEATURE_ERROR +718 TOO_SLOW_PARSING +719 QUERY_CACHE_USED_WITH_SYSTEM_TABLE +720 USER_EXPIRED +721 DEPRECATED_FUNCTION +722 ASYNC_LOAD_WAIT_FAILED +723 PARQUET_EXCEPTION +724 TOO_MANY_TABLES +725 TOO_MANY_DATABASES +726 UNEXPECTED_HTTP_HEADERS +727 UNEXPECTED_TABLE_ENGINE +728 UNEXPECTED_DATA_TYPE +729 ILLEGAL_TIME_SERIES_TAGS +730 REFRESH_FAILED +731 QUERY_CACHE_USED_WITH_NON_THROW_OVERFLOW_MODE +733 TABLE_IS_BEING_RESTARTED +734 CANNOT_WRITE_AFTER_BUFFER_CANCELED +735 QUERY_WAS_CANCELLED_BY_CLIENT +736 DATALAKE_DATABASE_ERROR +737 GOOGLE_CLOUD_ERROR +738 PART_IS_LOCKED +739 BUZZHOUSE +740 POTENTIALLY_BROKEN_DATA_PART +741 TABLE_UUID_MISMATCH +742 DELTA_KERNEL_ERROR +743 ICEBERG_SPECIFICATION_VIOLATION +744 SESSION_ID_EMPTY +745 SERVER_OVERLOADED +746 DEPENDENCIES_NOT_FOUND +747 FILECACHE_CANNOT_WRITE_THROUGH_CACHE_WITH_CONCURRENT_READS +748 AVRO_EXCEPTION +749 TCP_CONNECTION_LIMIT_REACHED +750 ARROWFLIGHT_INTERNAL_ERROR +751 ARROWFLIGHT_CONNECTION_FAILURE +752 ARROWFLIGHT_FETCH_SCHEMA_ERROR +753 ARROWFLIGHT_WRITE_ERROR +754 UDF_EXECUTION_FAILED +755 TOO_LARGE_LIGHTWEIGHT_UPDATES +756 CANNOT_PARSE_PROMQL_QUERY +757 CANNOT_GET_THREAD_PRIORITY +758 TOO_MANY_NAMED_COLLECTIONS +759 LICENSING_EXCEPTION +760 UNICODE_ERROR +761 ACME_ERROR +762 HTTP_CONNECTION_LIMIT_REACHED +763 SESSION_REFUSED +764 DEDUPLICATION_IS_NOT_POSSIBLE +765 UNKNOWN_MASKING_POLICY +766 INSTRUMENTATION_ERROR +767 REQUIRED_SECOND_FACTOR +768 CANNOT_EXECUTE_PROMQL_QUERY +769 NAMED_COLLECTION_IS_USED +770 WASM_ERROR +771 CACHE_CANNOT_WRITE_TO_CACHE_DISK +772 INCOMPATIBLE_SCHEMA +773 MALFORMED_AI_PROVIDER_RESPONSE +774 TABLE_IS_PERMANENTLY_READ_ONLY +775 STATELESS_WORKER_DISCOVERY_ERROR +776 RESOURCE_LIMIT_EXCEEDED +777 MEMORY_RESERVATION_KILLED +778 MEMORY_RESERVATION_FAILED +779 UNSUPPORTED_MEDIA_TYPE +780 SW_SERVER_NO_WORKERS_AVAILABLE +781 AI_PROVIDER_RESPONSE_TRUNCATED +782 AI_PROVIDER_RESPONSE_INCOMPLETE +783 SSH_AGENT_ERROR +784 OBJECT_STORAGE_QUEUE_POST_PROCESSING_FAILED +785 NOTHING_TO_KILL +900 DISTRIBUTED_CACHE_ERROR +901 CANNOT_USE_DISTRIBUTED_CACHE +902 PROTOCOL_VERSION_MISMATCH +903 DISTRIBUTED_CACHE_REGISTRY_SHUTDOWN +904 TOO_MANY_UNAVAILABLE_SHARDS +905 DISTRIBUTED_CACHE_SERVER_IN_BACKOFF +906 AST_FUZZER_ORACLE_MISMATCH +907 DISTRIBUTED_CACHE_UNEXPECTED_SERVER_CERTIFICATE +999 KEEPER_EXCEPTION +1000 POCO_EXCEPTION +1001 STD_EXCEPTION +1002 UNKNOWN_EXCEPTION +1003 SSH_EXCEPTION +1004 STARTUP_SCRIPTS_ERROR +1005 STALE_VERSION +1006 INVALID_CURSOR_LOOKUP +1007 ILLEGAL_STREAM +1008 TEMPORARY_DATA_NOT_IN_CACHE +1009 S3_OBJECT_CHANGED_DURING_READ +1010 UNIQUE_KEY_DENSE_INDEX_UNREADABLE +1011 HANDLER_ALREADY_EXISTS +1012 HANDLER_DOESNT_EXIST +1013 AMBIGUOUS_HANDLER +1014 TRANSACTION_ROLLBACK_PARTIAL_FAILURE +1015 FILE_CHANGED_DURING_READ +1016 TABLE_SIZE_LIMIT_EXCEEDED +1017 ASYNC_INSERT_FLUSH_TIMEOUT +1018 EXCHANGE_PEER_DISCONNECTED +1019 QUERY_SLOT_ACQUISITION_TIMEOUT +1020 MEMORY_RESERVATION_ACQUISITION_TIMEOUT +1021 AZURE_OBJECT_CHANGED_DURING_READ +1022 SEMI_ANTI_JOIN_COLUMN_ACCESS_DENIED +1023 XGBOOST_ERROR +1024 BUZZHOUSE_ORACLE diff --git a/tests/clickhouse-client/src/test/java/com/clickhouse/client/cli/CliOptionsTest.java b/tests/clickhouse-client/src/test/java/com/clickhouse/client/cli/CliOptionsTest.java new file mode 100644 index 000000000..8eea9133e --- /dev/null +++ b/tests/clickhouse-client/src/test/java/com/clickhouse/client/cli/CliOptionsTest.java @@ -0,0 +1,189 @@ +package com.clickhouse.client.cli; + +import org.apache.commons.cli.ParseException; +import org.testng.annotations.DataProvider; +import org.testng.annotations.Test; + +import java.io.ByteArrayOutputStream; +import java.io.PrintStream; +import java.nio.charset.StandardCharsets; +import java.util.Arrays; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.Map; + +import static org.testng.Assert.assertEquals; +import static org.testng.Assert.assertFalse; +import static org.testng.Assert.assertNull; +import static org.testng.Assert.assertThrows; +import static org.testng.Assert.assertTrue; + +public class CliOptionsTest { + + @Test + public void testSqlTestCommandLine() throws ParseException { + // The command line that tests/clickhouse-test uses for a .sql test. + CliOptions o = CliOptions.parse(new String[] { + "--host=127.0.0.1", "--port=9000", "--no-secure", "--database=test_abc", + "--send_logs_level=warning", "--multiquery", "--log_comment", "00001_select_1.sql-test_abc", + "--max_block_size=1", "--allow_repeated_settings", "--client_logs_file=/tmp/x-fatal", + "--param_CLICKHOUSE_DATABASE=test_abc"}); + assertEquals(o.host, "127.0.0.1"); + assertEquals(o.port, Integer.valueOf(9000)); + assertEquals(o.database, "test_abc"); + assertFalse(o.secure); + assertNull(o.query); + Map settings = new LinkedHashMap<>(); + settings.put("send_logs_level", "warning"); + settings.put("log_comment", "00001_select_1.sql-test_abc"); + assertEquals(o.settings, settings); + assertEquals(o.settings.keySet().toArray(), new String[] {"send_logs_level", "log_comment"}); + Map params = new HashMap<>(); + params.put("CLICKHOUSE_DATABASE", "test_abc"); + assertEquals(o.params, params); + } + + @Test + public void testFeatureTagOverrides() throws ParseException { + // tests/clickhouse-test adds these for the tags no-parallel-replicas and no-async-insert. + CliOptions o = CliOptions.parse(new String[] { + "--database=test_abc", "--multiquery", "--enable_parallel_replicas", "0", "--async_insert", "0", + "--max_block_size=1"}); + Map settings = new LinkedHashMap<>(); + settings.put("enable_parallel_replicas", "0"); + settings.put("async_insert", "0"); + assertEquals(o.settings, settings); + } + + @Test + public void testShortOptions() throws ParseException { + CliOptions o = CliOptions.parse(new String[] {"-h", "db", "-u", "me", "-d", "x", "-q", "SELECT 1", "-n", "-s", "-x"}); + assertEquals(o.host, "db"); + assertEquals(o.user, "me"); + assertEquals(o.database, "x"); + assertEquals(o.query, "SELECT 1"); + assertTrue(o.secure); + } + + @Test + public void testSettingValues() throws ParseException { + CliOptions o = CliOptions.parse(new String[] {"--max_threads", "-1", "--max-insert-threads", "2", "--query=SELECT 1"}); + Map settings = new HashMap<>(); + settings.put("max_threads", "-1"); + settings.put("max_insert_threads", "2"); + assertEquals(o.settings, settings); + assertEquals(o.query, "SELECT 1"); + } + + @Test + public void testErrors() { + assertThrows(ParseException.class, () -> CliOptions.parse(new String[] {"--port=abc"})); + assertThrows(ParseException.class, () -> CliOptions.parse(new String[] {"--query"})); + } + + @DataProvider + public Object[][] passwordArgv() { + return new Object[][] { + {new String[] {"--user", "u", "--password", "secret", "--password=secret2", "--query", "SELECT 1", + "--password"}, + new String[] {"--user", "u", "--password", "***", "--password=***", "--query", "SELECT 1", + "--password"}}, + // Each --password hides the next argument, also when that argument is a --password. (The parser + // rejects this command line: -u has no value. The log still hides x.) + {new String[] {"-u", "--password", "--password", "x"}, + new String[] {"-u", "--password", "***", "***"}}, + // The parser drops the unknown short options, and takes the next argument after them. + {new String[] {"--password", "-x", "-y", "secret", "--query", "SELECT 1"}, + new String[] {"--password", "***", "***", "***", "--query", "SELECT 1"}}, + // -s is a known option, so the parser keeps it: the hidden arguments stop there. + {new String[] {"--password", "-s", "-q", "SELECT 1"}, + new String[] {"--password", "***", "-q", "SELECT 1"}}, + // After the unknown option --p, the parser also reads -password as the password option. + {new String[] {"--p", "-password", "secret", "-password=s2", "-passwords3"}, + new String[] {"--p", "-password", "***", "-password=***", "-password***"}}, + }; + } + + @Test(dataProvider = "passwordArgv") + public void testRedactPassword(String[] argv, String[] expected) { + String[] copy = argv.clone(); + assertEquals(CliOptions.redactPassword(argv), expected); + assertEquals(argv, copy); + } + + @DataProvider + public Object[][] parsedPasswords() { + return new Object[][] { + {new String[] {"--password", "secret", "--query", "SELECT 1"}, "secret"}, + {new String[] {"--password=secret", "--query", "SELECT 1"}, "secret"}, + {new String[] {"--password", "-x", "secret"}, "secret"}, + {new String[] {"--log_comment", "--password", "secret"}, "secret"}, + {new String[] {"--password", "-5"}, "-5"}, + {new String[] {"--p", "-password", "secret"}, "secret"}, + {new String[] {"--p=1", "-password=secret"}, "secret"}, + {new String[] {"--p=1", "-passwordsecret"}, "secret"}, + }; + } + + /** The redacted arguments do not contain the password that the parser takes. */ + @Test(dataProvider = "parsedPasswords") + public void testRedactPasswordHidesTheParsedPassword(String[] argv, String password) throws ParseException { + assertEquals(CliOptions.parse(argv).password, password); + String logged = String.join(" ", CliOptions.redactPassword(argv)); + assertFalse(logged.contains(password), logged); + } + + @Test + public void testHttpPort() { + Map env = new HashMap<>(); + assertEquals(Main.httpPort(null, false, env::get), 8123); + assertEquals(Main.httpPort(9000, false, env::get), 8123); + assertEquals(Main.httpPort(18123, false, env::get), 18123); + assertEquals(Main.httpPort(9440, true, env::get), 8443); + env.put("CLICKHOUSE_PORT_TCP", "19000"); + env.put("CLICKHOUSE_PORT_HTTP", "18124"); + assertEquals(Main.httpPort(19000, false, env::get), 18124); + assertEquals(Main.httpPort(9000, false, env::get), 9000); + } + + @Test + public void testExtractFromConfig() { + ByteArrayOutputStream out = new ByteArrayOutputStream(); + PrintStream err = new PrintStream(new ByteArrayOutputStream()); + assertEquals(Main.run(new String[] {"extract-from-config", "--try", "--config", "x.xml", "--key", "listen_host"}, + null, out, err, name -> null), 0); + assertEquals(new String(out.toByteArray(), StandardCharsets.UTF_8), "127.0.0.1\n"); + out.reset(); + assertEquals(Main.run(new String[] {"extract-from-config", "--key=tcp_port"}, null, out, err, name -> null), 0); + assertEquals(out.size(), 0); + } + + @DataProvider + public Object[][] useStatements() { + return new Object[][] { + {"USE db1;", "db1"}, + {"use `my db`", "my db"}, + {"-- c\nUSE DATABASE db2", "db2"}, + {"USE {CLICKHOUSE_DATABASE:Identifier};", "test_x"}, + {"USE \"db3\"", "db3"}, + {"USE db1, db2", null}, + }; + } + + @Test(dataProvider = "useStatements") + public void testParseUseDatabase(String sql, String expected) { + Map params = new HashMap<>(); + params.put("CLICKHOUSE_DATABASE", "test_x"); + assertEquals(Runner.parseUseDatabase(sql, params), expected); + } + + @Test + public void testParseSetAssignments() { + Map expected = new LinkedHashMap<>(); + expected.put("dialect", "kusto"); + expected.put("max_threads", "1"); + expected.put("x", "(1, 2)"); + assertEquals(Runner.parseSetAssignments("SET dialect = 'kusto', max_threads=1, x = (1, 2);"), expected); + assertEquals(Runner.parseSetAssignments("SET a = 'x,y'").keySet().toArray(), Arrays.asList("a").toArray()); + } +} diff --git a/tests/clickhouse-client/src/test/java/com/clickhouse/client/cli/LiveTest.java b/tests/clickhouse-client/src/test/java/com/clickhouse/client/cli/LiveTest.java new file mode 100644 index 000000000..39e50b720 --- /dev/null +++ b/tests/clickhouse-client/src/test/java/com/clickhouse/client/cli/LiveTest.java @@ -0,0 +1,295 @@ +package com.clickhouse.client.cli; + +import org.testng.SkipException; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.DataProvider; +import org.testng.annotations.Test; + +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.PrintStream; +import java.net.URI; +import java.net.URLEncoder; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import java.nio.file.Files; +import java.nio.file.Path; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.UUID; + +import static org.testng.Assert.assertEquals; +import static org.testng.Assert.assertFalse; +import static org.testng.Assert.assertNotEquals; +import static org.testng.Assert.assertTrue; + +/** + * Tests against a ClickHouse server: {@code CLICKHOUSE_CLIENT_CLI_LIVE=1}, and the server at + * {@code CLICKHOUSE_CLIENT_CLI_LIVE_HOST} (default localhost), HTTP port 8123. + */ +public class LiveTest { + + private static final String[] BACKENDS = {"client", "jdbc"}; + private String host; + + @BeforeClass + public void requireLive() { + if (!"1".equals(System.getenv("CLICKHOUSE_CLIENT_CLI_LIVE"))) { + throw new SkipException("set CLICKHOUSE_CLIENT_CLI_LIVE=1 to run the tests against a ClickHouse server"); + } + String h = System.getenv("CLICKHOUSE_CLIENT_CLI_LIVE_HOST"); + host = h == null || h.isEmpty() ? "localhost" : h; + } + + /** Returns the server's own TabSeparated text for a query. */ + private String serverTsv(String query) throws Exception { + URI uri = URI.create("http" + "://" + host + ":8123/?default_format=TabSeparated&query=" + + URLEncoder.encode(query, StandardCharsets.UTF_8)); + HttpResponse res = HttpClient.newHttpClient() + .send(HttpRequest.newBuilder(uri).GET().build(), HttpResponse.BodyHandlers.ofByteArray()); + String body = new String(res.body(), StandardCharsets.UTF_8); + assertEquals(res.statusCode(), 200, body); + return body; + } + + private static final class ShimResult { + final String stdout; + final String stderr; + final int code; + + ShimResult(String stdout, String stderr, int code) { + this.stdout = stdout; + this.stderr = stderr; + this.code = code; + } + } + + private ShimResult runShim(String backend, String query, String... extraArgs) { + return runShim(backend, new HashMap<>(), query, extraArgs); + } + + private ShimResult runShim(String backend, Map env, String query, String... extraArgs) { + env.put(Main.IMPL_ENV, backend); + ByteArrayOutputStream out = new ByteArrayOutputStream(); + ByteArrayOutputStream err = new ByteArrayOutputStream(); + List args = new ArrayList<>(List.of("--host", host, "--query", query)); + args.addAll(List.of(extraArgs)); + int code = Main.run(args.toArray(new String[0]), + new ByteArrayInputStream(new byte[0]), out, new PrintStream(err, true), env::get); + return new ShimResult(new String(out.toByteArray(), StandardCharsets.UTF_8), + new String(err.toByteArray(), StandardCharsets.UTF_8), code); + } + + private static final String[] EXPRESSIONS = { + "toInt8(-1), toUInt8(255), toInt64(-9223372036854775808), toUInt64(18446744073709551615)", + "toInt16(-32768), toUInt16(65535), toInt32(-2147483648), toUInt32(4294967295)", + "toInt128(-170141183460469231731687303715884105728), toUInt256(115792089237316195423570985008687907853269984665640564039457584007913129639935)", + "arrayJoin([1e15, 1e21, 1.5e-7, 0.1 + 0.2, nan, inf, -inf, -0., 5e-324, 2.82879384806159e17])", + "toFloat32(0.1), toFloat32(3.4028235e38), toFloat32(-1e-7), toBFloat16(1.5)", + "toDecimal32(1.50, 2), toDecimal64(-0.001, 5), toDecimal128(100, 3), toDecimal256('1.5', 10), toDecimal32(0, 3)", + "'a\\tb\\\\c\\nd''e\\0\\b\\f\\v\\x01\\r', toFixedString('ab', 4), 'ünïcödé'", + "true, false, NULL, CAST(NULL AS Nullable(String)), toNullable(1)", + "toDate('2020-01-02'), toDate32('1900-01-01'), toDate32('2299-12-31'), toDateTime('2020-01-01 10:00:00', 'UTC')", + "toDateTime('2020-01-01 10:00:00', 'Asia/Tokyo'), toDateTime64('2020-01-01 00:00:00.120', 3), toDateTime64('2020-01-01 00:00:00', 9, 'Asia/Tokyo')", + "toDateTime64('2019-03-31 02:30:00.5', 1, 'Europe/Amsterdam'), toDateTime('1970-01-01 00:00:00', 'UTC'), toDateTime64('1900-01-01 00:00:00.123456', 6, 'UTC')", + "toUUID('61f0c404-5cb3-11e7-907b-a6006ad3dba0'), toIPv4('1.2.3.4'), toIPv6('::ffff:1.2.3.4'), toIPv6('::1.2.3.4'), toIPv6('2001:db8::1'), toIPv6('::')", + "[1, 2], ['a''b', NULL], [[1], []], [toDate('2020-01-01')], [toDateTime64('2020-01-01 00:00:00.5', 2)], []", + "(1, 'x', NULL), CAST((1, 'x') AS Tuple(a Int32, b String)), [(1, 'a')], tuple(1)", + "map('k', 1, 'a', 2), map(1, [2]), map('x', map('y', 1)), map()", + "CAST('a' AS Enum8('a' = 1, 'b' = 2)), [CAST('b' AS Enum16('a' = 1, 'b' = 2))]", + "toLowCardinality('x'), toLowCardinality(toNullable('y')), [toLowCardinality('z')], toLowCardinality(CAST(NULL AS Nullable(String)))", + "(1.5, 2.5)::Point, [(1, 2), (3, 4)]::Ring", + // Time values that a java.sql.Time without a fraction holds (jdbc-v2): in [0, 24 h), fraction 0. + "toTime('12:34:56'), toTime64('10:10:10', 3), toTime64('23:59:59', 6), toTime('00:00:00')", + "readWKT('POINT (1.5 -2)'), readWKT('LINESTRING (1 2, 3 4)'), readWKT('POLYGON ((0 0, 1e-7 0, 1 1, 0 0))')", + "readWKT('MULTIPOLYGON (((0 0, 1 0, 1 1, 0 0)), ((5 5, 6 5, 5 5)))'), readWKT('MULTILINESTRING ((1 2, 3 4))'), [(1, 2)]::Ring::Geometry", + "CAST(NULL, 'Geometry'), [[]]::Polygon::Geometry", + // Values after year 9999: the server writes the bound. + "fromUnixTimestamp64Second(toInt64(1234567891011), 'UTC'), fromUnixTimestamp64Milli(toInt64(253402300800123), 'UTC'), fromUnixTimestamp64Second(toInt64(253402300799), 'Asia/Makassar'), fromDaysSinceYearZero32(2147483647), reinterpret(toInt64(9223372036854775807), 'DateTime64(3, \\'UTC\\')')", + "number, toString(number) FROM numbers(3)", + "toNullable(toUInt64(1)), [NULL, 1], [toNullable('a')], (NULL, 1)", + // A column or alias named `format` is not the FORMAT clause. + "1 AS format ORDER BY format DESC", + "1 AS format ORDER BY format ASC", + "format FROM (SELECT 1 AS format)", + "1 AS format FROM numbers(1)", + "1 FORMAT TSVWithNamesAndTypes", + "'a\\tb' AS `x y` FORMAT TSVRawWithNames", + }; + + /** + * Expressions for the client backend only: jdbc-v2 getObject() fails for Interval columns, gives Time and + * Time64 as java.sql.Time without the sign, the hours over 23 and the fraction, and gives dates before year 1 + * as java.sql.Date / java.sql.Timestamp without the era (known failures in allowlist.txt). + */ + private static final String[] CLIENT_ONLY_EXPRESSIONS = { + // Values before year 0: the server writes the bound. + "fromUnixTimestamp64Milli(toInt64(-62167219200877), 'UTC'), reinterpret(toInt64(-9223372036854775808), 'DateTime64(3, \\'UTC\\')'), fromDaysSinceYearZero32(0) - 1, fromUnixTimestamp64Second(toInt64(-62167219201), 'Asia/Makassar')", + "INTERVAL 3 DAY, toIntervalSecond(-5), toIntervalMonth(14), toIntervalWeek(2), toIntervalYear(1)", + "toIntervalNanosecond(5), toIntervalMicrosecond(-3), toIntervalMillisecond(7), toIntervalQuarter(2), toIntervalHour(25)", + "toTime('12:34:56'), toTime('-1:02:03'), toTime64('12:00:00.5', 3), toTime('100:00:00'), toTime64('00:00:01.1234567', 7)", + }; + + @DataProvider + public Object[][] expressions() { + List out = new ArrayList<>(); + for (String backend : BACKENDS) { + for (String e : EXPRESSIONS) { + out.add(new Object[] {backend, e}); + } + } + for (String e : CLIENT_ONLY_EXPRESSIONS) { + out.add(new Object[] {"client", e}); + } + return out.toArray(new Object[0][]); + } + + /** + * For each expression, the text that the shim writes from the values that the client decoded must be the same + * as the server's text. + */ + @Test(dataProvider = "expressions") + public void testRenderMatchesServer(String backend, String expr) throws Exception { + String query = "SELECT " + expr; + String expected = serverTsv(query); + ShimResult r = runShim(backend, query); + assertEquals(r.code, 0, r.stderr); + assertEquals(r.stdout, expected); + } + + @DataProvider + public Object[][] backends() { + return new Object[][] {{"client"}, {"jdbc"}}; + } + + /** SET and temporary tables last for the whole invocation, also after an error that a test hint expects. */ + @Test(dataProvider = "backends") + public void testSessionState(String backend) { + String script = String.join("\n", + "SET max_threads = 3;", + "SELECT throwIf(1); -- { serverError FUNCTION_THROW_IF_VALUE_IS_NON_ZERO }", + "SELECT getSetting('max_threads');", + "CREATE TEMPORARY TABLE t (x UInt8);", + "INSERT INTO t VALUES (1), (2);", + "INSERT INTO t FORMAT TSV", + "3", + "", + "SELECT sum(x) FROM t;", + "CREATE DATABASE IF NOT EXISTS clickhouse_client_cli_live;", + "USE clickhouse_client_cli_live;", + "SELECT currentDatabase();", + "DROP DATABASE clickhouse_client_cli_live;"); + ShimResult r = runShim(backend, script); + assertEquals(r.code, 0, r.stderr); + assertEquals(r.stdout, "3\n6\nclickhouse_client_cli_live\n"); + } + + @Test(dataProvider = "backends") + public void testErrors(String backend) { + // An unexpected error stops the script, writes the error name to stderr, and sets the exit code to the + // error code. + ShimResult r = runShim(backend, "SELECT 1; SELECT * FROM no_such_table_xyz; SELECT 2;"); + assertEquals(r.stdout, "1\n"); + assertEquals(r.code, 60); + assertTrue(r.stderr.contains("UNKNOWN_TABLE"), r.stderr); + + // A query that succeeds although the hint expects an error. + r = runShim(backend, "SELECT 1; -- { serverError UNKNOWN_TABLE }"); + assertNotEquals(r.code, 0); + assertTrue(r.stderr.contains("expected serverError UNKNOWN_TABLE"), r.stderr); + + // A different error than the hint expects. + r = runShim(backend, "SELECT * FROM no_such_table_xyz; -- { serverError SYNTAX_ERROR }"); + assertEquals(r.code, 60, r.stderr); + } + + /** + * The settings that tests/clickhouse-test adds for the tags no-async-insert and no-parallel-replicas go with each + * query, until the test sets them itself. + */ + @Test(dataProvider = "backends") + public void testFeatureTagOverrides(String backend) { + ShimResult r = runShim(backend, String.join("\n", + "SELECT getSetting('async_insert'), getSetting('enable_parallel_replicas');", + "SET async_insert = 1;", + "SELECT getSetting('async_insert');"), + "--async_insert", "0", "--enable_parallel_replicas", "0"); + assertEquals(r.code, 0, r.stderr); + assertEquals(r.stdout, "false\t0\ntrue\n"); + } + + /** EXPLAIN ... FORMAT Null prints the plan, except when the session sets ignore_format_null_for_explain = 0. */ + @Test(dataProvider = "backends") + public void testExplainFormatNull(String backend) throws Exception { + String plan = serverTsv("EXPLAIN SYNTAX SELECT 1"); + ShimResult r = runShim(backend, String.join("\n", + "EXPLAIN SYNTAX SELECT 1 FORMAT Null;", + "SET ignore_format_null_for_explain = 0;", + "EXPLAIN SYNTAX SELECT 1 FORMAT Null;", + "SELECT 2 FORMAT Null;", + "SET ignore_format_null_for_explain = true;", + "EXPLAIN SYNTAX SELECT 1 FORMAT Null;")); + assertEquals(r.code, 0, r.stderr); + assertEquals(r.stdout, plan + plan); + } + + @DataProvider + public Object[][] headerFormats() { + List out = new ArrayList<>(); + for (String backend : BACKENDS) { + // Contrast: TSVWithNames and TSVWithNamesAndTypes escape the header. + for (String format : new String[] {"TSVWithNames", "TSVWithNamesAndTypes", "TSVRawWithNames", + "TabSeparatedRawWithNamesAndTypes"}) { + out.add(new Object[] {backend, format}); + } + } + return out.toArray(new Object[0][]); + } + + /** The header of a Raw format has no escapes, as its rows. */ + @Test(dataProvider = "headerFormats") + public void testHeaderOfFormat(String backend, String format) throws Exception { + String query = "SELECT 1 AS `a\\tb\\\\c'd`, 'x' AS `é\\nf`, toDateTime(0, 'UTC') AS t FORMAT " + format; + String expected = serverTsv(query); + ShimResult r = runShim(backend, query); + assertEquals(r.code, 0, r.stderr); + assertEquals(r.stdout, expected); + } + + /** + * The invocation log does not contain the password. Only the log is checked: the server can refuse the password, + * and then the error also goes to the log. + */ + @Test(dataProvider = "backends") + public void testLogHidesPassword(String backend) throws Exception { + String password = "pw-" + UUID.randomUUID(); + Path logFile = Files.createTempFile("clickhouse-client-cli-", ".log"); + try { + Map env = new HashMap<>(); + env.put(InvocationLog.LOG_PATH_ENV, logFile.toString()); + runShim(backend, env, "SELECT 1", "--password", password + "-1"); + runShim(backend, env, "SELECT 1", "--password=" + password + "-2"); + runShim(backend, env, "SELECT 1", "--password", "-x", password + "-3"); + String log = new String(Files.readAllBytes(logFile), StandardCharsets.UTF_8); + assertFalse(log.contains(password), log); + assertTrue(log.contains("--password ***"), log); + assertTrue(log.contains("--password=***"), log); + // Each of the three invocations got to the backend. + assertEquals(log.split("\nimpl=" + backend + "\n", -1).length - 1, 3, log); + } finally { + Files.deleteIfExists(logFile); + } + } + + @Test(dataProvider = "backends") + public void testEcho(String backend) { + ShimResult r = runShim(backend, "SELECT 1; -- { echoOn }\nSELECT 2;\nSELECT 3 -- { echoOff }\n;\nSELECT 4\n"); + assertEquals(r.code, 0, r.stderr); + // The statement with the echoOn hint is echoed, the one with echoOff is not. + assertEquals(r.stdout, "SELECT 1; -- { echoOn }\n1\nSELECT 2;\n2\n3\n4\n"); + } +} diff --git a/tests/clickhouse-client/src/test/java/com/clickhouse/client/cli/StatementSplitterTest.java b/tests/clickhouse-client/src/test/java/com/clickhouse/client/cli/StatementSplitterTest.java new file mode 100644 index 000000000..f7bce83ff --- /dev/null +++ b/tests/clickhouse-client/src/test/java/com/clickhouse/client/cli/StatementSplitterTest.java @@ -0,0 +1,185 @@ +package com.clickhouse.client.cli; + +import org.testng.annotations.DataProvider; +import org.testng.annotations.Test; + +import java.util.Arrays; +import java.util.List; +import java.util.stream.Collectors; + +import static org.testng.Assert.assertEquals; +import static org.testng.Assert.assertFalse; +import static org.testng.Assert.assertTrue; + +public class StatementSplitterTest { + + private static List sqls(String text) { + return StatementSplitter.split(text).stream().map(s -> s.sql).collect(Collectors.toList()); + } + + @DataProvider + public Object[][] scripts() { + return new Object[][] { + {"SELECT 1", new String[] {"SELECT 1"}}, + {"SELECT 1;\nSELECT 2;\n", new String[] {"SELECT 1;", "SELECT 2;"}}, + {"SELECT 'a;b'; SELECT 2", new String[] {"SELECT 'a;b';", "SELECT 2"}}, + {"SELECT 'a\\';b'; SELECT 2", new String[] {"SELECT 'a\\';b';", "SELECT 2"}}, + {"SELECT 'a'';b'; SELECT 2", new String[] {"SELECT 'a'';b';", "SELECT 2"}}, + {"SELECT 1 AS `a;b`; SELECT 2", new String[] {"SELECT 1 AS `a;b`;", "SELECT 2"}}, + {"SELECT 1 -- a;b\n; SELECT 2", new String[] {"SELECT 1 -- a;b\n;", "SELECT 2"}}, + {"SELECT /* a;b */ 1; SELECT 2", new String[] {"SELECT /* a;b */ 1;", "SELECT 2"}}, + {"SELECT /* a /* b; */ c; */ 1; SELECT 2", new String[] {"SELECT /* a /* b; */ c; */ 1;", "SELECT 2"}}, + {"SELECT $$a;'b$$; SELECT $x$;$x$", new String[] {"SELECT $$a;'b$$;", "SELECT $x$;$x$"}}, + {"SELECT 1;\n-- the end\n", new String[] {"SELECT 1;"}}, + {" \n-- only a comment\n", new String[] {}}, + // The tags header is skipped. + {"-- Tags: no-fasttest\n-- Tag no-fasttest: reason\n\nSELECT 1;", new String[] {"SELECT 1;"}}, + // A leading comment stays with its statement. + {"SELECT 1;\n-- next\nSELECT 2;", new String[] {"SELECT 1;", "-- next\nSELECT 2;"}}, + // The inline data of an INSERT ends at an empty line. + {"INSERT INTO t FORMAT CSV\n1,'a;b'\n2,c;\n\nSELECT 1;", + new String[] {"INSERT INTO t FORMAT CSV\n1,'a;b'\n2,c;", "SELECT 1;"}}, + {"INSERT INTO t FORMAT Values (1);\nSELECT 1;", new String[] {"INSERT INTO t FORMAT Values (1);", "SELECT 1;"}}, + // The FORMAT of a SELECT is not INSERT data. + {"SELECT 1 FORMAT TSV;\nSELECT 2;", new String[] {"SELECT 1 FORMAT TSV;", "SELECT 2;"}}, + {"INSERT INTO t SELECT format FROM s;\nSELECT 1;", new String[] {"INSERT INTO t SELECT format FROM s;", "SELECT 1;"}}, + {"INSERT INTO t SELECT x FROM input('x UInt8') FORMAT TSV\n1;\n2\n\nSELECT 1;", + new String[] {"INSERT INTO t SELECT x FROM input('x UInt8') FORMAT TSV\n1;\n2", "SELECT 1;"}}, + {"INSERT INTO t SELECT 1 AS format FROM numbers(1);\nSELECT 1;", + new String[] {"INSERT INTO t SELECT 1 AS format FROM numbers(1);", "SELECT 1;"}}, + {"INSERT INTO t SELECT format x FROM s;\nSELECT 1;", new String[] {"INSERT INTO t SELECT format x FROM s;", "SELECT 1;"}}, + {"INSERT INTO t SELECT format DIV 2 FROM s;\nSELECT 1;", new String[] {"INSERT INTO t SELECT format DIV 2 FROM s;", "SELECT 1;"}}, + // A FROM in a heredoc is not the FROM of the SELECT. + {"INSERT INTO t SELECT $$a FROM b$$, format x FROM s;\nSELECT 1;", + new String[] {"INSERT INTO t SELECT $$a FROM b$$, format x FROM s;", "SELECT 1;"}}, + {"INSERT INTO t SELECT x FROM s WHERE format GLOBAL IN (1);\nSELECT 1;", + new String[] {"INSERT INTO t SELECT x FROM s WHERE format GLOBAL IN (1);", "SELECT 1;"}}, + {"INSERT INTO t (a) SETTINGS async_insert = 0 FORMAT CSV\n1\n\nSELECT 1;", + new String[] {"INSERT INTO t (a) SETTINGS async_insert = 0 FORMAT CSV\n1", "SELECT 1;"}}, + {"SELECT 1;;\nSELECT 2", new String[] {"SELECT 1;", "SELECT 2"}}, + }; + } + + @Test(dataProvider = "scripts") + public void testSplit(String text, String[] expected) { + assertEquals(sqls(text), Arrays.asList(expected)); + } + + @Test + public void testTrailingHint() { + List stmts = StatementSplitter.split( + "SELECT throwIf(1); -- { serverError FUNCTION_THROW_IF_VALUE_IS_NON_ZERO }\nSELECT 2;"); + assertEquals(stmts.size(), 2); + assertEquals(stmts.get(0).full, "SELECT throwIf(1); -- { serverError FUNCTION_THROW_IF_VALUE_IS_NON_ZERO }"); + assertEquals(stmts.get(0).hint.serverErrors, Arrays.asList(395)); + assertFalse(stmts.get(1).hint.expectsError()); + } + + @Test + public void testHintOnNextLineIsLeading() { + // clickhouse-client takes only the same-line comment as the trailing comment. A hint on the next line is a + // leading comment of the next statement, and an error hint in a leading comment is ignored. + List stmts = StatementSplitter.split("SELECT 1;\n-- { serverError 60 }\nSELECT 2;"); + assertEquals(stmts.size(), 2); + assertFalse(stmts.get(0).hint.expectsError()); + assertFalse(stmts.get(1).hint.expectsError()); + } + + @Test + public void testHintInsideStatement() { + List stmts = StatementSplitter.split("SELECT x -- { serverError UNKNOWN_IDENTIFIER }\n;"); + assertEquals(stmts.size(), 1); + assertEquals(stmts.get(0).hint.serverErrors, Arrays.asList(47)); + } + + @Test + public void testEcho() { + List stmts = StatementSplitter.split("SELECT 1;\n-- { echoOn }\nSELECT 2; -- two\nSELECT 3;\n" + + "-- { echoOff }\nSELECT 4;\nSELECT 5; -- { echo }\n"); + assertEquals(stmts.size(), 5); + assertEquals(stmts.stream().map(s -> s.echo).collect(Collectors.toList()), + Arrays.asList(false, true, true, false, true)); + assertEquals(stmts.get(1).full, "-- { echoOn }\nSELECT 2; -- two"); + } + + @Test + public void testLeadingKeyword() { + assertEquals(SqlText.leadingKeyword(" -- c\n/* d */ (select 1)"), "SELECT"); + assertEquals(SqlText.leadingKeyword("insert into t values (1)"), "INSERT"); + assertEquals(SqlText.leadingKeyword("-- only a comment"), ""); + } + + @DataProvider + public Object[][] topLevelWords() { + return new Object[][] { + {"SELECT a, 'b c', `d`, \"e\", $$f g$$, $t$h$t$ -- i\nFROM (SELECT j) /* k */", "SELECT a FROM"}, + {"INSERT INTO t SELECT $$x FROM y$$ FROM s", "INSERT INTO t SELECT FROM s"}, + // A $ that does not start a heredoc. + {"SELECT a$b$c, $1 FROM t", "SELECT a b c 1 FROM t"}, + }; + } + + @Test(dataProvider = "topLevelWords") + public void testTopLevelWords(String sql, String expected) { + assertEquals(String.join(" ", SqlText.topLevelWords(sql)), expected, sql); + } + + @Test + public void testKeepsSemicolon() { + // clickhouse-client sends the semicolon; system.query_log shows it. + List stmts = StatementSplitter.split("SELECT 1; -- c\nSELECT 2\n"); + assertEquals(stmts.size(), 2); + assertEquals(stmts.get(0).sql, "SELECT 1;"); + assertEquals(stmts.get(1).sql, "SELECT 2"); + } + + @Test + public void testEchoOfLastStatementWithoutSemicolon() { + // clickhouse-client echoes the rest of the text, with the newlines. + List stmts = StatementSplitter.split("SELECT 1;\nSELECT 2\n\n"); + assertEquals(stmts.size(), 2); + assertEquals(stmts.get(0).full, "SELECT 1;"); + assertEquals(stmts.get(1).full, "SELECT 2\n\n"); + assertEquals(stmts.get(1).sql, "SELECT 2"); + } + + @DataProvider + public Object[][] outputFormats() { + return new Object[][] { + {"SELECT 1", "TabSeparated", true}, + {"SELECT 1 FORMAT TSV", "TSV", true}, + {"SELECT 1 FORMAT TSVWithNames SETTINGS max_threads = 1", "TSVWithNames", true}, + {"SELECT 1 FORMAT JSONEachRow", "JSONEachRow", false}, + {"SELECT 'FORMAT JSON'", "TabSeparated", true}, + {"SELECT * FROM (SELECT 1 FORMAT JSON)", "TabSeparated", true}, + {"SELECT t.format FROM t", "TabSeparated", true}, + {"SELECT 1 FORMAT null", "null", true}, + {"SELECT 1 FORMAT TSVRaw", "TSVRaw", true}, + {"SELECT 1 FORMAT `Null`;", "Null", true}, + // FORMAT as an identifier, not the clause. + {"SELECT format FROM t", "TabSeparated", true}, + {"SELECT x AS format FROM t WHERE format = 1", "TabSeparated", true}, + {"SELECT 1 AS format FROM numbers(1)", "TabSeparated", true}, + {"SELECT format FROM (SELECT 1 AS format)", "TabSeparated", true}, + {"SELECT 1 AS format", "TabSeparated", true}, + {"SELECT 1 AS format ORDER BY format DESC", "TabSeparated", true}, + {"SELECT 1 AS format ORDER BY format ASC", "TabSeparated", true}, + {"SELECT 1 AS format ORDER BY format DESC FORMAT TSV", "TSV", true}, + {"SELECT 1 FORMAT TSV -- c\n;", "TSV", true}, + }; + } + + @Test(dataProvider = "outputFormats") + public void testOutputFormat(String sql, String name, boolean supported) { + OutputFormat f = OutputFormat.of(sql); + assertEquals(f.name, name, sql); + assertEquals(f.supported, supported, sql); + } + + @Test + public void testOutputFormatFlags() { + OutputFormat f = OutputFormat.of("SELECT 1 FORMAT TabSeparatedRawWithNamesAndTypes"); + assertTrue(f.raw && f.names && f.types && !f.discard); + assertTrue(OutputFormat.of("SELECT 1 FORMAT Null").discard); + } +} diff --git a/tests/clickhouse-client/src/test/java/com/clickhouse/client/cli/TestHintTest.java b/tests/clickhouse-client/src/test/java/com/clickhouse/client/cli/TestHintTest.java new file mode 100644 index 000000000..618c4b957 --- /dev/null +++ b/tests/clickhouse-client/src/test/java/com/clickhouse/client/cli/TestHintTest.java @@ -0,0 +1,75 @@ +package com.clickhouse.client.cli; + +import org.testng.annotations.DataProvider; +import org.testng.annotations.Test; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import static org.testng.Assert.assertEquals; +import static org.testng.Assert.assertFalse; +import static org.testng.Assert.assertNotNull; +import static org.testng.Assert.assertNull; +import static org.testng.Assert.assertTrue; + +public class TestHintTest { + + private static final List NONE = Collections.emptyList(); + + @DataProvider + public Object[][] hints() { + return new Object[][] { + {"SELECT 1; -- { serverError UNKNOWN_TABLE }", Arrays.asList(60), NONE}, + {"SELECT 1; -- { serverError 60 }", Arrays.asList(60), NONE}, + {"SELECT 1; -- { serverError 153, ILLEGAL_DIVISION }", Arrays.asList(153, 153), NONE}, + {"SELECT; -- { clientError SYNTAX_ERROR }", NONE, Arrays.asList(62)}, + {"SELECT 1; -- { error 62 }", Arrays.asList(62), Arrays.asList(62)}, + {"SELECT 1 /* { serverError 60 } */;", Arrays.asList(60), NONE}, + {"SELECT 1; -- { serverError 60 } because there is no table", Arrays.asList(60), NONE}, + // A hint in a leading comment is ignored. + {"-- { serverError 60 }\nSELECT 1;", NONE, NONE}, + // Braces in a string are not a hint. + {"SELECT '-- { serverError 60 }';", NONE, NONE}, + {"SELECT 1; -- a comment", NONE, NONE}, + }; + } + + @Test(dataProvider = "hints") + public void testParse(String text, List server, List client) { + TestHint h = TestHint.parse(text); + assertNull(h.parseError); + assertEquals(h.serverErrors, server); + assertEquals(h.clientErrors, client); + } + + @Test + public void testParseErrors() { + assertNotNull(TestHint.parse("SELECT 1; -- { serverError NOT_A_REAL_ERROR_NAME }").parseError); + assertNotNull(TestHint.parse("SELECT 1; -- { retry 3 until serverError 60 }").parseError); + } + + @Test + public void testMatches() { + TestHint h = TestHint.parse("SELECT; -- { clientError SYNTAX_ERROR }"); + // Through the Java client the server finds syntax errors. + assertTrue(h.matches(62)); + assertFalse(h.matches(60)); + assertEquals(h.label(), "clientError SYNTAX_ERROR"); + } + + @Test + public void testEcho() { + TestHint h = TestHint.parse("-- { echoOn }\nSELECT 1;"); + assertEquals(h.echo, Boolean.TRUE); + h = TestHint.parse("SELECT 1; -- { echoOff }"); + assertEquals(h.echo, Boolean.FALSE); + } + + @Test + public void testErrorCodes() { + assertEquals(ErrorCodes.code("UNKNOWN_TABLE"), Integer.valueOf(60)); + assertEquals(ErrorCodes.name(395), "FUNCTION_THROW_IF_VALUE_IS_NON_ZERO"); + assertNull(ErrorCodes.code("NOT_A_REAL_ERROR_NAME")); + } +} diff --git a/tests/clickhouse-client/src/test/java/com/clickhouse/client/cli/TsvRendererTest.java b/tests/clickhouse-client/src/test/java/com/clickhouse/client/cli/TsvRendererTest.java new file mode 100644 index 000000000..3f38465b4 --- /dev/null +++ b/tests/clickhouse-client/src/test/java/com/clickhouse/client/cli/TsvRendererTest.java @@ -0,0 +1,264 @@ +package com.clickhouse.client.cli; + +import com.clickhouse.client.api.data_formats.internal.BinaryStreamReader; +import org.testng.annotations.DataProvider; +import org.testng.annotations.Test; + +import java.math.BigDecimal; +import java.math.BigInteger; +import java.net.InetAddress; +import java.sql.Timestamp; +import java.time.Duration; +import java.time.Instant; +import java.time.LocalDate; +import java.time.LocalDateTime; +import java.time.Period; +import java.time.ZoneId; +import java.time.ZoneOffset; +import java.time.ZonedDateTime; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.UUID; + +import static org.testng.Assert.assertEquals; +import static org.testng.Assert.assertThrows; + +public class TsvRendererTest { + + @DataProvider + public Object[][] doubles() { + double a = 0.1; + double b = 0.2; + // The expected text is what ClickHouse 26.10 writes for FORMAT TSV. + return new Object[][] { + {1e15, "1000000000000000"}, + {1e20, "100000000000000000000"}, + {1e21, "1e21"}, + {1.2345e21, "1.2345e21"}, + {1.2345e20, "123450000000000000000"}, + {0.0001, "0.0001"}, + {1e-6, "0.000001"}, + {1.5e-6, "0.0000015"}, + {1e-7, "1e-7"}, + {1.5e-7, "1.5e-7"}, + {1.5e300, "1.5e300"}, + {a + b, "0.30000000000000004"}, + {5e-324, "5e-324"}, + {-12345678.9, "-12345678.9"}, + {100.0, "100"}, + {Double.NaN, "nan"}, + {Double.POSITIVE_INFINITY, "inf"}, + {Double.NEGATIVE_INFINITY, "-inf"}, + {-0.0, "-0"}, + {0.0, "0"}, + // Double.toString of JDK 17 gives 2.82879384806159008E17 (not the shortest text). + {2.82879384806159E17, "282879384806159000"}, + {1.0E23, "1e23"}, + {2.0E-3, "0.002"}, + }; + } + + @Test(dataProvider = "doubles") + public void testFormatDouble(double in, String expected) { + assertEquals(FloatFormat.formatDouble(in), expected); + } + + @DataProvider + public Object[][] floats() { + return new Object[][] { + {0.1f, "0.1"}, + {3.4028235e38f, "3.4028235e38"}, + {16777216f, "16777216"}, + {1.5f, "1.5"}, + {-0.0f, "-0"}, + {Float.NaN, "nan"}, + {1e-7f, "1e-7"}, + }; + } + + @Test(dataProvider = "floats") + public void testFormatFloat(float in, String expected) { + assertEquals(FloatFormat.formatFloat(in), expected); + } + + @DataProvider + public Object[][] ipv6() { + return new Object[][] { + {"::ffff:1.2.3.4", "::ffff:1.2.3.4"}, + {"::1.2.3.4", "::1.2.3.4"}, + {"::", "::"}, + {"::1", "::1"}, + {"2001:db8::1", "2001:db8::1"}, + {"1::", "1::"}, + {"2001:db8:0:1::1", "2001:db8:0:1::1"}, + {"1:0:0:2:0:0:0:3", "1:0:0:2::3"}, + {"1:2:3:4:5:6:7:8", "1:2:3:4:5:6:7:8"}, + }; + } + + @Test(dataProvider = "ipv6") + public void testFormatIPv6(String in, String expected) throws Exception { + byte[] b = InetAddress.getByName(in).getAddress(); + if (b.length == 4) { + // An IPv4-mapped address: InetAddress gives the IPv4 address. + assertEquals(render("IPv6", InetAddress.getByName(in)), expected); + return; + } + assertEquals(TsvRenderer.formatIPv6(b), expected); + } + + @DataProvider + public Object[][] typeNames() { + return new Object[][] { + {"UInt8"}, + {"Nullable(String)"}, + {"Array(Nullable(DateTime64(3, 'UTC')))"}, + {"Map(String, Array(Tuple(UInt8, String)))"}, + {"Tuple(a Int32, b String)"}, + {"Enum8('a' = 1, 'b,c' = 2)"}, + {"Decimal(9, 2)"}, + {"LowCardinality(Nullable(String))"}, + {"SimpleAggregateFunction(sum, UInt64)"}, + {"AggregateFunction(quantiles(0.5, 0.9), UInt64)"}, + }; + } + + @Test(dataProvider = "typeNames") + public void testParseType(String name) { + assertEquals(ChType.parse(name).toString(), name); + } + + @Test + public void testParseSimpleAggregateFunctionType() { + // The last argument is the value type, also for the types that the renderer does not write. + ChType t = ChType.parse("SimpleAggregateFunction(anyLast, JSON)"); + assertEquals(t.typeArg(1).base, "JSON"); + assertEquals(t.args.get(0).literal, "anyLast"); + } + + @Test + public void testParseNamedTuple() { + ChType t = ChType.parse("Tuple(`a b` Int32, c Array(String))"); + assertEquals(t.args.size(), 2); + assertEquals(t.args.get(0).name, "a b"); + assertEquals(t.args.get(1).name, "c"); + assertEquals(t.args.get(1).type.base, "Array"); + assertThrows(IllegalArgumentException.class, () -> ChType.parse("Array(String")); + } + + private static String render(String type, Object value) { + TsvOutput out = new TsvOutput(); + new TsvRenderer(type).render(out, value, false); + return out.toString(); + } + + @DataProvider + public Object[][] values() throws Exception { + ZonedDateTime utc = ZonedDateTime.of(2020, 1, 1, 0, 0, 0, 120_000_000, ZoneOffset.UTC); + Map map = new LinkedHashMap<>(); + map.put("k", (short) 1); + map.put("a", (short) 2); + return new Object[][] { + {"String", "a\tb\\c\nd'e\0\b\f\u0001", "a\\tb\\\\c\\nd\\'e\\0\\b\\f\u0001"}, + {"Nullable(String)", null, "\\N"}, + {"Nullable(String)", "x", "x"}, + {"Array(Nullable(String))", Arrays.asList("a'b", null), "['a\\'b',NULL]"}, + {"Tuple(UInt8, String, Nullable(UInt8))", new Object[] {(short) 1, "x", null}, "(1,'x',NULL)"}, + {"Tuple(a UInt8, b String)", new Object[] {(short) 1, "x"}, "(1,'x')"}, + {"Map(String, UInt8)", map, "{'k':1,'a':2}"}, + {"Int128", BigInteger.valueOf(-5), "-5"}, + {"UInt64", new BigInteger("18446744073709551615"), "18446744073709551615"}, + {"Decimal(9, 2)", new BigDecimal("1.50"), "1.5"}, + {"Decimal(9, 2)", new BigDecimal("0.00"), "0"}, + {"Decimal(38, 3)", new BigDecimal("100.000"), "100"}, + {"DateTime64(3)", utc, "2020-01-01 00:00:00.120"}, + {"DateTime('Asia/Tokyo')", utc.withZoneSameInstant(ZoneId.of("Asia/Tokyo")), "2020-01-01 09:00:00"}, + {"DateTime64(6)", Timestamp.valueOf(LocalDateTime.of(2020, 1, 1, 0, 0, 0, 5000)), "2020-01-01 00:00:00.000005"}, + {"Array(Date)", Collections.singletonList(LocalDate.of(2020, 1, 2)), "['2020-01-02']"}, + {"Date32", java.sql.Date.valueOf(LocalDate.of(1900, 1, 1)), "1900-01-01"}, + // The server writes a Date32 / DateTime64 after year 9999 or before year 0 as the bound, with the + // fractional digits of the value. + {"Date32", LocalDate.of(5879610, 7, 12), "9999-12-31"}, + {"Date32", LocalDate.of(-1, 12, 31), "0000-01-01"}, + {"Date32", LocalDate.of(0, 1, 4), "0000-01-04"}, + {"DateTime64(3, 'UTC')", Instant.ofEpochSecond(1234567891011L, 123_000_000).atZone(ZoneOffset.UTC), + "9999-12-31 23:59:59.123"}, + {"DateTime64(3, 'UTC')", Instant.ofEpochSecond(-62167219201L, 123_000_000).atZone(ZoneOffset.UTC), + "0000-01-01 00:00:00.123"}, + {"DateTime64(0, 'UTC')", Instant.ofEpochSecond(253402300799L).atZone(ZoneOffset.UTC), + "9999-12-31 23:59:59"}, + {"DateTime64(0, 'Asia/Makassar')", + Instant.ofEpochSecond(253402300799L).atZone(ZoneId.of("Asia/Makassar")), "9999-12-31 23:59:59"}, + {"DateTime64(6)", Timestamp.valueOf(LocalDateTime.of(41091, 11, 25, 5, 16, 51, 5000)), + "9999-12-31 23:59:59.000005"}, + // client-v2 reads Time and Time64 as a LocalDateTime on 1970-01-01. + {"Time", LocalDateTime.ofEpochSecond(-3723, 0, ZoneOffset.UTC), "-01:02:03"}, + {"Time64(3)", LocalDateTime.ofEpochSecond(360000, 500_000_000, ZoneOffset.UTC), "100:00:00.500"}, + {"Time64(3)", LocalDateTime.ofEpochSecond(-2, 500_000_000, ZoneOffset.UTC), "-00:00:01.500"}, + // jdbc-v2 reads Time and Time64 as java.sql.Time, which holds milliseconds. + {"Time64(3)", new java.sql.Time(java.sql.Time.valueOf("10:10:10").getTime() + 111), "10:10:10.111"}, + {"Time64(6)", new java.sql.Time(java.sql.Time.valueOf("00:00:01").getTime() + 5), "00:00:01.005000"}, + {"Time", java.sql.Time.valueOf("23:59:59"), "23:59:59"}, + // The server writes a value above 999:59:59 as 999:59:59. + {"Time64(2)", Duration.ofHours(2160).plusSeconds(12), "999:59:59.00"}, + {"Time", Duration.ofHours(-2000), "-999:59:59"}, + {"UUID", UUID.fromString("61f0c404-5cb3-11e7-907b-a6006ad3dba0"), "61f0c404-5cb3-11e7-907b-a6006ad3dba0"}, + {"IPv4", InetAddress.getByName("1.2.3.4"), "1.2.3.4"}, + {"Array(IPv6)", Collections.singletonList(InetAddress.getByName("::ffff:1.2.3.4")), "['::ffff:1.2.3.4']"}, + {"Bool", true, "true"}, + {"Array(Float64)", new double[] {Double.NaN, Double.POSITIVE_INFINITY}, "[nan,inf]"}, + {"IntervalDay", Period.ofDays(3), "3"}, + {"IntervalWeek", Period.ofWeeks(2), "2"}, + {"IntervalSecond", Duration.ofSeconds(-5), "-5"}, + {"LowCardinality(String)", "a", "a"}, + {"SimpleAggregateFunction(sum, UInt64)", BigInteger.valueOf(7), "7"}, + {"Enum8('a' = 1, 'b' = 2)", new BinaryStreamReader.EnumValue("b", 2), "b"}, + {"Array(Enum8('a' = 1))", Collections.singletonList("a"), "['a']"}, + {"Point", new double[] {1.5, 2.5}, "(1.5,2.5)"}, + {"Ring", new double[][] {{1, 2}, {3, 4}}, "[(1,2),(3,4)]"}, + // A Geometry value is written as its active member, selected by the number of array dimensions. + {"Geometry", new double[] {1.5, 2}, "(1.5,2)"}, + {"Geometry", new double[][] {{1, 2}, {3, 4}}, "[(1,2),(3,4)]"}, + {"Geometry", new double[][][] {{{1, 2}, {3, 4}}, {}}, "[[(1,2),(3,4)],[]]"}, + {"Geometry", new double[][][][] {{{{0.5, 1e-7}}}}, "[[[(0.5,1e-7)]]]"}, + {"Geometry", new double[][][] {}, "[]"}, + {"Geometry", null, "\\N"}, + {"Variant(String, UInt64)", BigInteger.ONE, "1"}, + {"Array(Variant(String, UInt64))", Arrays.asList("a", BigInteger.ONE, null), "['a',1,NULL]"}, + {"Nothing", null, "\\N"}, + {"Nested(a UInt8, b String)", Collections.singletonList(new Object[] {(short) 1, "x"}), "[(1,'x')]"}, + }; + } + + @Test(dataProvider = "values") + public void testRender(String type, Object value, String expected) { + assertEquals(render(type, value), expected); + } + + @Test + public void testRenderRaw() { + TsvOutput out = new TsvOutput(); + new TsvRenderer("Nullable(String)").render(out, "a\tb", true); + assertEquals(out.toString(), "a\tb"); + } + + @Test + public void testRenderUnsupported() { + // A map without order cannot be written. + Map unordered = new HashMap<>(); + unordered.put("a", (short) 1); + unordered.put("b", (short) 2); + assertThrows(TsvRenderer.UnsupportedTypeException.class, () -> render("Map(String, UInt8)", unordered)); + assertThrows(TsvRenderer.UnsupportedTypeException.class, () -> render("Dynamic", 1)); + assertThrows(TsvRenderer.UnsupportedTypeException.class, () -> render("JSON", Collections.emptyMap())); + // A Java value that does not fit the type is an error, not a guess. + assertThrows(TsvRenderer.ValueMismatchException.class, () -> render("Float32", 1.5d)); + assertThrows(TsvRenderer.ValueMismatchException.class, () -> render("DateTime", LocalDate.of(2020, 1, 1))); + assertThrows(TsvRenderer.ValueMismatchException.class, () -> render("Tuple(UInt8, UInt8)", new Object[] {(short) 1})); + assertThrows(TsvRenderer.ValueMismatchException.class, () -> render("Geometry", "POINT (1 2)")); + assertThrows(TsvRenderer.ValueMismatchException.class, () -> render("Geometry", new double[][][][][] {})); + } +}