Skip to content

feature:Add OceanBase Storage Support for Table Parser#12923

Merged
yuzhichang merged 1 commit into
infiniflow:mainfrom
Rynzie02:feature/add-ob-support-table-parser
Jan 31, 2026
Merged

feature:Add OceanBase Storage Support for Table Parser#12923
yuzhichang merged 1 commit into
infiniflow:mainfrom
Rynzie02:feature/add-ob-support-table-parser

Conversation

@Rynzie02

@Rynzie02 Rynzie02 commented Jan 31, 2026

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

close #12770

This PR adds OceanBase as a storage backend for the Table Parser. It enables dynamic table schema storage via JSON and implements OceanBase SQL execution for text-to-SQL retrieval.

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Other (please describe):

Changes

  • Table Parser stores row data into chunk_data when doc engine is OceanBase. (table.py)
  • OceanBase table schema adds chunk_data JSON column and migrates if needed.
  • Implemented OceanBase sql() to execute text-to-SQL results. (ob_conn.py)
  • Add DOC_ENGINE_OCEANBASE flag for engine detection (setting.py)

Test

  1. Set DOC_ENGINE=oceanbase (e.g. in docker/.env)
doc_engine_ob
  1. Upload an Excel file to Knowledge Base.(for test, we use as below)
excel
  1. Choose Table as parsing method.
parse_excel

4.Ask a natural language query in chat.
query

@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jan 31, 2026
@yuzhichang

Copy link
Copy Markdown
Member

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request - RAGFlow+OceanBase] Add OceanBase Storage Support for Table Parser

2 participants