在执行Df.write.format("parquet").save("D:\\Work\\Spark\\Data\\Df.parquet")时出现以下异常提示
java.lang.RuntimeException: Error while encoding: java.lang.RuntimeException: java.lang.Integer is not a valid external type for schema of string。
但在执行Df.show(false)时 可以正常执行。请大神们诊断出策,谢谢!!!