Skip to content

Add row-policy support while upstream PR 335 is pending - #3

Merged
sharadgaur merged 1 commit into
masterfrom
sharad/row-policy-ddl
Oct 27, 2026
Merged

sharadgaur merged 1 commit into
masterfrom
sharad/row-policy-ddl

Conversation

@sharadgaur

Copy link
Copy Markdown
Owner

Bring the row-policy changes from AfterShip#335 into this fork so clickhouse-platform can use them without waiting for the upstream merge.

Adds CREATE, ALTER, DROP and SHOW support for row policies, including formatting and AST traversal.

Keeps the existing function-expression table-settings support on master. The upstream PR remains open and unchanged.

Upstream PR:
AfterShip#335

Validation

Validated the combined tree of fork master 1df7d404 and row-policy head 97207866 in an isolated local checkout. The merge has no conflicts and the combined tracked tree is identical to the row-policy head.

  • Full unit and race tests passed.
  • make test, including compatibility mode, passed.
  • go vet ./... passed.
  • make lint passed with Go 1.24 and golangci-lint 1.64.5.
  • Row-policy fuzzing passed for 15 seconds with 533,603 executions.
  • Native ClickHouse 26.2 formatter checks passed for CREATE, ALTER, DROP, SHOW CREATE and SHOW policy examples.
  • The function-expression table-settings regression remains in the passing suite.

The ASTVisitor interface gains policy visit methods. Downstream clickhouse-platform compilation and the fork dependency update remain separate work.

@sharadgaur
sharadgaur merged commit 86c4698 into master Oct 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant