Uh oh!
There was an error while loading. Please reload this page.
[SPARK-10847] [SQL] [PySpark] Pyspark - DataFrame - Optional Metadata with None triggers cryptic failure - #8969
[SPARK-10847] [SQL] [PySpark] Pyspark - DataFrame - Optional Metadata with None triggers cryptic failure#8969jasoncl wants to merge 5 commits into
None triggers cryptic failure#8969Conversation
…ctual unsupported type in the tuple instead of just tuple2
shea-parkes
commented
Oct 3, 2015
Thanks for doing this! |
JoshRosen
commented
Oct 18, 2015
Jenkins, this is ok to test. |
There was a problem hiding this comment.
This comment is incorrect. Also, please leave an additional line of whitespace before this line.
JoshRosen
commented
Oct 18, 2015
This seems good overall, but one high-level question: why store |
SparkQA
commented
Oct 18, 2015
Test build #43900 has finished for PR 8969 at commit
|
SparkQA
commented
Oct 23, 2015
Test build #44246 has finished for PR 8969 at commit
|
SparkQA
commented
Oct 23, 2015
Test build #44243 has finished for PR 8969 at commit
|
jasoncl
commented
Oct 23, 2015
There was a problem hiding this comment.
Looks like not worth adding a method since it is just used once?
There was a problem hiding this comment.
The method is created for code organization and clarity purpose. This way it can be easily reused in the future.
yhuai
commented
Jan 13, 2016
@jasoncl Can you do a quick update if my comment makes sense? Then, we will get it merged. Thanks! |
JoshRosen
commented
Jan 27, 2016
Ping @yhuai, is this ready for merging? |
JoshRosen
commented
Jan 27, 2016
Jenkins, retest this please. |
SparkQA
commented
Jan 27, 2016
Test build #50160 has finished for PR 8969 at commit
|
yhuai
commented
Jan 27, 2016
LGTM. I am merging it. |
…ith `None` triggers cryptic failure
The error message is now changed from "Do not support type class scala.Tuple2." to "Do not support type class org.json4s.JsonAST$JNull$" to be more informative about what is not supported. Also, StructType metadata now handles JNull correctly, i.e., {'a': None}. test_metadata_null is added to tests.py to show the fix works.
Author: Jason Lee <cjlee@us.ibm.com>
Closes#8969 from jasoncl/SPARK-10847.
(cherry picked from commit edd4737)
Signed-off-by: Yin Huai <yhuai@databricks.com>…ith `None` triggers cryptic failure
The error message is now changed from "Do not support type class scala.Tuple2." to "Do not support type class org.json4s.JsonAST$JNull$" to be more informative about what is not supported. Also, StructType metadata now handles JNull correctly, i.e., {'a': None}. test_metadata_null is added to tests.py to show the fix works.
Author: Jason Lee <cjlee@us.ibm.com>
Closes#8969 from jasoncl/SPARK-10847.
(cherry picked from commit edd4737)
Signed-off-by: Yin Huai <yhuai@databricks.com>yhuai
commented
Jan 27, 2016
I also merged it in branch 1.5 and branch 1.6 since it is very isolated bug fix. |
shea-parkes
commented
Jan 27, 2016
Thanks a bunch guys, this will be a big help. |
The error message is now changed from "Do not support type class scala.Tuple2." to "Do not support type class org.json4s.JsonAST$JNull$" to be more informative about what is not supported. Also, StructType metadata now handles JNull correctly, i.e., {'a': None}. test_metadata_null is added to tests.py to show the fix works.