aboutsummaryrefslogtreecommitdiff
path: root/python/pyspark/sql/tests.py
diff options
context:
space:
mode:
authorXiangrui Meng <meng@databricks.com>2016-06-21 00:32:51 -0700
committerXiangrui Meng <meng@databricks.com>2016-06-21 00:32:51 -0700
commitce49bfc2550ba8f5a33235c7fc3b88201d63c276 (patch)
tree061b572eff6d769fd0b021f366f0a60bdf0ddf22 /python/pyspark/sql/tests.py
parent843a1eba8ec9d5a7beac0c74b54d24cb3c41b45a (diff)
downloadspark-ce49bfc2550ba8f5a33235c7fc3b88201d63c276.tar.gz
spark-ce49bfc2550ba8f5a33235c7fc3b88201d63c276.tar.bz2
spark-ce49bfc2550ba8f5a33235c7fc3b88201d63c276.zip
Revert "[SPARK-16086] [SQL] fix Python UDF without arguments (for 1.6)"
This reverts commit a46553cbacf0e4012df89fe55385dec5beaa680a.
Diffstat (limited to 'python/pyspark/sql/tests.py')
-rw-r--r--python/pyspark/sql/tests.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/python/pyspark/sql/tests.py b/python/pyspark/sql/tests.py
index ecd1a0563e..c631ad8a46 100644
--- a/python/pyspark/sql/tests.py
+++ b/python/pyspark/sql/tests.py
@@ -318,11 +318,6 @@ class SQLTests(ReusedPySparkTestCase):
[row] = self.spark.sql("SELECT double(add(1, 2)), add(double(2), 1)").collect()
self.assertEqual(tuple(row), (6, 5))
- def test_udf_without_arguments(self):
- self.sqlCtx.registerFunction("foo", lambda: "bar")
- [row] = self.sqlCtx.sql("SELECT foo()").collect()
- self.assertEqual(row[0], "bar")
-
def test_udf_with_array_type(self):
d = [Row(l=list(range(3)), d={"key": list(range(5))})]
rdd = self.sc.parallelize(d)