This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
PYSPARK | |
Py4JJavaError: An error occurred while calling o560.save. | |
: java.lang.NoSuchMethodError: org.apache.spark.sql.AnalysisException.<init>(Ljava/lang/String;Lscala/Option;Lscala/Option;Lscala/Option;Lscala/Option;)V | |
at org.apac | |
""" | |
df.withColumn("key",lit(1)) #Wrong | |
#lit should be String | |
df.withColumn("key",lit("a")) #COrrect |
No comments:
Post a Comment