[
https://issues.apache.org/jira/browse/HIVE-2298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13078589#comment-13078589
]
Amareshwari Sriramadasu commented on HIVE-2298:
-----------------------------------------------
Yes. It is the right command. Here is the failure:
{noformat}
[junit] Running org.apache.hadoop.hive.cli.TestCliDriver
[junit] Begin query: udf_percentile.q
[junit] junit.framework.AssertionFailedError: Client execution results
failed with error code = 1
[junit] See build/ql/tmp/hive.log, or try "ant test ...
-Dtest.silent=false" to get more logs.
[junit] at junit.framework.Assert.fail(Assert.java:47)
[junit] at
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_udf_percentile(TestCliDriver.java:129)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:597)
[junit] at junit.framework.TestCase.runTest(TestCase.java:154)
[junit] at junit.framework.TestCase.runBare(TestCase.java:127)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at junit.framework.TestResult.run(TestResult.java:109)
[junit] at junit.framework.TestCase.run(TestCase.java:118)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:208)
[junit] at junit.framework.TestSuite.run(TestSuite.java:203)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:422)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:931)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:785)
[junit] diff -a -I file: -I pfile: -I hdfs: -I /tmp/ -I invalidscheme: -I
lastUpdateTime -I lastAccessTime -I [Oo]wner -I CreateTime -I LastAccessTime -I
Location -I LOCATION ' -I transient_lastDdlTime -I last_modified_ -I
java.lang.RuntimeException -I at org -I at sun -I at java -I at junit -I Caused
by: -I LOCK_QUERYID: -I grantTime -I [.][.][.] [0-9]* more -I USING 'java -cp
/home/amarsri/workspace/hive/build/ql/test/logs/clientpositive/udf_percentile.q.out
/home/amarsri/workspace/hive/ql/src/test/results/clientpositive/udf_percentile.q.out
[junit] 0a1
[junit] > Preprocessor null
[junit] Exception: Client execution results failed with error code = 1
{noformat}
The fix would be as simple as regenerating the output. Can you look into?
> Fix UDAFPercentile to tolerate null percentiles
> -----------------------------------------------
>
> Key: HIVE-2298
> URL: https://issues.apache.org/jira/browse/HIVE-2298
> Project: Hive
> Issue Type: Bug
> Components: UDF
> Affects Versions: 0.7.0
> Reporter: Vaibhav Aggarwal
> Assignee: Vaibhav Aggarwal
> Attachments: HIVE-2298-2.patch, HIVE-2298.patch
>
>
> UDAFPercentile when passed null percentile list will throw a null pointer
> exception.
> Submitting a small fix for that.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira