Skip to content

Add JiT compilation support for assertion actions#2193

Merged
rafal-hawrylak merged 1 commit into
mainfrom
jit-assertion-compile-target
Jun 2, 2026
Merged

Add JiT compilation support for assertion actions#2193
rafal-hawrylak merged 1 commit into
mainfrom
jit-assertion-compile-target

Conversation

@rafal-hawrylak

Copy link
Copy Markdown
Collaborator

Adds JIT_COMPILATION_TARGET_TYPE_ASSERTION alongside the existing TABLE / OPERATION / INCREMENTAL_TABLE target types, plus a matching JitAssertionResult { string query } proto and a jitCompileAssertion() dispatcher in core/jit_compiler.ts. Assertions reuse SqlActionJitContext since AssertionContext implements IActionContext, and the result is a single SELECT query string (matching the existing JitAssertionResult = string alias in core/actions/assertion.ts).

Adds JIT_COMPILATION_TARGET_TYPE_ASSERTION alongside the existing
TABLE / OPERATION / INCREMENTAL_TABLE target types, plus a matching
JitAssertionResult { string query } proto and a jitCompileAssertion()
dispatcher in core/jit_compiler.ts. Assertions reuse SqlActionJitContext
since AssertionContext implements IActionContext, and the result is a
single SELECT query string (matching the existing
JitAssertionResult = string alias in core/actions/assertion.ts).
@rafal-hawrylak rafal-hawrylak self-assigned this Jun 2, 2026
@rafal-hawrylak rafal-hawrylak requested a review from a team as a code owner June 2, 2026 09:54
@rafal-hawrylak rafal-hawrylak requested review from kolina and removed request for a team June 2, 2026 09:54
@rafal-hawrylak rafal-hawrylak merged commit 510f086 into main Jun 2, 2026
10 checks passed
@rafal-hawrylak rafal-hawrylak deleted the jit-assertion-compile-target branch June 2, 2026 10:20
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.

2 participants