mbathori-cloudera opened a new pull request #2786: URL: https://github.com/apache/hive/pull/2786
### What changes were proposed in this pull request? After the application of HADOOP-17901 and HADOOP-17905 they changed the backing array increment logic which is causing issues in the UDFSpace class. ### Why are the changes needed? The previous `result.getBytes().length` is returning incorrect size which is causing error in the result output. By changing this method call to `result.getLength()` the size calculation is correct again any the original behaviour is restored. Example of the UDFSpace behaviour with the different method calls: ``` space parameter - 11 result.getBytes().length - 0 result.getLength() - 0 space parameter - 12 result.getBytes().length - 11 result.getLength() - 11 space parameter - 13 result.getBytes().length - 16 result.getLength(): 12 space parameter - 14 result.getBytes().length - 16 result.getLength() - 13 ``` Note that the issue is only present whit Hadoop version that contains HADOOP-17901 and HADOOP-17905. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? The change was tested on live cluster and also in the new qtest that was introduced in the scope of this patch. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
