Skip to content

feat: implement Document AI Functions and IK Custom Dictionary#1083

Open
ShiXing321 wants to merge 2 commits into
oceanbase:vldb_2026from
ShiXing321:vldb_2026
Open

feat: implement Document AI Functions and IK Custom Dictionary#1083
ShiXing321 wants to merge 2 commits into
oceanbase:vldb_2026from
ShiXing321:vldb_2026

Conversation

@ShiXing321

Copy link
Copy Markdown

Summary

Three modules implemented:

1. LOAD_FILE(location_name, file_name) -> BLOB

Reads file from LOCATION object with privilege check.

2. AI_SPLIT_DOCUMENT(content[, params]) -> table function

Splits text/markdown into chunk rows (chunk_id, chunk_offset, chunk_length, chunk_text).
Supports by=sentence, by=word, type=markdown/text, max, overlap.

3. IK Custom Dictionary

  • FULLTEXT_DICT='Y' table option
  • ALTER SYSTEM REFRESH FULLTEXT DICT command
  • PARSER_PROPERTIES=(dict_table='xxx') support
  • DDL constraints (ERROR 4179/1235)

Fixes from code review includes location existence check before privilege check, JSON key matching, IK dict_table property parsing, cache invalidation key alignment, and grammar support for dotted table names.

ShiXing321 and others added 2 commits July 15, 2026 20:21
LOAD_FILE(location, filename) - read file from LOCATION as BLOB.
AI_SPLIT_DOCUMENT(content[, params]) - table function for text chunking,
supports by=sentence, by=word, type=markdown, max, overlap params.

Co-Authored-By: Claude <[email protected]>
LOAD_FILE: fix location existence check order, error codes, path separator
AI_SPLIT_DOCUMENT: fix JSON key parsing, column type, trailing whitespace, enum
IK Custom Dict: fix property parsing, cache invalidation, table name handling, grammar

Co-Authored-By: Claude <[email protected]>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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