-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
@sqlnullable annotation check #6656
Comments
The issues are not the best way to get help with UDFs. Did you try |
OK. will redirect to slack. |
Hitting the same issue. NPE will happen if |
Also noticed there is CI check error when using
But no such check for non-primitive types. Would require to use either |
ParametricScalarImplementation.java
handle error cases only for boxed/primitive type, but not for other type that will accept null pointer.BytecodeUtils.java
the null ptr is not handled properly because theisNullable()
is false, thewasNullVariable
logic will not be included in codegen.generateWrite()
will generate code that call the following method without check.So is it possible to widen the check in point 3 to eliminate the problem? UDF incurred bug pops up very frequent and we hope to detect problems as much as possible during plugin installation stage. The annotation based UDF programming is great but the code is too flexible sometimes.
Thanks!
The text was updated successfully, but these errors were encountered: