• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

AfterShip / clickhouse-sql-parser
59%

Build:
DEFAULT BRANCH: master
Repo Added 22 Sep 2023 10:13AM UTC
Token F4x2H6fmkWoZPkof5HTWcZ5HSIXKiqDLa regen
Build 659 Last
Files 31
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
Sync Branches
  • master
  • 14-2
  • add-benchmarks
  • add-coverall
  • add-modify-ttl
  • add-more-badges
  • add-valid-until-clause
  • ajruckman_alter_table_delete_where
  • ajruckman_placeholder_and_select_fix
  • alert-autofix-1
  • allow-string-as-tablename
  • allow-var-start-with-dollar
  • alter-role-settings
  • alter-table-drop-detached
  • auto-version
  • case-statement-when-spacing
  • change-sql-string-to-compact
  • claude/end-not-reserved
  • claude/frosty-wiles-784a80
  • claude/issue-184-20250827-0341
  • claude/romantic-kowalevski-5a7ec1
  • codec-delta-level
  • codex/fix-contextual-keyword-parsing
  • codex/fix-expression-precedence
  • codex/fix-lexical-fidelity
  • codex/fix-modify-column-modifiers
  • codex/fix-named-type-token-errors
  • codex/fix-parser-token-errors
  • codex/fix-semantic-traversal
  • codex/source-spans-diagnostics
  • codex/split-ast-by-domain
  • column-value-without-type
  • copilot/add-beautify-format-alter-role
  • copilot/add-beautify-format-for-create-user
  • copilot/add-beautify-format-instruction
  • copilot/add-beautify-format-support
  • copilot/add-ident-break-for-insert
  • copilot/add-ident-break-for-settings
  • copilot/add-ident-break-from-expression
  • copilot/add-ident-break-on-cluster
  • copilot/add-support-in-partition-expression
  • copilot/fix-12
  • copilot/fix-140
  • copilot/fix-179
  • copilot/fix-181
  • copilot/fix-187
  • copilot/fix-75186bce-1dd8-4e67-bcd7-685469aa2574
  • copilot/fix-e5e3e050-4a0c-4226-8f60-806cafedacba
  • copilot/fix-stderr-routing-issue
  • copilot/refactor-formatter-chaining-methods
  • copilot/update-tool-version-to-0417
  • dev
  • dev1
  • distinct-on
  • feat/add-order-by-with-fill-support
  • feat/alter_modify_query_support
  • feat/lagr-parser-gaps
  • feat_support_db_comment
  • feature/access-tuple-with-index
  • feature/add-projection
  • feature/add-union-distinct
  • feature/adjust_engineExpr_String_printing_order
  • feature/allow-select-modifier
  • feature/alter-table-replace
  • feature/check-expression
  • feature/clear-projection-statement
  • feature/column-def-alias-materialized
  • feature/create-function
  • feature/create-or-replace
  • feature/create-role
  • feature/delete-from
  • feature/drop-projection
  • feature/drop-user-role
  • feature/grant-privilege
  • feature/grouping-sets
  • feature/insert-expr
  • feature/insert-with-type-column
  • feature/materialize-index-and-projection
  • feature/optimize-expression
  • feature/query-parameter
  • feature/rename-table
  • feature/select-in-function
  • feature/support-json-type-skip
  • feature/support-placeholder
  • feature/support-ttl-policy
  • feature/support-tuple
  • feature/timestamp-interval
  • fix-array-join-take-2
  • fix-bugs-1
  • fix-cannot-parse-join-only
  • fix-database-column-name
  • fix-describe-table
  • fix-global-join-modifier
  • fix-interval-column-name
  • fix-materialized-bug
  • fix-no-as-alias
  • fix-order-by-as-at-eof
  • fix-order-by-panic
  • fix-panic-in-eof-error
  • fix-parenthesized-set-operator-left-operand
  • fix-select-limit-add-select-final
  • fix-table-function-arg-exprs
  • fix/allow-parameters-for-null-engine
  • fix/alter-table-add-index-settings
  • fix/alter-table-modify
  • fix/alter-table-settings-statement-level
  • fix/ast-walker
  • fix/between-expr
  • fix/between-visitor
  • fix/cast-expr
  • fix/cast-expr-operand
  • fix/cast-in-table-function-arg
  • fix/column-alias-string
  • fix/create-dictionary-format
  • fix/distinct-keyword-preservation
  • fix/distinct-on-dot-notation
  • fix/dollar-sign
  • fix/dont_stop_walk_nil
  • fix/double-quote-as-ident
  • fix/drop-database-sync
  • fix/expression-precedence
  • fix/format-function
  • fix/group-by-column-with-keyworld
  • fix/heredoc-string-literals
  • fix/insert-into
  • fix/issue-118
  • fix/issue-176
  • fix/issue-187
  • fix/issue-222
  • fix/issues-108
  • fix/keyword-arg-functions
  • fix/keyword-as-column-in-select
  • fix/keyword_alias
  • fix/lexer-numbers-comments-utf8
  • fix/lexer-unterminated-comment-hang
  • fix/lowercase-array-join
  • fix/modify-ttl
  • fix/multi-join
  • fix/multi-line-comments
  • fix/multi_distinct_except
  • fix/nil-deref-error-formatting
  • fix/npe-unexpected-token
  • fix/panic-invalid-sql
  • fix/parse-comment-literal
  • fix/position-tracking
  • fix/readme
  • fix/remove-extra-leading-space
  • fix/reserved-keyword-split
  • fix/select-as-query
  • fix/select-issues
  • fix/show-access
  • fix/signed-number-after-bracket
  • fix/string-as-table-ident
  • fix/surface-lexer-errors
  • fix/system-reload-on-cluster
  • fix/table-keyword-alias-upstream
  • fix/table-visitor
  • fix/trailing-operator-at-eof
  • fix/traversal-drift
  • fix/union-all
  • fix/walk_when_node
  • fix/when_case_then
  • fix/window_clause
  • fix/wraperror-index-out-of-range
  • fix/wrong-unary-expr-string
  • ft-enhance-json-options
  • improve-lexer
  • improve-rename-syntax
  • improve/parse-expr
  • improvement/preserve-literal-spelling
  • issue-204
  • issue-23
  • json-type-hints
  • keyword-ident-expression-position
  • lexer-naming
  • lexer-string-escapes
  • minor-refactor-column-type
  • parameterized-view-call-arguments
  • patch-1
  • project-group-or-order
  • public-api-additions
  • refactor-join-modifiers
  • refactor/allow-to-use-precedence
  • refactor/expect-token-kind
  • refactor/operation-name
  • replicated-database-fix
  • reserved-keyword-split
  • role/alter
  • role/on-cluster-expr
  • select-format
  • select-qualify-clause
  • select-with-left-join
  • settings-bool-parser
  • sharad/add-comment-support-to-create-view
  • sharad/bug_fix
  • sharad/codec_parser
  • sharad/codec_parser_v3
  • sharad/column-modifier-order
  • sharad/delta_number_literal
  • sharad/dictionary_v1
  • sharad/fix-mv-comment-before-as
  • sharad/fix-rmv-column-list-engine
  • sharad/mv_definer
  • sharad/named_parameter_v1
  • sharad/row-policy-ddl
  • sharad/table_comment
  • strictness-first-join-limit-with-ties
  • structured-parse-errors
  • support-concat-operator
  • support-function-table-settings
  • support-multiple-array-joins
  • support-nested-tuple-definitions
  • support-offset-without-limit
  • support-refresh-in-mv
  • support/table-alias-without-as
  • swgillespie/alter-table-segv
  • swgillespie/clickhouse-remotesecure
  • test-automation
  • test-lowercase-array-join-ast
  • traversal-drift-test
  • tuple-element-of-qualified-column
  • understand-gcd-codec
  • unify-sql-terms
  • update-readme

