You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by th...@apache.org on 2013/10/14 21:02:23 UTC
svn commit: r1532026 -
/hive/trunk/hcatalog/src/test/e2e/templeton/drivers/TestDriverCurl.pm
Author: thejas
Date: Mon Oct 14 19:02:22 2013
New Revision: 1532026
URL: http://svn.apache.org/r1532026
Log:
HIVE-5509 : [WebHCat] TestDriverCurl to use string comparison for jobid (Daniel Dai via Thejas Nair)
Modified:
hive/trunk/hcatalog/src/test/e2e/templeton/drivers/TestDriverCurl.pm
Modified: hive/trunk/hcatalog/src/test/e2e/templeton/drivers/TestDriverCurl.pm
URL: http://svn.apache.org/viewvc/hive/trunk/hcatalog/src/test/e2e/templeton/drivers/TestDriverCurl.pm?rev=1532026&r1=1532025&r2=1532026&view=diff
==============================================================================
--- hive/trunk/hcatalog/src/test/e2e/templeton/drivers/TestDriverCurl.pm (original)
+++ hive/trunk/hcatalog/src/test/e2e/templeton/drivers/TestDriverCurl.pm Mon Oct 14 19:02:22 2013
@@ -631,7 +631,7 @@ sub compare
# in the tests, we run this case with jobName = "PigLatin:loadstore.pig"
# filter $body to leave only records with this jobName
my @filtered_body = grep {($_->{detail}{profile}{jobName} eq "PigLatin:loadstore.pig")} @$body;
- my @sorted_filtered_body = sort { $a->{id} <=> $b->{id} } @filtered_body;
+ my @sorted_filtered_body = sort { $a->{id} cmp $b->{id} } @filtered_body;
$value = $path->value(\@sorted_filtered_body);
} else {
$value = $path->value($testResult->{'body'});