Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/5839#discussion_r29567056
--- Diff: python/pyspark/sql/tests.py ---
@@ -438,6 +438,14 @@ def test_rand_functions(self):
for row in rndn:
assert row[1] >= -4.0 and row[1] <= 4.0, "got: %s" % row[1]
+ def test_between_function(self):
+ df = self.sqlCtx.parallelize([Row(a=1, b=2, c=3),
+ Row(a=2, b=1, c=3),
+ Row(a=4, b=1, c=4)]).toDF()
+ self.assertEqual([False, True, True],
+ df.select(df.a.between(df.b, df.c)).collect())
+
--- End diff --
remove one less blank line.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]