Skip to content

[tests] Run the ClickHouse core SQL tests through client-v2 and jdbc-v2 nightly in CI - #3389

Open
polyglotAI-bot wants to merge 9 commits into
mainfrom
polyglot/core-sql-tests
Open

polyglotAI-bot wants to merge 9 commits into
mainfrom
polyglot/core-sql-tests

Conversation

@polyglotAI-bot

@polyglotAI-bot polyglotAI-bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

This PR makes the existing harness in tests/clickhouse-client run the ClickHouse core SQL tests (tests/queries/0_stateless) through clickhouse-java, nightly in CI. The goal is to find client bugs: a failed test is information, so each failure has a cause, and each client bug is listed below. This PR does not fix client bugs.

Tracking issue: ClickHouse/integrations#808

The upstream runner tests/clickhouse-test starts clickhouse-client for each test and compares the output with the .reference file. The shim imitates clickhouse-client well enough for the runner to drive it without changes. It runs each statement through the public API of clickhouse-java, built from the source of this commit (never a released jar), reads each value with the normal type mapping, and writes the value as TabSeparated text itself. Thus the .reference files check the decoding of the client, not only the transport.

Backend Client Statements Values Column types
client client-v2 Client.query ClickHouseBinaryFormatReader.readValue(i) ClickHouseColumn.getOriginalTypeName()
jdbc jdbc-v2, through DriverManager Statement.execute ResultSet.getObject(i) ResultSetMetaData.getColumnTypeName(i)

