fix(core): support the Unicode literal for MSSQL#1338
Conversation
WalkthroughAdds MSSQL Unicode string literal support in the core dialect by introducing MsSqlDialect and a new dialect hook, wires it into dialect selection, and adds unit tests. Extends Ibis tests: seeds MSSQL with data and verifies Unicode query behavior via the v3 connector. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Client
participant API as Query Engine
participant WD as WrenDialect
participant ID as InnerDialect (MsSql)
participant SQL as SQL Generator
participant DB as MSSQL
Client->>API: Submit SQL with Unicode literal
API->>WD: Build dialect-specific AST
WD->>ID: to_unicode_string_literal("…")
alt Non-ASCII input
ID-->>WD: NationalStringLiteral (N'…')
else ASCII input
ID-->>WD: None (use default)
end
WD->>SQL: Generate SQL
SQL->>DB: Execute
DB-->>API: Result rows
API-->>Client: 200 OK + data
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
🧰 Additional context used🧬 Code graph analysis (5)wren-core/core/src/mdl/dialect/wren_dialect.rs (1)
wren-core/core/src/mdl/dialect/inner_dialect.rs (1)
wren-core/core/src/mdl/mod.rs (2)
ibis-server/tests/routers/v3/connector/mssql/test_query.py (2)
ibis-server/tests/routers/v3/connector/mssql/conftest.py (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (8)
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. Comment |
to_unicode_string_literalfor unparser dialect datafusion#8to_unicode_literalfor MSSQL dialect.Summary by CodeRabbit
New Features
Bug Fixes
Tests