fix: interpolation should not generate complex types#579
Conversation
📝 WalkthroughWalkthroughThis update modifies the handling of complex number evaluation in the Jinja interpolation logic, ensuring complex types are not returned unless explicitly allowed. The command-line entrypoint for debugging manifests is refactored for clearer argument parsing and source construction. Associated unit tests are updated to reflect the new complex number handling. Changes
Sequence Diagram(s)sequenceDiagram
participant CLI_User
participant debug_manifest.py
participant AirbyteEntrypoint
participant YamlDeclarativeSource
CLI_User->>debug_manifest.py: Run script with CLI args
debug_manifest.py->>AirbyteEntrypoint: Parse catalog/config/state paths
debug_manifest.py->>YamlDeclarativeSource: Instantiate with manifest and optional data
debug_manifest.py->>debug_manifest.py: Call debug_manifest with constructed args
Would you like to add further tests for other edge cases in the interpolation logic, such as handling other non-standard types? Wdyt? 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ Context from checks skipped due to timeout of 90000ms (6)
✨ 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:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 (
|
|
/autofix
|
PyTest Results (Fast)3 655 tests 3 645 ✅ 5m 40s ⏱️ Results for commit ae62cd3. |
PyTest Results (Full)3 658 tests 3 648 ✅ 17m 24s ⏱️ Results for commit ae62cd3. |
|
Note that in order to still continue supporting complex, we would need to add it here but until we support the serialization of these, I don't see why we would |
Following this oncall issue and this PR
Summary by CodeRabbit
Bug Fixes
Tests