-
Notifications
You must be signed in to change notification settings - Fork 81
fix(ibis): Enforcing MySQL utf8mb4 charset in connections #1091
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe pull request updates the MySQL connection method in the data source module by setting a default character set ( Changes
Sequence Diagram(s)sequenceDiagram
participant C as Client
participant DS as DataSourceExtension
participant MYSQL as ibis.mysql.connect
C->>DS: Call get_mysql_connection(info)
DS->>DS: Set default charset (utf8mb4) if missing
DS->>MYSQL: Connect with updated kwargs
MYSQL-->>DS: Return MySQL connection
DS-->>C: Return connection
sequenceDiagram
participant T as Test Function
participant DB as MySQL Container/Database
T->>DB: Create table with Chinese column names
T->>DB: Insert rows with Chinese characters
T->>DB: Execute SQL query on ChineseTest table
DB-->>T: Return query results
T->>T: Assert response status and data correctness
Poem
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (2)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
The root issue stems from the Ibis server image utilizing the libmysqlclient-dev MySQL driver, which differs from the driver implementation on macOS. I've successfully built and deployed the Ibis server image locally and conducted testing with Wren AI. The results confirm full UTF-8 compatibility. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @douenergy LGTM
Fix Canner/WrenAI#1374
Summary by CodeRabbit
New Features
Tests