Closed GoogleCodeExporter closed 8 years ago
Hi Yingyi,
Another test tpch/q10_returned_item.aql fails with same problem as described
above.
Here is a snippet from the failing query
...
let $revenue := sum(for $i in $locn return $i.l_extendedprice * (1 -
$i.l_discount))
order by $revenue desc
limit 20
return {
"c_custkey": $c_custkey,
"c_name": $c_name,
"revenue": $revenue,
"c_acctbal": $c_acctbal,
"n_name": $n_name,
"c_address": $c_address,
"c_phone": $c_phone,
"c_comment": $c_comment
}
The difference is in the precision of value returned by sum aggregate function
Look at the value for the revenue field to note the difference.
java.lang.AssertionError: Result for
src/test/resources/runtimets/queries/tpch/q10_returned_item.aql changed at line
15:
< { "c_custkey": 53, "c_name": "Customer#000000053", "revenue": 92568.9124d,
"c_acctbal": 4113.64d, "n_name": "MOROCCO", "c_address":
"HnaxHzTfFTZs8MuCpJyTbZ47Cm4wFOOgib", "c_phone": "25-168-852-5363",
"c_comment": "ar accounts are. even foxes are blithely. fluffily pending
deposits boost" }
> { "c_custkey": 53, "c_name": "Customer#000000053", "revenue":
92568.91239999999d, "c_acctbal": 4113.64d, "n_name": "MOROCCO", "c_address":
"HnaxHzTfFTZs8MuCpJyTbZ47Cm4wFOOgib", "c_phone": "25-168-852-5363",
"c_comment": "ar accounts are. even foxes are blithely. fluffily pending
deposits boost" }
Thanks
Khurram
Original comment by khfaraaz82
on 19 Mar 2012 at 9:12
Khurram,
Can you change the queries so that we round the result of the sum and
then persist the new results.
Original comment by vinay...@gmail.com
on 19 Mar 2012 at 9:24
fixed in r68
Original comment by buyingyi@gmail.com
on 27 Mar 2012 at 5:18
Original issue reported on code.google.com by
khfaraaz82
on 19 Mar 2012 at 9:03