21032: fix: avoid internal errors for OneOf signature mismatches#290
21032: fix: avoid internal errors for OneOf signature mismatches#290martin-augment wants to merge 3 commits intomainfrom
Conversation
Signed-off-by: yaommen <myanstu@163.com>
Signed-off-by: yaommen <myanstu@163.com>
Signed-off-by: yaommen <myanstu@163.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
WalkthroughThis pull request modifies error handling for function signature matching in DataFusion. The core change in ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refines the error handling mechanism for functions utilizing Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
Code Review:
|
🤖 Augment PR SummarySummary: This PR adjusts overload resolution for Changes:
Technical Notes: Non-planning errors (e.g. execution errors from user-defined coercion) are still propagated when no overload succeeds. 🤖 Was this summary useful? React with 👍 or 👎 |
There was a problem hiding this comment.
Code Review
This pull request refactors the error handling for function signature mismatches, specifically within the TypeSignature::OneOf branch of the get_valid_types_with_udf function. The change aims to provide more user-friendly error messages by returning a generic planning error instead of an internal error with detailed signature failures. New unit tests have been added to validate this updated error propagation logic, and existing SQL logic tests have been updated to reflect the new, more concise error messages for signature mismatches.
value:useful; category:bug; feedback: The Claude AI reviewer is correct! The old error was concrete and the user could fix the issue immediately. The new error is generic and does not tell the user what is wrong. (s)he will have to consult with the documentation and compare it against the way (s)he tries to use the |
21032: To review by AI