-
Notifications
You must be signed in to change notification settings - Fork 122
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
array_intersect bug #4
Comments
@melin 能给下触发数组越界bug的测试用例么?谢谢 |
数据量比较大,没有确定是那条数据,就换掉实现代码了 |
There are 2 bugs:
You can test this with INITIAL_SIZE = 1 (just set it smaller than input length)
|
@minhoryang Thank you very much! It had been resolved! |
https://github.com/aaronshan/hive-third-functions/blame/f98fef86d328882c85ea40b69b14375d90d44201/src/main/java/com/github/aaronshan/functions/array/UDFArrayIntersect.java#L160 |
@cceazj 能帮忙修复并提个PR吗? |
array_intersect 有数组越界bug,代码也复杂,简化代码:
` @OverRide
public Object evaluate(DeferredObject[] arguments) throws HiveException {
Object leftArray = arguments[0].get();
Object rightArray = arguments[1].get();
The text was updated successfully, but these errors were encountered: