ericsun95 commented on code in PR #42462:
URL: https://github.com/apache/spark/pull/42462#discussion_r1294138473
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/xml/util/XmlFile.scala:
##########
@@ -16,23 +16,14 @@
*/
package org.apache.spark.sql.execution.datasources.xml.util
-import java.io.CharArrayWriter
import java.nio.charset.Charset
-import javax.xml.stream.XMLOutputFactory
-import scala.collection.Map
-
-import com.sun.xml.txw2.output.IndentingXMLStreamWriter
import org.apache.hadoop.conf.Configuration
import org.apache.hadoop.io.{LongWritable, Text}
-import org.apache.hadoop.io.compress.CompressionCodec
import org.apache.spark.SparkContext
import org.apache.spark.rdd.RDD
-import org.apache.spark.sql.DataFrame
-import org.apache.spark.sql.catalyst.util.CompressionCodecs
-import org.apache.spark.sql.execution.datasources.xml.{XmlInputFormat,
XmlOptions}
-import org.apache.spark.sql.execution.datasources.xml.parsers.StaxXmlGenerator
+import org.apache.spark.sql.execution.datasources.xml.XmlInputFormat
private[xml] object XmlFile {
val DEFAULT_INDENT = " "
Review Comment:
Duplicated constants?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]