From 5c8f7b70123a2f60c115c52be0a03962a519cbca Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Thu, 25 Jul 2019 12:46:17 -0700 Subject: [PATCH 1/2] Pin pyarrow version in tests. This is a workaround for a possible regression in pyarrow handling of NaN vs NULL in float columns. --- bigquery/noxfile.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bigquery/noxfile.py b/bigquery/noxfile.py index a9df7a67cfcc..a5d80e299866 100644 --- a/bigquery/noxfile.py +++ b/bigquery/noxfile.py @@ -86,6 +86,9 @@ def system(session): session.install("-e", local_dep) session.install("-e", os.path.join("..", "storage")) session.install("-e", os.path.join("..", "test_utils")) + # Workaround for possible pyarrow regression in handling of NaN vs NULL in + # float columns. + session.install("pyarrow==0.13.0") session.install("-e", ".[all]") # IPython does not support Python 2 after version 5.x @@ -114,6 +117,9 @@ def snippets(session): session.install("-e", local_dep) session.install("-e", os.path.join("..", "storage")) session.install("-e", os.path.join("..", "test_utils")) + # Workaround for possible pyarrow regression in handling of NaN vs NULL in + # float columns. + session.install("pyarrow==0.13.0") session.install("-e", ".[all]") # Run py.test against the snippets tests. @@ -176,6 +182,9 @@ def docs(session): for local_dep in LOCAL_DEPS: session.install("-e", local_dep) session.install("-e", os.path.join("..", "storage")) + # Workaround for possible pyarrow regression in handling of NaN vs NULL in + # float columns. + session.install("pyarrow==0.13.0") session.install("-e", ".[all]") shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True) From 23f602bdc1a352d9b7c71b8437f69eeaa5695c84 Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Thu, 25 Jul 2019 14:03:58 -0700 Subject: [PATCH 2/2] Pin pyarrow for unit tests. --- bigquery/noxfile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bigquery/noxfile.py b/bigquery/noxfile.py index a5d80e299866..0633bdfae3f6 100644 --- a/bigquery/noxfile.py +++ b/bigquery/noxfile.py @@ -38,7 +38,9 @@ def default(session): for local_dep in LOCAL_DEPS: session.install("-e", local_dep) - # Pyarrow does not support Python 3.7 + # Workaround for possible pyarrow regression in handling of NaN vs NULL in + # float columns. + session.install("pyarrow==0.13.0") dev_install = ".[all]" session.install("-e", dev_install)