20 Nov 2026 07:27AM UTC coverage: 58.708%. Remained the same
44695073233

push

github

web-flow
Document how SQL formatters should preserve literal spelling (#348)

Rewriting a heredoc as a quoted string can preserve its value while
losing the delimiter the author chose. Adding indentation inside a
multiline literal can also change its value.

Ask both formatter modes to preserve the literal as written, including
its delimiters, escape sequences, and whitespace.

Assistant-By gpt-6.2-astra

Co-authored-by: hulk <4987594+git-hulk@users.noreply.github.com>

10875 of 18524 relevant lines covered (58.71%)

3872.89 hits per line

Relevant lines Covered
Build:
Build:
18524 RELEVANT LINES 10875 COVERED LINES
3872.89 HITS PER LINE
Source Files on master
  • Tree
  • List 31
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
44695073233 master Document how SQL formatters should preserve literal spelling (#348) Rewriting a heredoc as a quoted string can preserve its value while losing the delimiter the author chose. Adding indentation inside a multiline literal can also change its value... push 20 Nov 2026 07:28AM UTC web-flow github
58.71
44689468989 master Parse ClickHouse heredocs as string literals (#347) The lexer treated a leading `$` as the start of an identifier, so the AST could describe clauses that ClickHouse reads as string content. For `SELECT $x$ AS a FROM t WHERE b = $x$`, the parser ... push 20 Nov 2026 06:41AM UTC web-flow github
58.71
44313435622 master Split AST definitions by SQL domain (#345) AST definitions and their methods share a single large file, making SQL families difficult to navigate and maintain. Group the existing nodes into domain-specific files within parser and keep the core i... push 18 Nov 2026 01:25PM UTC web-flow github
58.61
44226116712 master Parse a tuple element index after a qualified column (#344) push 18 Nov 2026 02:51AM UTC web-flow github
58.61
44222722036 master Add support for the QUALIFY clause (#343) QUALIFY filters on window function results. It takes one expression and sits after WINDOW and before ORDER BY. QUALIFY is a non-reserved keyword, so it still works as a column name and as an alias after ... push 18 Nov 2026 02:22AM UTC web-flow github
58.59
43443332284 master Parse parameterized view calls with a database and non-literal arguments (#342) A parameterized view is called like a table function. Two parts of that call were rejected: - a database-qualified name, db.view(name = value) - an argument that is ... push 13 Nov 2026 02:31PM UTC web-flow github
58.55
43352093834 master Parse strictness-first joins and LIMIT WITH TIES (#341) WITH TIES is valid after LIMIT n and LIMIT m, n. ClickHouse rejects it after LIMIT n OFFSET m and together with LIMIT BY, so the parser now does too. The formatter keeps the comma form for L... push 13 Nov 2026 02:26AM UTC web-flow github
58.46
43183284398 master Fix nil-pointer panic when ORDER BY ends with AS (#340) Signed-off-by: Lay Patel <lay.patel.1313@gmail.com> push 12 Nov 2026 08:36AM UTC web-flow github
58.34
41808004936 master Add row-policy DDL and inspection support (#335) push 04 Nov 2026 09:31AM UTC web-flow github
58.33
41418599525 master Fix parsing columns that omit the type before DEFAULT, MATERIALIZED or ALIAS (#339) Co-authored-by: youdie006 <youdie006@users.noreply.github.com> push 02 Nov 2026 09:12AM UTC web-flow github
56.87
See All Builds (659)

Badge your Repo: clickhouse-sql-parser

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc