diff options
author | Cheng Lian <lian.cs.zju@gmail.com> | 2014-08-16 11:26:51 -0700 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2014-08-16 11:26:51 -0700 |
commit | b4a05928e95c0f6973fd21e60ff9c108f226e38c (patch) | |
tree | ef03421ddc6ec2dfa7cc70ee8eeab23f58e1ca63 /extras | |
parent | 20fcf3d0b72f3707dc1ed95d453f570fabdefd16 (diff) | |
download | spark-b4a05928e95c0f6973fd21e60ff9c108f226e38c.tar.gz spark-b4a05928e95c0f6973fd21e60ff9c108f226e38c.tar.bz2 spark-b4a05928e95c0f6973fd21e60ff9c108f226e38c.zip |
[SQL] Using safe floating-point numbers in doctest
Test code in `sql.py` tries to compare two floating-point numbers directly, and cased [build failure(s)](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18365/consoleFull).
[Doctest documentation](https://docs.python.org/3/library/doctest.html#warnings) recommends using numbers in the form of `I/2**J` to avoid the precision issue.
Author: Cheng Lian <lian.cs.zju@gmail.com>
Closes #1925 from liancheng/fix-pysql-fp-test and squashes the following commits:
0fbf584 [Cheng Lian] Removed unnecessary `...' from inferSchema doctest
e8059d4 [Cheng Lian] Using safe floating-point numbers in doctest
Diffstat (limited to 'extras')
0 files changed, 0 insertions, 0 deletions