Skip to content

docs: document the Oracle-compatible UTL_MATCH package - #639

Open
lkhhfd1 wants to merge 5 commits into
IvorySQL:v5.6from
lkhhfd1:docs/utl-match-package
Open

lkhhfd1 wants to merge 5 commits into
IvorySQL:v5.6from
lkhhfd1:docs/utl-match-package

Conversation

@lkhhfd1

@lkhhfd1 lkhhfd1 commented Dec 1, 2026

Copy link
Copy Markdown

What

Add EN and CN documentation for the Oracle-compatible UTL_MATCH package (closes #620).

The page covers:

  • all four functions (EDIT_DISTANCE, EDIT_DISTANCE_SIMILARITY, JARO_WINKLER, JARO_WINKLER_SIMILARITY) with return types;
  • edit-distance and Jaro-Winkler examples;
  • NULL, empty-string, and multibyte behaviour (Oracle 19c semantics);
  • implementation files and regression-test pointers.

Both EN/modules/ROOT/nav.adoc and CN/modules/ROOT/nav.adoc link the new page as item 20.

Why

UTL_MATCH is a shipped Oracle-compatibility package with a full C implementation and regression suite, but no user documentation. This was the only current-batch documentation issue with no linked PR.

Source of truth

All example values were taken from the kernel regression suite, not invented:

  • contrib/ivorysql_ora/src/builtin_packages/utl_match/utl_match--1.0.sql (signatures and NULL behaviour)
  • contrib/ivorysql_ora/expected/utl_match.out (golden values, e.g. EDIT_DISTANCE('shackleford','shackelford')=2, ROUND(JARO_WINKLER(...),4)=0.9818, JARO_WINKLER_SIMILARITY=98, byte-based multibyte examples)

Validation

  • Both pages contain all four function names, the golden values, and a pointer to the regression pair; EN and CN are structurally equivalent.
  • Both nav files reference xref:7.23.adoc.
  • New files are LF-only, matching the repository.

Risk

Documentation only; no code or build impact. CLA signed (individual_cla.pdf sent to cla@ivorysql.org).

Closes #620

Add EN and CN documentation for the UTL_MATCH package (closes IvorySQL#620):
four functions with return types, edit-distance and Jaro-Winkler examples,
NULL/empty-string/multibyte behaviour, and implementation/regression pointers.
All example values are taken from the kernel's utl_match regression suite.

Closes IvorySQL#620

Assisted-by: LLM
Signed-off-by: lkhhfd1 <1356915765@qq.com>
@github-actions
github-actions Bot temporarily deployed to pull request December 1, 2026 12:24 Inactive
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

🚀 IvorySQL-Docs Preview Ready

This branch was previously deployed

1 inactive deployment
pull request — 8140e336 Deployed Dec 1, 2026 by github-actions[bot]
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.

Document the Oracle-compatible UTL_MATCH package

1 participant