angerszhu created SPARK-36271: --------------------------------- Summary: Insert data to parquet/orc/avro need to check schema too Key: SPARK-36271 URL: https://issues.apache.org/jira/browse/SPARK-36271 Project: Spark Issue Type: Sub-task Components: SQL Affects Versions: 3.2.0 Reporter: angerszhu Attachments: screenshot-1.png
{code:java} withTempPath { path => spark.sql( s""" |SELECT |NAMED_STRUCT('ID', ID, 'IF(ID=1,ID,0)', IF(ID=1,ID,0), 'B', ABS(ID)) AS col1 |FROM v """.stripMargin).write.mode(SaveMode.Overwrite).parquet(path.getCanonicalPath) } {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org