the use of std::to_string change the double presentation(not accuracy)

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
This commit is contained in:
galsalomon66 2022-09-18 10:46:04 +03:00
parent 89f97ed35c
commit b200013565

View file

@ -72,10 +72,10 @@ def generate_s3select_expression_projection(bucket_name,obj_name):
res = remove_xml_tags_from_result( run_s3select(bucket_name,obj_name,"select " + e + " from s3object;",) ).replace(",","") res = remove_xml_tags_from_result( run_s3select(bucket_name,obj_name,"select " + e + " from s3object;",) ).replace(",","")
# accuracy level # accuracy level
epsilon = float(0.000001) epsilon = float(0.00001)
# both results should be close (epsilon) # both results should be close (epsilon)
assert (1 - (float(res.split("\n")[1]) / eval( e )) ) < epsilon assert( abs(float(res.split("\n")[1]) - eval(e)) < epsilon )
@attr('s3select') @attr('s3select')
def get_random_string(): def get_random_string():