-
Notifications
You must be signed in to change notification settings - Fork 81
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
Auto convert md np array to java array for the output of Python UDFs #5011
base: main
Are you sure you want to change the base?
Conversation
@@ -210,7 +212,7 @@ def f() -> np.ndarray[np.int64]: | |||
|
|||
with self.assertRaises(DHError) as cm: | |||
t = empty_table(10).update(["X1 = f()"]) | |||
self.assertIn("not support multi-dimensional arrays", str(cm.exception)) | |||
self.assertIn("java.lang.ClassCastException: class [[J cannot be cast to class [J", str(cm.exception)) |
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.
Can we get a more python-user-friendly error message, or is the whole message python friendly, and this is just a snippet?
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.
It is the most important part of the message (including the full trackback etc.) and it is emitted out of the engine. I don't know there is a safe and easy way to make it more Python-user-friendly.
e363c3c
to
42d3b2a
Compare
Fixes #4989