Skip to content

feature:Add OceanBase Support to Text-to-SQL Agent#12919

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

feature:Add OceanBase Support to Text-to-SQL Agent#12919
yuzhichang merged 1 commit into
infiniflow:mainfrom
Rynzie02:feature/add-ob-support-agent

Conversation

@Rynzie02

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Close #12768.

This PR adds OceanBase support to RAGFlow’s Text-to-SQL (ExeSQL) component.
OceanBase is integrated via MySQL compatibility mode, and the UI db_type options are updated accordingly.

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

Backend

  • Add oceanbase db_type validation and connection logic in exesql.py and reuse existing MySQL compatibility mode

Frontend

  • Add OceanBase option to the ExeSQL db_type selector

How to test

  1. Configure OceanBase connection in ExeSQL node (host/port/user/password/database)
  2. Input: “Show 10 rows from test table”
  3. Generated SQL: SELECT * FROM test LIMIT 10;
  4. Query executes successfully and results are returned

Screenshots

  • ExeSQL db_type includes OceanBase
2
  • ExeSQL test OceanBase connection
test_ob
  • Query results from OceanBase shown in UI
1

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jan 30, 2026
@yuzhichang yuzhichang merged commit ee23b9e into infiniflow:main Jan 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request - RAGFlow+OceanBase] Add OceanBase Support to Text-to-SQL Agent

2 participants