Both backends use HTTP with one session_id for the whole invocation (SET, USE and temporary tables stay). The shim splits statements as ClientBase::executeMultiQuery does (inline data, FORMAT as an identifier, test hints after the ;), sends each statement with its ;, forwards only the command-line settings that clickhouse-client forwards and that the runner does not randomize, and maps error hints to codes with the error table of the pinned version. The design and the rules come from the Go harness (ClickHouse/clickhouse-go#2141).

Changes

  1. Shim (src/, pom.xml, bin/): the rewrite of the shim, its unit tests (splitter, hints, options, renderer) and live tests that compare the renderer with the server's FORMAT TSV output on both backends. commons-csv is removed: the type-directed renderer replaces it. The shim depends on the clickhouse-jdbc module of this repository. The JVM starts fast (C1, serial GC, a CDS archive, -Xmx384m).
  2. Scripts and version pin (clickhouse-version, scripts/): the server version and the upstream tests are pinned together (26.10.4.207); fetch-upstream.sh (sparse, shallow checkout of v<version>-stable, and the error code table), build.sh, run-upstream-tests.sh (shards, KNOWN_FAILURES=<id>, version check, optional RETRY_FAILED), run-with-real-client.sh (the same tests through the real clickhouse-client, for triage).
  3. Allowlist (allowlist.txt): the tests that pass, and the known failures in groups. Each group header gives the cause, a reproduction with the public API, Issue: not filed yet, the backends and the test count.
  4. Workflow (.github/workflows/upstream-sql-tests.yml): nightly, manual (input clickhouse_version to try another server version), and on pull requests and pushes to main that change tests/clickhouse-client/** or the workflow. One build job (the shim with its unit and live tests), then {client, jdbc} x 8 shards. The server image is the pinned version. permissions: contents: read.
  5. Documents: tests/clickhouse-client/README.md (local runs, how the shim imitates clickhouse-client, the allowlist format, how to grow the allowlist, CI, the version bump), tests/clickhouse-client/AGENTS.md (the triage rules, adapted from Go), CLAUDE.md (only @AGENTS.md), and one line in the root AGENTS.md.

The root AGENTS.md says: "Do not modify CI workflow files (.github/workflows/**). CI changes are restricted." This PR adds one new workflow file and changes no existing workflow, because the tracking issue asks for a nightly CI job. Please review the workflow with that rule in mind.

No library code changes. tests/clickhouse-client is a separate Maven project (not in the root reactor), so there is no CHANGELOG entry and no docs/features.md change. The diff is large mostly because of allowlist.txt (11,189 lines) and the generated error-codes.tsv (685 lines); the commits split it by part.

Results (server and tests 26.10.4.207)

Of 12,961 upstream .sql / .sql.j2 tests per backend:

client jdbc
running (allowlist) 10,163 10,053
of them on both backends 10,052 10,052
known=jdbc (runs on client only) 111 —
only=jdbc — 1
known failures (listed, in groups) 662 773
environment cause (not listed) 1,210 1,209
skipped by the runner (not listed) 926 926
  • Known failures: 773 distinct tests in 31 groups (25 client bugs, 6 shim gaps). No [untriaged] group.
  • only=jdbc: 00571_non_exist_database_when_create_materializ_view (on client, after the current database of the session is dropped, each HTTP request fails with UNKNOWN_DATABASE).
  • Environment causes (each checked with the real clickhouse-client on the same server): cluster, ZooKeeper, no totals and extremes in the HTTP output, named collections, server configuration, macros, storage policies, disks, and tests that pass alone but fail in a full run (server pipeline shape and total memory under load).
  • Checks: three full runs per backend on a fresh server at -j 6 (CI uses -j 4), without RETRY_FAILED. The final list had 0 failures on both backends. KNOWN_FAILURES=type-empty-tuple (client, 35 of 35 fail) and KNOWN_FAILURES=jdbc-interval-getobject (jdbc, 31 of 31 fail) give the error of the group header.
  • Run time: one full backend at -j 6 takes 20 to 23 minutes on a 32-CPU host. CI: 8 shards per backend, about 1,260 tests each, at -j 4. In the first CI run of this PR, each of the 16 shard jobs took 4.4 to 6.4 minutes (setup included), and the build job 2 minutes.

Client bugs found

Not fixed in this PR, and no issues filed: the maintainers decide. Each reproduction runs through the public API: for client, Client.query(sql) and ClickHouseBinaryFormatReader.readValue; for jdbc, Statement.execute(sql) and ResultSet.getObject. "Silent" means a wrong value or wrong rows without an error. Tests are per backend (client / jdbc).

Group Backends Silent Tests Reproduction Actual Expected
type-name-nullable both type name 73 / 73 SELECT CAST((1, 'a') AS Nullable(Tuple(UInt8, String))) (also Nullable(QBit(...)), Nullable(JSON(...))) type Nullable(Tuple(UInt8, String) Nullable(Tuple(UInt8, String))
type-empty-tuple both 35 / 34 SELECT tuple() "Tuple should have at least one nested column" ()
jdbc-time-as-sql-time jdbc yes 0 / 43 SELECT toTime64('10:10:10.111', 3), SELECT toTime('-01:02:03') 10:10:10, 22:57:57 (java.sql.Time) 10:10:10.111, -01:02:03
jdbc-use-database jdbc yes 0 / 35 USE DATABASE db1, then SELECT currentDatabase() default db1
jdbc-interval-getobject jdbc 0 / 31 SELECT INTERVAL 3 DAY "Failed to convert from java.time.Period to java.lang.Long" P3D
type-aggregate-function both 0 rows 15 / 15 SELECT uniqState(1); SELECT sumState(toUInt64(1)), 7 "Unknown aggregate function"; 0 rows the state; 1 row
jdbc-year-zero jdbc yes 0 / 17 SELECT makeDate32(0, 1, 2), SELECT makeDate32(1582, 10, 10) 0001-01-02, 1582-10-20 0000-01-02, 1582-10-10
time64-negative-fraction both (jdbc rows are in jdbc-time-as-sql-time) yes 12 / 0 SELECT toTime64('-00:00:01.5', 3) -00:00:00.500 -00:00:01.500
string-invalid-utf8 both yes 9 / 8 SELECT unhex('FF') U+FFFD byte FF
jdbc-array-in-variant jdbc 0 / 7 SELECT [[1, 2]::Variant(Array(UInt8), String), 'a'] "There is a child array at depth 0" the array
format-clause-ignored both rows 3 / 3 SELECT 1 AS x FORMAT Null 1 row no rows
type-json-shared-path both 0 rows 3 / 3 SELECT CAST('{"a":1}' AS JSON(SHARED a UInt64)) "Unknown data type: a UInt64" {"a":1}
map-duplicate-keys both yes 2 / 2 SELECT map(1, 'a', 1, 'b') {1=b} both entries
query-text-not-utf8 both (API limit) 2 / 2 query text with bytes that are not valid UTF-8 in a literal "Unrecognized token" the bytes go to the server unchanged
jdbc-duplicate-column-name jdbc yes 0 / 2 SELECT *, 'redefined' AS my_field FROM VALUES('my_field String', 'orig') redefined redefined orig redefined
type-enum-backslash both 1 / 1 SELECT CAST('a' AS Enum8('a' = 1, 'b\\' = 2)) NumberFormatException a
http-compress-memory both (default settings) 1 / 1 a query with max_memory_usage = 9830400 (01017) MEMORY_LIMIT_EXCEEDED (the response compression counts toward the query memory) the result
http-exception-in-stream both 1 / 1 a query that fails after the response started (02896) "Premature end of chunk coded message body" Code: 160 (TOO_SLOW)
json-decode both 1 / 1 SELECT materialize('{"a" : [[1, {}], null]}')::JSON "Missing nested data type" the value
json-as-string-setting both 0 rows 1 / 1 SET output_format_binary_write_json_as_string = 1, then SELECT '{"a":1}'::JSON, 7 0 rows 1 row
format-header-case both 1 / 1 SET compatibility = '23.3', then SELECT 1 FORMAT NULL "No enum constant ...NULL" (X-ClickHouse-Format is parsed case-sensitively) no error
variant-member-order both 0 rows 1 / 1 SELECT CAST('s' AS Variant(LowCardinality(String), Map(String, String))), 'x' 0 rows 1 row: s, x
jdbc-kill-no-resultset jdbc rows 0 / 1 KILL MUTATION WHERE ... no result set 1 row
jdbc-array-of-geo jdbc 0 / 1 SELECT [[(1, 2)]::Ring] (also Array(Geometry)) NullPointerException the value
jdbc-set-role jdbc 0 / 1 SET ROLE ALL, then SELECT 2 UNKNOWN_ROLE for a role named ALL (also DEFAULT) 2

Found by small programs (no upstream test shows them, so they are not in the allowlist):

Group Backends Silent Reproduction Actual Expected
dt64-range jdbc (write) yes INSERT INTO t VALUES (?) into DateTime64(3, 'UTC') with setObject(1, LocalDateTime.parse("1600-06-01T12:34:56.789")) (also Instant, ZonedDateTime, OffsetDateTime, setTimestamp; any precision, outside 1677-09-21 .. 2262-04-11) 1677-09-21 00:12:43.935 1600-06-01 12:34:56.789
dt64-write-overflow client (write) yes POJO insert (client.register, client.insert) of LocalDateTime.parse("2263-01-01T00:00") into DateTime64(9, 'UTC') 1678-06-12 00:25:26.290448384 an error (as text, the server gives DECIMAL_OVERFLOW)
jdbc-date-julian-write jdbc (write) yes setDate(1, Date.valueOf("1000-01-01")) into Date32 1000-01-06 1000-01-01
binary-encoded-types both SET output_format_binary_encode_types_in_binary_format = 1, then SELECT 1 "Non-empty typeName is required" 1
type-array-of-point both SELECT [CAST((1, 2) AS Point)] "array element type mismatch" the value
reader-eof-first-column both 0 rows an EOFException inside the first column of a row (AbstractBinaryFormatReader.readRecord) the result ends without an error an error; this makes type-aggregate-function, type-json-shared-path and variant-member-order silent
http-error-text-lost both error text an HTTP 403 with a compressed body, or a Poco error body (S3 403, SSL error) <Unreadable error message> (transport error: 403) the server's error text

The Go bug classes of the tracking issue were checked on purpose on both backends; the others do not occur in clickhouse-java: Nullable with a null-map byte other than 1, NULL in LowCardinality(Nullable) in a named tuple, extremes as data rows, a second connection that loses the session, an INSERT without data that hangs, tuples in tuples, Int128 in a tuple, quoted tuple element names, Map keys of type Array / Map / Tuple, QBit, session_timezone, and the client's own server-info query in the user's session. Time64 precision on client is correct; on jdbc it is jdbc-time-as-sql-time.

Shim gaps (groups marked shim)

Group Tests Cause
shim-output-format 280 / 280 output formats other than the TabSeparated family and Null
shim-render-json 97 / 97 a JSON value is a HashMap of paths without order or types, so the shim cannot render it as the server does
shim-render-dynamic 96 / 92 a Dynamic value has no type
shim-kql-split 13 / 11 KQL statements are split by SQL rules
shim-output-setting 13 / 6 settings that change the server text output
shim-client-parse-error 2 / 2 a SYNTAX_ERROR of the server is taken as a parse error of clickhouse-client

Run locally

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)"
tests/clickhouse-client/scripts/fetch-upstream.sh
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

Details (shards, KNOWN_FAILURES=<id>, the real-client run, how to grow the allowlist): tests/clickhouse-client/README.md.

Checklist

  • Unit tests (splitter, hints, options, renderer) and live tests (renderer against the server's FORMAT TSV, both backends) were added; 266 tests pass in scripts/build.sh.
  • actionlint and shellcheck are clean on the new workflow and scripts.
  • No CHANGELOG entry: no library code changes (test harness and CI only).

🤖 Generated with Claude Code


Note

Low Risk
Test harness and new CI workflow only; no production client or JDBC module changes.

Overview
Adds nightly CI (.github/workflows/upstream-sql-tests.yml) that builds the tests/clickhouse-client shim from repo source, starts a pinned ClickHouse server (26.10.4.207), fetches matching upstream tests/queries/0_stateless, and runs the allowlisted suite through client-v2 and jdbc-v2 in parallel 8×2 shards.

The harness is expanded from a simple CLI into a clickhouse-client shim: statement splitting, test hints, error-code table generation, TabSeparated rendering from decoded values (not pass-through TSV), plus scripts for build, fetch-upstream, run-upstream-tests, and run-with-real-client triage. allowlist.txt records ~10k passing tests and grouped known failures; docs (README.md, AGENTS.md) define triage rules and allowlist growth.

No clickhouse-java library code changes—only the test harness, generated error-codes.tsv, and the new workflow.

Reviewed by Cursor Bugbot for commit a34340f. Bugbot is set up for automated code reviews on this repo. Configure here.

polyglotAI-bot and others added 5 commits November 19, 2026 05:27
…v2 and jdbc-v2

Rewrite the shim in tests/clickhouse-client so that tests/clickhouse-test
of ClickHouse can drive clickhouse-java as it drives clickhouse-client:

- split statements as ClientBase::executeMultiQuery does (inline data,
  FORMAT as an identifier, comments after the ';', test hints);
- run each statement through the public API: client-v2 Client.query with
  ClickHouseBinaryFormatReader (backend 'client'), or jdbc-v2
  Statement.execute with ResultSet.getObject (backend 'jdbc');
- keep one HTTP session (session_id) for the whole invocation, forward
  only log_comment, max_insert_threads, max_threads, send_logs_level,
  async_insert and enable_parallel_replicas;
- render each value as TabSeparated text from the column type (the
  .reference files are the oracle of the client's decoding);
- map error hints to codes with the error table of the pinned version;
- start fast (C1, serial GC, a CDS archive, -Xmx384m) and write nothing
  to stderr except the error of a failed statement.

Unit tests of the splitter, the hints, the options and the renderer, and
a live test that compares the renderer with the server's FORMAT TSV.
Drop commons-csv (the renderer replaces it) and depend on the
clickhouse-jdbc module of this repository.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- clickhouse-version: the server version and the upstream tests,
  pinned together (26.10.4.207);
- fetch-upstream.sh: a sparse, shallow checkout of v<version>-stable,
  and the error code table of that version (gen-error-codes.sh);
- build.sh: install the clickhouse-java modules from this source, then
  build the shim;
- run-upstream-tests.sh: run the allowlist of one backend, with shards,
  KNOWN_FAILURES=<id>, a version check and an optional RETRY_FAILED;
- run-with-real-client.sh: the same tests through the real
  clickhouse-client, for triage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tests of the pinned version that pass through the client and the
jdbc backend (10,163 and 10,053), and 773 known failures in 31 groups
(25 client bugs, 6 shim gaps). Each group header gives the cause, a
reproduction with the public API, the backends and the test count.
Checked three times on a fresh server at -j 6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Nightly, manual (with a clickhouse_version input) and on pull requests
and pushes that change the harness or the workflow. One build job (the
shim with its unit and live tests), then the backends client and jdbc
times 8 shards. The server image is the pinned version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
README: local runs, how the shim imitates clickhouse-client, the
allowlist format, how to grow the allowlist, CI, the version bump.
AGENTS.md: the triage rules of the allowlist. A pointer in the root
AGENTS.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

AI review gate — AI review passed

Clean review from: Cursor Bugbot.

@github-actions

Copy link
Copy Markdown

Client V2 Coverage

Coverage Report

Package Coverage Lines Covered Total Lines
com.clickhouse.client.api 90.82% 1177 1296
com.clickhouse.client.api.command 53.33% 16 30
com.clickhouse.client.api.data_formats 73.15% 485 663
com.clickhouse.client.api.data_formats.internal 92.45% 2424 2622
com.clickhouse.client.api.enums 100.00% 14 14
com.clickhouse.client.api.http 0.00% 1
com.clickhouse.client.api.insert 93.20% 96 103
com.clickhouse.client.api.internal 88.62% 1527 1723
com.clickhouse.client.api.metadata 96.30% 52 54
com.clickhouse.client.api.metrics 94.12% 80 85
com.clickhouse.client.api.observability 96.04% 194 202
com.clickhouse.client.api.observability.micrometer 100.00% 57 57
com.clickhouse.client.api.observability.otel 98.65% 73 74
com.clickhouse.client.api.query 87.42% 139 159
com.clickhouse.client.api.serde 87.72% 50 57
com.clickhouse.client.api.sql 87.50% 28 32
com.clickhouse.client.api.transport 94.25% 82 87
Class Coverage
Class Coverage Lines Covered Total Lines
com.clickhouse.client.api.ClickHouseException 85.71% 12 14
com.clickhouse.client.api.Client 91.57% 489 534
com.clickhouse.client.api.Client.Builder 86.84% 231 266
com.clickhouse.client.api.Client.new DataStreamWriter() {...} 100.00% 8 8
com.clickhouse.client.api.ClientConfigProperties 97.36% 221 227
com.clickhouse.client.api.ClientConfigProperties.new ClientConfigProperties() {...} 100.00% 8 8
com.clickhouse.client.api.ClientException 66.67% 4 6
com.clickhouse.client.api.ClientFaultCause 100.00% 8 8
com.clickhouse.client.api.ClientMisconfigurationException 100.00% 4 4
com.clickhouse.client.api.command.CommandResponse 64.71% 11 17
com.clickhouse.client.api.command.CommandSettings 38.46% 5 13
com.clickhouse.client.api.CompressionMethod 100.00% 3 3
com.clickhouse.client.api.ConnectionInitiationException 50.00% 3 6
com.clickhouse.client.api.ConnectionReuseStrategy 100.00% 3 3
com.clickhouse.client.api.data_formats.GsonJsonParserFactory 100.00% 10 10
com.clickhouse.client.api.data_formats.GsonJsonParserFactory.JsonParserImpl 100.00% 11 11
com.clickhouse.client.api.data_formats.GsonJsonParserFactory.new TypeToken() {...} 100.00% 1 1
com.clickhouse.client.api.data_formats.internal.AbstractBinaryFormatReader 92.82% 388 418
com.clickhouse.client.api.data_formats.internal.AbstractBinaryFormatReader.RecordWrapper 50.00% 17 34
com.clickhouse.client.api.data_formats.internal.BinaryReaderBackedRecord 100.00% 88 88
com.clickhouse.client.api.data_formats.internal.BinaryStreamReader 96.26% 566 588
com.clickhouse.client.api.data_formats.internal.BinaryStreamReader.ArrayValue 83.72% 36 43
com.clickhouse.client.api.data_formats.internal.BinaryStreamReader.CachingByteBufferAllocator 100.00% 8 8
com.clickhouse.client.api.data_formats.internal.BinaryStreamReader.DefaultByteBufferAllocator 100.00% 2 2
com.clickhouse.client.api.data_formats.internal.BinaryStreamReader.EnumValue 80.00% 12 15
com.clickhouse.client.api.data_formats.internal.InetAddressConverter 70.37% 19 27
com.clickhouse.client.api.data_formats.internal.MapBackedRecord 97.44% 228 234
com.clickhouse.client.api.data_formats.internal.NumberConverter 92.47% 86 93
com.clickhouse.client.api.data_formats.internal.NumberConverter.NumberType 100.00% 7 7
com.clickhouse.client.api.data_formats.internal.ProcessParser 85.71% 36 42
com.clickhouse.client.api.data_formats.internal.SerializerUtils 92.45% 808 874
com.clickhouse.client.api.data_formats.internal.SerializerUtils.DynamicClassLoader 100.00% 3 3
com.clickhouse.client.api.data_formats.internal.StringValue 97.14% 34 35
com.clickhouse.client.api.data_formats.internal.ValueConverters 77.48% 86 111
com.clickhouse.client.api.data_formats.JacksonJsonParserFactory 100.00% 5 5
com.clickhouse.client.api.data_formats.JacksonJsonParserFactory.JsonParserImpl 100.00% 8 8
com.clickhouse.client.api.data_formats.JSONEachRowFormatReader 95.12% 195 205
com.clickhouse.client.api.data_formats.NativeFormatReader 95.90% 117 122
com.clickhouse.client.api.data_formats.NativeFormatReader.Block 100.00% 17 17
com.clickhouse.client.api.data_formats.RowBinaryFormatReader 100.00% 19 19
com.clickhouse.client.api.data_formats.RowBinaryFormatSerializer 28.83% 32 111
com.clickhouse.client.api.data_formats.RowBinaryFormatWriter 32.67% 33 101
com.clickhouse.client.api.data_formats.RowBinaryFormatWriter.InputStreamHolder 0.00% 4
com.clickhouse.client.api.data_formats.RowBinaryFormatWriter.ReaderHolder 0.00% 4
com.clickhouse.client.api.data_formats.RowBinaryWithNamesAndTypesFormatReader 100.00% 22 22
com.clickhouse.client.api.data_formats.RowBinaryWithNamesFormatReader 65.22% 15 23
com.clickhouse.client.api.DataStreamWriter 0.00% 1
com.clickhouse.client.api.DataTransferException 50.00% 2 4
com.clickhouse.client.api.DataTypeUtils 80.83% 97 120
com.clickhouse.client.api.enums.Protocol 100.00% 2 2
com.clickhouse.client.api.enums.ProxyType 100.00% 3 3
com.clickhouse.client.api.enums.SSLMode 100.00% 9 9
com.clickhouse.client.api.http.ClickHouseHttpProto 0.00% 1
com.clickhouse.client.api.insert.InsertResponse 100.00% 15 15
com.clickhouse.client.api.insert.InsertSettings 92.05% 81 88
com.clickhouse.client.api.internal.BaseCollectionConverter 100.00% 28 28
com.clickhouse.client.api.internal.BaseCollectionConverter.BaseArrayWriter 100.00% 6 6
com.clickhouse.client.api.internal.BaseCollectionConverter.BaseCollectionWriter 71.43% 15 21
com.clickhouse.client.api.internal.BaseCollectionConverter.BaseListWriter 100.00% 6 6
com.clickhouse.client.api.internal.BaseCollectionConverter.ListConversionState 100.00% 11 11
com.clickhouse.client.api.internal.BasicObjectsPool 0.00% 11
com.clickhouse.client.api.internal.CachingObjectsSupplier 0.00% 10
com.clickhouse.client.api.internal.ClientStatisticsHolder 50.00% 7 14
com.clickhouse.client.api.internal.ClientUtils 100.00% 27 27
com.clickhouse.client.api.internal.CommonSettings 97.22% 70 72
com.clickhouse.client.api.internal.CompressedBlockEntity 82.61% 38 46
com.clickhouse.client.api.internal.CompressedBlockInputStream 92.77% 77 83
com.clickhouse.client.api.internal.CompressedBlockOutputStream 91.80% 56 61
com.clickhouse.client.api.internal.CompressedBlockOutputStream.LZ4OutputStream 100.00% 6 6
com.clickhouse.client.api.internal.CompressedBlockOutputStream.ZSTDOutputStream 100.00% 6 6
com.clickhouse.client.api.internal.CompressedEntity 81.58% 31 38
com.clickhouse.client.api.internal.CredentialsManager 95.38% 62 65
com.clickhouse.client.api.internal.DataTypeConverter 94.12% 240 255
com.clickhouse.client.api.internal.DataTypeConverter.ArrayAsStringWriter 100.00% 18 18
com.clickhouse.client.api.internal.DataTypeConverter.ListAsStringWriter 100.00% 16 16
com.clickhouse.client.api.internal.DataTypeConverter.Literal 100.00% 3 3
com.clickhouse.client.api.internal.EnvUtils 0.00% 14
com.clickhouse.client.api.internal.Gauge 66.67% 4 6
com.clickhouse.client.api.internal.HttpAPIClientHelper 93.88% 491 523
com.clickhouse.client.api.internal.HttpAPIClientHelper.CustomSSLConnectionFactory 100.00% 11 11
com.clickhouse.client.api.internal.HttpAPIClientHelper.DummySSLConnectionSocketFactory 0.00% 3
com.clickhouse.client.api.internal.HttpAPIClientHelper.MeteredManagedHttpClientConnectionFactory 100.00% 22 22
com.clickhouse.client.api.internal.HttpAPIClientHelper.NoWireLoggingConnection 100.00% 6 6
com.clickhouse.client.api.internal.HttpAPIClientHelper.NoWireLoggingConnectionFactory 89.47% 17 19
com.clickhouse.client.api.internal.HttpAPIClientHelper.ResponseBodyInputStream 100.00% 8 8
com.clickhouse.client.api.internal.HttpAPIClientHelper.TransportRequestImpl 100.00% 12 12
com.clickhouse.client.api.internal.HttpAPIClientHelper.TransportResponseImpl 86.96% 20 23
com.clickhouse.client.api.internal.MapUtils 35.48% 22 62
com.clickhouse.client.api.internal.SchemaUtils 100.00% 24 24
com.clickhouse.client.api.internal.ServerSettings 0.00% 1
com.clickhouse.client.api.internal.SslContextProvider 92.68% 38 41
com.clickhouse.client.api.internal.SslContextProvider.Builder 100.00% 38 38
com.clickhouse.client.api.internal.SslContextProvider.NonValidatingTrustManager 75.00% 3 4
com.clickhouse.client.api.internal.StopWatch 66.67% 10 15
com.clickhouse.client.api.internal.TableSchemaParser 80.77% 21 26
com.clickhouse.client.api.internal.ValidationUtils 75.00% 15 20
com.clickhouse.client.api.internal.ValidationUtils.SettingsValidationException 100.00% 3 3
com.clickhouse.client.api.internal.WorkloadIdentitySupport 100.00% 39 39
com.clickhouse.client.api.metadata.DefaultColumnToMethodMatchingStrategy 100.00% 13 13
com.clickhouse.client.api.metadata.NoSuchColumnException 100.00% 2 2
com.clickhouse.client.api.metadata.TableSchema 94.87% 37 39
com.clickhouse.client.api.metrics.ClientMetrics 100.00% 7 7
com.clickhouse.client.api.metrics.MicrometerLoader 90.91% 40 44
com.clickhouse.client.api.metrics.OperationMetrics 94.74% 18 19
com.clickhouse.client.api.metrics.OperationType 100.00% 3 3
com.clickhouse.client.api.metrics.ServerMetrics 100.00% 12 12
com.clickhouse.client.api.observability.DefaultMetricsRecorder 100.00% 9 9
com.clickhouse.client.api.observability.DefaultSpanRecorder 100.00% 12 12
com.clickhouse.client.api.observability.DefaultSpanRecorder.NoopSpan 75.00% 3 4
com.clickhouse.client.api.observability.MetricAttribute 100.00% 11 11
com.clickhouse.client.api.observability.MetricName 100.00% 13 13
com.clickhouse.client.api.observability.MetricsSupport 92.31% 36 39
com.clickhouse.client.api.observability.micrometer.MicrometerMetricsRecorder 100.00% 57 57
com.clickhouse.client.api.observability.otel.OpenTelemetrySpanRecorder 100.00% 47 47
com.clickhouse.client.api.observability.otel.OpenTelemetrySpanRecorder.OpenTelemetrySpan 96.30% 26 27
com.clickhouse.client.api.observability.SpanAttribute 100.00% 25 25
com.clickhouse.client.api.observability.SpanSupport 95.51% 85 89
com.clickhouse.client.api.query.NullValueException 50.00% 2 4
com.clickhouse.client.api.query.QueryResponse 91.89% 34 37
com.clickhouse.client.api.query.QuerySettings 97.67% 84 86
com.clickhouse.client.api.query.QueryStatement 0.00% 4
com.clickhouse.client.api.query.Records 60.87% 14 23
com.clickhouse.client.api.query.Records.new Iterator() {...} 100.00% 5 5
com.clickhouse.client.api.serde.DataSerializationException 33.33% 2 6
com.clickhouse.client.api.serde.POJOSerDe 97.96% 48 49
com.clickhouse.client.api.serde.SerializerNotFoundException 0.00% 2
com.clickhouse.client.api.ServerException 100.00% 13 13
com.clickhouse.client.api.ServerException.ErrorCodes 100.00% 9 9
com.clickhouse.client.api.Session 100.00% 46 46
com.clickhouse.client.api.sql.SQLUtils 87.50% 28 32
com.clickhouse.client.api.transport.ClientNodeSelector 100.00% 21 21
com.clickhouse.client.api.transport.EndpointState 100.00% 10 10
com.clickhouse.client.api.transport.HttpEndpoint 90.00% 45 50
com.clickhouse.client.api.transport.HttpEndpoint.EndpointDetails 100.00% 6 6
com.clickhouse.client.api.TransportException 100.00% 3 3

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

JDBC V2 Coverage

Coverage Report

Package Coverage Lines Covered Total Lines
com.clickhouse.data 19.23% 5 26
com.clickhouse.jdbc 81.94% 1779 2171
com.clickhouse.jdbc.internal 90.39% 1382 1529
com.clickhouse.jdbc.internal.parser.antlr4 41.45% 6519 15727
com.clickhouse.jdbc.internal.parser.javacc 73.21% 4966 6783
com.clickhouse.jdbc.metadata 90.29% 837 927
com.clickhouse.jdbc.types 56.95% 299 525
Class Coverage
Class Coverage Lines Covered Total Lines
com.clickhouse.data.Tuple 19.23% 5 26
com.clickhouse.jdbc.ClientInfoProperties 100.00% 12 12
com.clickhouse.jdbc.ConnectionImpl 91.69% 276 301
com.clickhouse.jdbc.DataSourceImpl 96.15% 25 26
com.clickhouse.jdbc.Driver 78.26% 36 46
com.clickhouse.jdbc.Driver.FrameworksDetection 90.91% 10 11
com.clickhouse.jdbc.DriverProperties 94.29% 33 35
com.clickhouse.jdbc.internal.DetachedResultSet 80.68% 334 414
com.clickhouse.jdbc.internal.ExceptionUtils 88.00% 22 25
com.clickhouse.jdbc.internal.FeatureManager 100.00% 8 8
com.clickhouse.jdbc.internal.JdbcConfiguration 95.82% 229 239
com.clickhouse.jdbc.internal.JdbcUtils 90.51% 391 432
com.clickhouse.jdbc.internal.JdbcUtils.ArrayProcessingCursor 100.00% 11 11
com.clickhouse.jdbc.internal.ParsedPreparedStatement 96.23% 51 53
com.clickhouse.jdbc.internal.ParsedStatement 93.75% 15 16
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseLexer 77.78% 28 36
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser 46.32% 4907 10594
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AliasContext 66.67% 6 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterPrivilegeContext 0.00% 44
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterStmtContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseAddColumnContext 41.67% 5 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseAddIndexContext 0.00% 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseAddProjectionContext 0.00% 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseAlterTypeContext 31.25% 5 16
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseAttachContext 0.00% 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseClearColumnContext 0.00% 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseClearIndexContext 0.00% 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseClearProjectionContext 0.00% 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseCommentContext 0.00% 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseDeleteContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseDetachContext 0.00% 7
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseDropColumnContext 0.00% 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseDropIndexContext 0.00% 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseDropPartitionContext 0.00% 7
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseDropProjectionContext 0.00% 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseFreezePartitionContext 0.00% 7
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseMaterializeIndexContext 0.00% 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseMaterializeProjectionContext 0.00% 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseModifyCodecContext 0.00% 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseModifyCommentContext 38.46% 5 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseModifyContext 50.00% 5 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseModifyOrderByContext 0.00% 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseModifyRemoveContext 0.00% 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseModifyTTLContext 0.00% 7
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseMovePartitionContext 0.00% 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseRemoveTTLContext 0.00% 7
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseRenameContext 0.00% 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseReplaceContext 0.00% 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableClauseUpdateContext 0.00% 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableColumnPositionContext 60.00% 6 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AlterTableStmtContext 38.46% 5 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ArrayJoinClauseContext 50.00% 6 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AssignmentExprContext 54.55% 6 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AssignmentExprListContext 54.55% 6 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AssignmentValueContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AssignmentValuesContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AssignmentValuesEmptyContext 0.00% 7
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AssignmentValuesListContext 54.55% 6 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.AttachStmtContext 33.33% 6 18
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CheckAllTablesStmtContext 0.00% 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CheckGrantStmtContext 45.45% 5 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CheckStmtContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CheckTableStmtContext 35.71% 5 14
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ClusterClauseContext 54.55% 6 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CodecArgExprContext 0.00% 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CodecExprContext 0.00% 14
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnAliasesContext 0.00% 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnArgExprContext 66.67% 6 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnArgListContext 46.15% 6 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExceptExprContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExceptExprIdentifiersContext 41.67% 5 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExceptExprRegexpContext 0.00% 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprAgrFuncWithFilterContext 38.46% 5 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprAliasContext 55.56% 5 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprAndContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprArrayAccessContext 55.56% 5 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprArrayContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprAsteriskContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprBetweenContext 0.00% 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprCaseContext 35.71% 5 14
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprCast2Context 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprCastContext 45.45% 5 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprDateContext 71.43% 5 7
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprExtractContext 0.00% 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprFunctionContext 38.46% 5 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprIdentifierContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprIntervalContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprIsNullContext 55.56% 5 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprListContext 54.55% 6 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprLiteralContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprNegateContext 0.00% 7
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprNotContext 0.00% 7
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprOrContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprParamContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprParensContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprPrecedence1Context 50.00% 5 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprPrecedence2Context 50.00% 5 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprPrecedence3Context 26.32% 5 19
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprRegexpContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprSubqueryContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprSubstringContext 0.00% 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprTernaryOpContext 55.56% 5 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprTimestampContext 71.43% 5 7
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprTrimContext 0.00% 14
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprTupleAccessContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprTupleContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprWinFunctionContext 0.00% 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnExprWinFunctionTargetContext 0.00% 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnIdentifierContext 60.00% 6 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnLambdaExprContext 40.00% 6 15
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnPrivilegeContext 42.86% 6 14
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnsClauseContext 53.85% 7 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnsExprAsteriskContext 55.56% 5 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnsExprColumnContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnsExprContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnsExprSubqueryContext 0.00% 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnTypeExprComplexContext 41.67% 5 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnTypeExprContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnTypeExprEnumContext 0.00% 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnTypeExprNestedContext 0.00% 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnTypeExprParamContext 55.56% 5 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ColumnTypeExprSimpleContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CreateDatabaseStmtContext 38.46% 5 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CreateDictionaryStmtContext 21.74% 5 23
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CreateFunctionStmtContext 33.33% 5 15
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CreateLiveViewStmtContext 0.00% 21
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CreateMaterializedViewStmtContext 0.00% 20
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CreateNamedCollectionStmtContext 27.78% 5 18
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CreatePolicyStmtContext 17.24% 5 29
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CreatePrivilegeContext 0.00% 24
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CreateProfileStmtContext 14.71% 5 34
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CreateQuotaStmtContext 18.52% 5 27
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CreateRoleStmtContext 26.32% 5 19
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CreateStmtContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CreateTableStmtContext 25.00% 5 20
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CreateUserStmtContext 17.86% 5 28
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CreateViewStmtContext 26.32% 5 19
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CteClauseContext 40.00% 6 15
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CteUnboundColContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CteUnboundColExprContext 50.00% 5 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CteUnboundColLiteralContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CteUnboundColParamContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.CteUnboundSubQueryContext 0.00% 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.DatabaseIdentifierContext 63.64% 7 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.DataClauseContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.DataClauseFormatContext 0.00% 7
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.DataClauseSelectContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.DataClauseValuesContext 60.00% 6 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.DeleteStmtContext 42.86% 6 14
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.DescribeStmtContext 54.55% 6 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.DestinationClauseContext 0.00% 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.DictionaryArgExprContext 0.00% 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.DictionaryAttrDfntContext 40.00% 6 15
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.DictionaryEngineClauseContext 75.00% 6 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.DictionaryPrimaryKeyClauseContext 46.15% 6 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.DictionarySchemaClauseContext 46.15% 6 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.DictionarySettingsClauseContext 54.55% 6 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.DropPrivilegeContext 0.00% 24
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.DropStmtContext 15.00% 6 40
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.EngineClauseContext 75.00% 6 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.EngineExprContext 46.15% 6 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.EnumValueContext 0.00% 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ExchangeStmtContext 42.86% 6 14
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ExistsDatabaseStmtContext 0.00% 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ExistsStmtContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ExistsTableStmtContext 31.25% 5 16
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ExplainStmtContext 33.33% 6 18
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.FilenameContext 0.00% 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.FloatingLiteralContext 50.00% 6 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.FrameBetweenContext 0.00% 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.FrameStartContext 0.00% 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.FromClauseContext 36.84% 7 19
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.GrantStmtContext 20.69% 6 29
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.GrantTableIdentifierContext 50.00% 6 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.GroupByClauseContext 42.86% 6 14
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.HavingClauseContext 0.00% 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.IdentifierContext 50.00% 6 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.IdentifierOrNullContext 66.67% 6 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.InserParameterExprContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.InsertParameterContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.InsertParameterFuncExprContext 55.56% 5 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.InsertRawValueContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.InsertStmtContext 60.00% 9 15
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.IntervalContext 40.00% 6 15
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.JoinConstraintClauseContext 50.00% 6 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.JoinExprContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.JoinExprCrossOpContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.JoinExprOpContext 41.67% 5 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.JoinExprParensContext 0.00% 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.JoinExprTableContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.JoinOpContext 0.00% 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.JoinOpCrossContext 50.00% 6 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.JoinOpFullContext 0.00% 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.JoinOpInnerContext 0.00% 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.JoinOpLeftRightContext 0.00% 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.KeywordContext 1.88% 6 319
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.KeywordForAliasContext 2.32% 6 259
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.KillMutationStmtContext 35.71% 5 14
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.KillQueryStmtContext 35.71% 5 14
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.KillStmtContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.LayoutClauseContext 40.00% 6 15
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.LifetimeClauseContext 42.86% 6 14
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.LimitByClauseContext 0.00% 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.LimitClauseContext 54.55% 6 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.LimitExprContext 54.55% 6 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.LiteralContext 54.55% 6 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.MoveStmtContext 33.33% 6 18
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.NameCollectionKeyContext 50.00% 6 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.NamedQueryContext 40.00% 6 15
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.NestedIdentifierContext 70.00% 7 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.NumberLiteralContext 40.00% 6 15
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.OptimizeByExprContext 30.00% 6 20
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.OptimizeStmtContext 40.00% 6 15
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.OrderByClauseContext 60.00% 6 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.OrderExprContext 37.50% 6 16
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.OrderExprListContext 54.55% 6 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.PartitionByClauseContext 0.00% 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.PartitionClauseContext 0.00% 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.PrewhereClauseContext 0.00% 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.PrimaryKeyClauseContext 0.00% 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.PrivelegeListContext 54.55% 6 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.PrivilegeContext 13.64% 6 44
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ProjectionOrderByClauseContext 0.00% 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ProjectionSelectStmtContext 0.00% 14
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.QueryContext 38.24% 13 34
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.QueryStmtContext 46.67% 7 15
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.QuotaForClauseContext 33.33% 6 18
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.QuotaMaxExprContext 60.00% 6 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.RangeClauseContext 0.00% 14
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.RatioExprContext 0.00% 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.RenameStmtContext 37.50% 6 16
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.RevokeStmtContext 26.09% 6 23
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.SampleByClauseContext 0.00% 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.SampleClauseContext 0.00% 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.SchemaAsFunctionClauseContext 0.00% 7
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.SchemaAsTableClauseContext 71.43% 5 7
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.SchemaDescriptionClauseContext 45.45% 5 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.SelectStmtContext 21.43% 6 28
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.SelectStmtWithParensContext 54.55% 6 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.SelectUnionStmtContext 40.00% 6 15
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.SetRolesListContext 63.64% 7 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.SetRoleStmtContext 38.10% 8 21
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.SetStmtContext 60.00% 6 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.SettingExprContext 60.00% 6 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.SettingExprListContext 54.55% 6 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.SettingsClauseContext 66.67% 6 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowAccessStmtContext 71.43% 5 7
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowClustersStmtContext 27.78% 5 18
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowClusterStmtContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowColumnsStmtContext 23.81% 5 21
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowCreatePolicyStmtContext 41.67% 5 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowCreateProfileContext 38.46% 5 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowCreateQuotaStmtContext 38.46% 5 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowCreateRoleStmtContext 41.67% 5 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowCreateStmtContext 27.78% 5 18
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowCreateUserStmtContext 38.46% 5 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowDatabasesStmtContext 0.00% 18
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowDictionariesStmtContext 26.32% 5 19
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowEnginesStmtContext 41.67% 5 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowFromDbClauseContext 60.00% 6 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowFromTableFromDbClauseContext 54.55% 6 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowFSCachesStmtContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowFunctionsStmtContext 45.45% 5 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowGrantsStmtContext 33.33% 5 15
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowIndexStmtContext 22.73% 5 22
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowMergesStmtContext 27.78% 5 18
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowPoliciesStmtContext 50.00% 5 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowPrivilegeContext 0.00% 25
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowProcessListStmtContext 41.67% 5 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowProfilesStmtContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowQuotasStmtContext 71.43% 5 7
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowQuotaStmtContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowRolesStmtContext 55.56% 5 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowSettingsStmtContext 45.45% 5 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowSettingStmtContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowStmtContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowTablesStmtContext 23.81% 5 21
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ShowUsersStmtContext 71.43% 5 7
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.SourceClauseContext 42.86% 6 14
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.SourcePrivilegeContext 0.00% 25
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.SubqueryClauseContext 66.67% 6 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.SystemPrivilegeContext 0.00% 81
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.SystemStmtContext 5.88% 6 102
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TableArgExprContext 60.00% 6 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TableArgListContext 54.55% 6 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TableColumnDfntContext 35.29% 6 17
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TableColumnPropertyExprContext 54.55% 6 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TableColumnPropertyTypeContext 0.00% 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TableElementExprColumnContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TableElementExprConstraintContext 0.00% 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TableElementExprContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TableElementExprIndexContext 0.00% 7
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TableElementExprProjectionContext 0.00% 7
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TableExprAliasContext 55.56% 5 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TableExprContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TableExprFunctionContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TableExprIdentifierContext 100.00% 6 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TableExprSubqueryContext 62.50% 5 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TableFunctionExprContext 54.55% 6 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TableIdentifierContext 80.00% 8 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TableIndexDfntContext 0.00% 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TableProjectionDfntContext 0.00% 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TableSchemaClauseContext 83.33% 5 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TopClauseContext 0.00% 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TruncateStmtContext 42.86% 6 14
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TtlClauseContext 0.00% 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.TtlExprContext 0.00% 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.UndropStmtContext 50.00% 6 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.UpdateStmtContext 46.15% 6 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.UserCreateGranteesClauseContext 0.00% 19
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.UserCreateHostClauseContext 0.00% 14
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.UserCreateHostDefContext 0.00% 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.UserIdentifiedClauseContext 27.27% 6 22
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.UserIdentifiedWithClauseContext 17.14% 6 35
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.UserIdentifierContext 54.55% 6 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.UseStmtContext 77.78% 7 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.UuidClauseContext 66.67% 6 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ValidUntilClauseContext 0.00% 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ViewIdentifierContext 0.00% 8
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.ViewParamContext 63.64% 7 11
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.WatchStmtContext 0.00% 12
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.WhereClauseContext 66.67% 6 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.WindowClauseContext 0.00% 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.WindowExprContext 0.00% 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.WinFrameBoundContext 0.00% 13
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.WinFrameClauseContext 0.00% 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.WinFrameExtendContext 0.00% 6
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.WinOrderByClauseContext 0.00% 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.WinPartitionByClauseContext 0.00% 10
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParser.WithClauseContext 0.00% 9
com.clickhouse.jdbc.internal.parser.antlr4.ClickHouseParserBaseListener 65.77% 390 593
com.clickhouse.jdbc.internal.parser.javacc.AbstractCharStream 52.04% 102 196
com.clickhouse.jdbc.internal.parser.javacc.ClickHouseSqlParser 73.01% 2968 4065
com.clickhouse.jdbc.internal.parser.javacc.ClickHouseSqlParserConstants 100.00% 1 1
com.clickhouse.jdbc.internal.parser.javacc.ClickHouseSqlParserTokenManager 84.25% 1728 2051
com.clickhouse.jdbc.internal.parser.javacc.ClickHouseSqlStatement 38.78% 57 147
com.clickhouse.jdbc.internal.parser.javacc.ClickHouseSqlUtils 68.57% 24 35
com.clickhouse.jdbc.internal.parser.javacc.JdbcParseHandler 24.05% 19 79
com.clickhouse.jdbc.internal.parser.javacc.LanguageType 100.00% 6 6
com.clickhouse.jdbc.internal.parser.javacc.OperationType 100.00% 2 2
com.clickhouse.jdbc.internal.parser.javacc.ParseException 3.95% 3 76
com.clickhouse.jdbc.internal.parser.javacc.ParseHandler 50.00% 2 4
com.clickhouse.jdbc.internal.parser.javacc.SimpleCharStream 30.00% 9 30
com.clickhouse.jdbc.internal.parser.javacc.StatementType 92.50% 37 40
com.clickhouse.jdbc.internal.parser.javacc.Token 66.67% 8 12
com.clickhouse.jdbc.internal.parser.javacc.TokenMgrException 0.00% 39
com.clickhouse.jdbc.internal.SqlParserFacade 94.44% 51 54
com.clickhouse.jdbc.internal.SqlParserFacade.ANTLR4AndParamsParser 100.00% 18 18
com.clickhouse.jdbc.internal.SqlParserFacade.ANTLR4AndParamsParser.ParseStatementAndParamsListener 92.86% 13 14
com.clickhouse.jdbc.internal.SqlParserFacade.ANTLR4Parser 100.00% 49 49
com.clickhouse.jdbc.internal.SqlParserFacade.ANTLR4Parser.ParsedPreparedStatementListener 98.39% 61 62
com.clickhouse.jdbc.internal.SqlParserFacade.ANTLR4Parser.ParsedStatementListener 100.00% 15 15
com.clickhouse.jdbc.internal.SqlParserFacade.ANTLR4Parser.ParserErrorListener 100.00% 2 2
com.clickhouse.jdbc.internal.SqlParserFacade.JavaCCParser 95.58% 108 113
com.clickhouse.jdbc.internal.SqlParserFacade.SQLParser 100.00% 4 4
com.clickhouse.jdbc.JdbcV2Wrapper 100.00% 4 4
com.clickhouse.jdbc.metadata.DatabaseMetaDataImpl 87.44% 522 597
com.clickhouse.jdbc.metadata.DatabaseMetaDataImpl.TableType 100.00% 14 14
com.clickhouse.jdbc.metadata.DatabaseMetaDataImpl.TypeLiteralInfo 100.00% 6 6
com.clickhouse.jdbc.metadata.ParameterMetaDataImpl 100.00% 23 23
com.clickhouse.jdbc.metadata.ResultSetMetaDataImpl 98.86% 87 88
com.clickhouse.jdbc.metadata.ResultSetMetaDataImpl.ColumnTypeBinding 100.00% 10 10
com.clickhouse.jdbc.metadata.ShowStatementsMetaData 92.59% 175 189
com.clickhouse.jdbc.PreparedStatementImpl 78.47% 390 497
com.clickhouse.jdbc.PreparedStatementImpl.ArrayProcessingCursor 100.00% 7 7
com.clickhouse.jdbc.ResultSetImpl 84.80% 541 638
com.clickhouse.jdbc.StatementImpl 93.19% 356 382
com.clickhouse.jdbc.types.Array 89.09% 49 55
com.clickhouse.jdbc.types.ArrayResultSet 52.38% 242 462
com.clickhouse.jdbc.types.Struct 100.00% 8 8
com.clickhouse.jdbc.WriterStatementImpl 41.98% 89 212

@polyglotAI-bot
polyglotAI-bot marked this pull request as ready for review November 19, 2026 05:48
@polyglotAI-bot
polyglotAI-bot requested review from a team and mzitnik as code owners November 19, 2026 05:48
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Triage

Category: infra • Risk: high

Summary
Turns the existing tests/clickhouse-client harness into a clickhouse-client shim that runs the upstream ClickHouse core SQL tests (tests/queries/0_stateless) through client-v2 and jdbc-v2, nightly in CI (tracking issue ClickHouse/integrations#808). The shim rewrite (~2,800 lines of Java: statement splitter, test hints, CLI options, type-directed TabSeparated renderer, client/jdbc backends) plus unit and live tests, shell scripts for building/fetching/sharded runs against a pinned server version (26.10.4.207), an 11,189-line allowlist.txt of passing tests and grouped known failures, a generated error-codes.tsv, docs, and a new GitHub workflow (upstream-sql-tests.yml: nightly cron, manual dispatch, and PR/push triggers scoped to the harness). No library code changes; the 25 client bugs it surfaced are documented in the PR body, not fixed here.

What this impacts

  • tests/clickhouse-client/** only — a separate Maven project outside the root reactor; no client-v2, jdbc-v2, or other library module is modified.
  • .github/workflows/upstream-sql-tests.yml — new CI job (build + 2×8 test shards), permissions: contents: read.
  • Future CI signal/cost: nightly runs and PR-triggered runs on harness changes.

Concerns

  • Large diff rule fired: 17,515 additions across 41 files. Even excluding the generated allowlist.txt (11,189) and error-codes.tsv (685), ~5,600 lines of code/scripts/docs remain — the rubric asks for a split (e.g. shim rewrite, scripts/allowlist, workflow, docs as reviewable parts; commits are split but the PR is one unit).
  • CI workflow addition: root AGENTS.md restricts changes under .github/workflows/**; the PR adds a new workflow (acknowledged in the body, justified by the tracking issue) — this needs explicit maintainer sign-off, and GitHub workflow changes independently fire the Medium rule.
  • 25 client bugs are reported in the PR body with Issue: not filed yet — risk of losing these findings without follow-up tracking issues.
  • Reviewer chernser has already requested changes.

Required reviewer action

  • high — at least one human reviewer.

@security-ai-gate-reviewer

security-ai-gate-reviewer Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

AI review gate — auto-approval withheld

The AI review gate is green, but the approver did not approve a34340fe: it changes paths that always require a human reviewer: .github/workflows/upstream-sql-tests.yml (commit 8861977 has no verified signature; commit 8861977 has no verified signature).

What to do: ask someone with write access who is not the PR author to approve this pull request.

History (latest 5 heads, newest first)

  • a34340fe0b68 withheld — it changes paths that always require a human reviewer: .github/workflows/upstream-sql-tests.yml (commit 8861977 has no verified signature; commit 8861977 has no verified signature)
  • 239be91d17b4 withheld — it changes paths that always require a human reviewer: .github/workflows/upstream-sql-tests.yml (commit 8861977 has no verified signature; commit 8861977 has no verified signature)
  • 671f68e6bf25 withheld — it changes paths that always require a human reviewer: .github/workflows/upstream-sql-tests.yml (commit 8861977 has no verified signature; commit 8861977 has no verified signature)

- Turn off the runner's own retries (--dont_retry_failures). The pinned
  tests/clickhouse-test runs a failed test again when its output has one
  of its MESSAGES_TO_RETRY, and reports a pass as OK, so a flaky test
  could enter the allowlist. RETRY_FAILED is now the only retry.
- Write the header lines of the TSVRaw...WithNames[AndTypes] formats
  without escapes, as the server does (TabSeparatedRowOutputFormat::
  writeLine); the shim escaped them always. Live test on both backends
  against the server's own output, with TSVWithNames as the contrast.
- Skip heredocs ($$...$$, $tag$...$tag$) in SqlText.topLevelWords, as
  the statement splitter does, so a FROM in a heredoc is not the FROM of
  an INSERT ... SELECT when the splitter looks for inline data.

The same review findings as on the C# harness (clickhouse-cs#747).
No allowlist change: no allowlisted or known-failure test uses a Raw
format with names or a heredoc in a way that changes its result.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

polyglotAI-bot and others added 2 commits November 19, 2026 13:17
The live header test now also has a column whose type name has a quote
(DateTime('UTC')), and TSVWithNamesAndTypes as the escaped contrast, so
it fails when only the names line of a Raw format is written without
escapes. The javadoc of OutputFormat.raw names the header lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ation log

The invocation log (CLICKHOUSE_CLIENT_CLI_LOG) recorded the raw command
line, so the value of --password went into the file in clear. CI uploads
that file as an artifact when a shard fails, and GitHub does not mask
secrets in artifacts.

CliOptions.redactPassword replaces the password by `***` before Main logs
the arguments. It follows CliOptions.parse:
- parse drops unknown short options before commons-cli reads the
  arguments, so in `--password -x secret` the password is `secret`. After
  --password, each argument is hidden up to and including the next
  argument that parse keeps.
- After an unknown option `--p`, commons-cli also reads `-password X`,
  `-password=X` and `-passwordX` as the password option. These are hidden
  too.

The other log records hold no password. The new live test checks the
whole log on both backends (client-v2 and jdbc-v2) and fails without
this change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ccoltx

ccoltx commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

@cursor review again

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 239be91. Configure here.

ccoltx
ccoltx previously approved these changes Nov 22, 2026
Comment thread AGENTS.md Resolved
Comment thread tests/clickhouse-client/AGENTS.md Resolved
Review of #3389: the root AGENTS.md is read with every agent request, so
the pointer to the harness is removed from it. tests/clickhouse-client/
AGENTS.md now holds only the rules. The procedures (find the cause of a
failure, the environment causes, the allowlist conditions, the server
version bump) move to README.md, without changes to their content.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants