Repository navigation
feat(connector): support file_extension for MySQL/PostgreSQL sync - #19466
Conversation
Read file_extension from the connector config (default .txt) and use it as the document extension instead of the hardcoded .txt when rows are synced from MySQL and PostgreSQL data sources.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe change adds shared file-extension configuration handling and applies it to documents generated by MySQL and PostgreSQL connectors. Tests cover default, blank, dotted, dotless, custom, and end-of-batch behavior. ChangesConfigurable file extensions
Estimated code review effort: 2 (Simple) | ~10 minutes Severity of issue fixed: Low Sequence Diagram(s)sequenceDiagram
participant Caller
participant Connector
participant Database
participant SourceDocument
Caller->>Connector: OpenSync with file_extension
Connector->>Database: Execute configured query
Database-->>Connector: Return rows
Connector->>SourceDocument: Set configured Extension
Connector-->>Caller: Return document batch
Suggested reviewers: Merge Risk: ⚪ Minimal · up to MySQL and PostgreSQL syncs can now assign configured file extensions to generated documents while retaining .txt for unset or blank configuration. No concrete current change risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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. A rabbit checks the extension bright Comment |
Read file_extension from the connector config (default .txt) and use it as the document extension instead of the hardcoded .txt when rows are synced from MySQL and PostgreSQL data sources.
Python side: #15998