Skip to content

[GLUTEN-7786][CH] Validate regex patterns via native RE2#11548

Open
zhanglistar wants to merge 2 commits intoapache:mainfrom
zhanglistar:ch-regex-validate
Open

[GLUTEN-7786][CH] Validate regex patterns via native RE2#11548
zhanglistar wants to merge 2 commits intoapache:mainfrom
zhanglistar:ch-regex-validate

Conversation

@zhanglistar
Copy link
Contributor

@zhanglistar zhanglistar commented Feb 3, 2026

What changes are proposed in this pull request?

Use a JNI wrapper to compile regex patterns with RE2 during CH expression validation and fall back on unsupported patterns. Add negative coverage tests for lookaround and backreference patterns to ensure fallback behavior.
Fix #7866

How was this patch tested?

UT.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: OpenAI gpt-5.2-codex, reviewed by zhanglistar.

Related issue: #7786

Use a JNI wrapper to compile regex patterns with RE2 during CH expression validation
and fall back on unsupported patterns. Add negative coverage tests for lookaround
and backreference patterns to ensure fallback behavior.
@github-actions
Copy link

github-actions bot commented Feb 3, 2026

Run Gluten Clickhouse CI on x86

@github-actions
Copy link

github-actions bot commented Feb 4, 2026

Run Gluten Clickhouse CI on x86

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.

[CH] fallback for unsupported regex in re2

2 participants