Github user JoshRosen commented on the pull request:
https://github.com/apache/spark/pull/4346#issuecomment-73126716
I think that the failures here are due to changes to the method signatures
in SQLContext: PySpark SQL code depended on the old signatures, which is
causing this to fail:
```
**********************************************************************
File
"/home/jenkins/workspace/SparkPullRequestBuilder/python/pyspark/sql.py", line
1595, in pyspark.sql.SQLContext.jsonRDD
Failed example:
sqlCtx.jsonRDD(sc.parallelize(['{}',
'{"key0": {"key1": "value1"}}'])).collect()
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.6/doctest.py", line 1253, in __run
compileflags, 1) in test.globs
File "<doctest pyspark.sql.SQLContext.jsonRDD[13]>", line 2, in
<module>
'{"key0": {"key1": "value1"}}'])).collect()
File
"/home/jenkins/workspace/SparkPullRequestBuilder/python/pyspark/sql.py", line
1614, in jsonRDD
df = self._ssql_ctx.jsonRDD(jrdd.rdd(), samplingRatio)
File
"/home/jenkins/workspace/SparkPullRequestBuilder/python/lib/py4j-0.8.2.1-src.zip/py4j/java_gateway.py",
line 538, in __call__
self.target_id, self.name)
File
"/home/jenkins/workspace/SparkPullRequestBuilder/python/lib/py4j-0.8.2.1-src.zip/py4j/protocol.py",
line 304, in get_return_value
format(target_id, '.', name, value))
Py4JError: An error occurred while calling o76.jsonRDD. Trace:
py4j.Py4JException: Method jsonRDD([class
org.apache.spark.rdd.MapPartitionsRDD, class java.lang.Double]) does not exist
at
py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:333)
at
py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:342)
at py4j.Gateway.invoke(Gateway.java:252)
at
py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:133)
at py4j.commands.CallCommand.execute(CallCommand.java:79)
at py4j.GatewayConnection.run(GatewayConnection.java:207)
at java.lang.Thread.run(Thread.java:745)
**********************************************************************
File
"/home/jenkins/workspace/SparkPullRequestBuilder/python/pyspark/sql.py", line
1598, in pyspark.sql.SQLContext.jsonRDD
Failed example:
sqlCtx.jsonRDD(sc.parallelize(['{"key0": null}',
'{"key0": {"key1": "value1"}}'])).collect()
Exception raised:
Traceback (most recent call last):
File "/usr/lib64/python2.6/doctest.py", line 1253, in __run
compileflags, 1) in test.globs
File "<doctest pyspark.sql.SQLContext.jsonRDD[14]>", line 2, in
<module>
'{"key0": {"key1": "value1"}}'])).collect()
File
"/home/jenkins/workspace/SparkPullRequestBuilder/python/pyspark/sql.py", line
1614, in jsonRDD
df = self._ssql_ctx.jsonRDD(jrdd.rdd(), samplingRatio)
File
"/home/jenkins/workspace/SparkPullRequestBuilder/python/lib/py4j-0.8.2.1-src.zip/py4j/java_gateway.py",
line 538, in __call__
self.target_id, self.name)
File
"/home/jenkins/workspace/SparkPullRequestBuilder/python/lib/py4j-0.8.2.1-src.zip/py4j/protocol.py",
line 304, in get_return_value
format(target_id, '.', name, value))
Py4JError: An error occurred while calling o76.jsonRDD. Trace:
py4j.Py4JException: Method jsonRDD([class
org.apache.spark.rdd.MapPartitionsRDD, class java.lang.Double]) does not exist
at
py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:333)
at
py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:342)
at py4j.Gateway.invoke(Gateway.java:252)
at
py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:133)
at py4j.commands.CallCommand.execute(CallCommand.java:79)
at py4j.GatewayConnection.run(GatewayConnection.java:207)
at java.lang.Thread.run(Thread.java:745)
```
---
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]