Skip to content

[ISSUE-789] Add TRIM, LPAD, and RPAD string functions - #826

Open
914zzzz wants to merge 1 commit into
apache:masterfrom
914zzzz:codex/issue-789-string-functions
Open

[ISSUE-789] Add TRIM, LPAD, and RPAD string functions#826
914zzzz wants to merge 1 commit into
apache:masterfrom
914zzzz:codex/issue-789-string-functions

Conversation

@914zzzz

@914zzzz 914zzzz commented Aug 3, 2026

Copy link
Copy Markdown

Addresses #789 by adding and registering TRIM, LPAD, and RPAD as built-in SQL functions. Supports String and BinaryString overloads, null arguments, Unicode code-point lengths, truncation, zero or negative target lengths, and empty pad strings. TRIM removes ASCII spaces while preserving tabs. Adds unit tests and SQL integration resources for Unicode, null, empty pad, and boundary cases. Plan-module verification passed: 6 tests, 0 failures, with jacoco skipped because the repository JaCoCo version does not support Java 21. Runtime SQL tests compile but the local Windows/Java 21 environment fails during QueryTester BRPC shutdown; upstream CI should execute them. An earlier implementation for #789 is open as #811; this PR is a corrected alternative incorporating its review findings.

@914zzzz

914zzzz commented Aug 3, 2026

Copy link
Copy Markdown
Author

#789

@mingcheng

Copy link
Copy Markdown
Member

Please check and fix the CI status before merging.

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.

3 participants