Description
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) }
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) }