Github user chenghao-intel commented on a diff in the pull request:
https://github.com/apache/spark/pull/7282#discussion_r34217159
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/sources/commands.scala ---
@@ -497,13 +501,14 @@ private[sql] class DynamicPartitionWriterContainer(
extends BaseWriterContainer(relation, job, isAppend) {
// All output writers are created on executor side.
- @transient protected var outputWriters: mutable.Map[String,
OutputWriter] = _
+ @transient protected var outputWriters: java.util.HashMap[String,
OutputWriter] = _
override protected def initWriters(): Unit = {
- outputWriters = mutable.Map.empty[String, OutputWriter]
+ outputWriters = new java.util.HashMap[String, OutputWriter]
}
override def outputWriterForRow(row: Row): OutputWriter = {
+ // TODO (SPARK-8888): zip and all the stuff happening here is very
inefficient.
val partitionPath = partitionColumns.zip(row.toSeq).map { case (col,
rawValue) =>
--- End diff --
Sorry, for the confusing, I mean just like the `printf`, as the partition
column names is fixed.
```
"/date=%s/hour=%d/min=%d".format(...)
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]