Skip to content

Conversation

@TCeason
Copy link
Collaborator

@TCeason TCeason commented Oct 31, 2025

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

This pr modification was made to ensure compatibility with some mysql ecosystem BI software and mysql jdbc/odbc

Add missing information_schema tables (CHARACTER_SETS, REFERENTIAL_CONSTRAINTS)
and enhance MySQL federated query handling to support BI tools and JDBC/ODBC
drivers that rely on standard MySQL metadata queries.

Key changes:

  • Bump opensrv-mysql to 0.9.0 for protocol improvements
  • Add PowerBI compatibility
    • (SQL_AUTO_IS_NULL, SHOW KEYS FROM, select from db.empty_string.table queries)
    • SHOW COLUMNS FROM TABLE
  • Improve query result writer for MySQL-compliant metadata
  • Update SQL binder to handle information_schema queries correctly

Tests

  • Unit Test
  • Logic Test
  • Benchmark Test
  • No Test - Explain why

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Breaking Change (fix or feature that could cause existing functionality not to work as expected)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Other (please describe):

This change is Reviewable

@github-actions github-actions bot added the pr-chore this PR only has small changes that no need to record, like coding styles. label Oct 31, 2025
@TCeason TCeason requested review from BohuTANG and b41sh November 1, 2025 08:12
@TCeason TCeason merged commit dabe3f7 into databendlabs:main Nov 3, 2025
170 of 173 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-chore this PR only has small changes that no need to record, like coding styles.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants