eatoncys commented on issue #23010: [SPARK-26012][SQL]Null and '' values should not cause dynamic partition failure of string types URL: https://github.com/apache/spark/pull/23010#issuecomment-466230566 @cloud-fan I hive tried it like that below, but it can not work, because the `physicalPlan` in `resolved.run(sparkSession, **_physicalPlan_**)` comes from the `query` plan before the `UpdateEmptyValueOfPartitionToNull` rule is executed. ``` val cmdOrigin = planForWritingFileFormat(format, mode, data) val cmd = UpdateEmptyValueOfPartitionToNull(sparkSession.sqlContext.conf).apply(cmdOrigin) .asInstanceOf[InsertIntoHadoopFsRelationCommand] ... val resolved = cmd.copy( partitionColumns = resolvedPartCols, outputColumnNames = outputColumnNames) resolved.run(sparkSession, physicalPlan) ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
