-
Notifications
You must be signed in to change notification settings - Fork 257
[query] Fix deserialization of IR function parameter names in QoB #14579
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
|
Example error: |
patrick-schultz
left a comment
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.
Oof, thanks for catching that. I think the right fix is actually to push the conversion from string to name into pyRegisterIRForServiceBackend. I'll think more about the right way to test this as well.
|
So I think the root issue here is the unnecessary duplication between The callers of With that change, it should be possible to make one a simple wrapper around the other (or maybe even get rid of Let me know if you want help with this, or if you'd like me to make a separate PR for this. |
|
Also, I'm not sure why |
|
Ah, |
|
Ah, right! |
believe I implemented your suggestion
patrick-schultz
left a comment
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.
Overall looks great, thanks for cleaning this up! Just one question about code duplication.
I believe #14547 introduced a bug that broke IR function deserialization in QoB by changing
value_parameter_namesfromArray[String]toArray[Name]. This fixes the issue by pushing the introduction of theNamewrapper object to after deserialization. Another option is to incorporate the{ str: String }structure ofNameinto the python -> scala payload, but I'm not sure I see a use case for that and we can always do that later (there is no issue of backwards compatibility with this communication between python and scala).My main concern here is that clearly this isn't tested. I'd appreciate guidance on the current advised practice for testing this behavior.