Github user mengxr commented on a diff in the pull request:

    https://github.com/apache/spark/pull/9595#discussion_r50333696
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/ml/source/libsvm/LibSVMRelation.scala ---
    @@ -17,16 +17,27 @@
     
     package org.apache.spark.ml.source.libsvm
     
    +import java.io.{CharArrayWriter, IOException}
    +
    +import com.fasterxml.jackson.core.JsonFactory
     import com.google.common.base.Objects
    +import org.apache.hadoop.fs.{FileStatus, Path}
    +import org.apache.hadoop.io.{NullWritable, Text}
    +import org.apache.hadoop.mapreduce.lib.output.TextOutputFormat
    +import org.apache.hadoop.mapreduce.{RecordWriter, TaskAttemptContext}
    --- End diff --
    
    `{` should come before `l`. Please try Scala Import Organizer:) This is 
what I got:
    
    ~~~scala
    import java.io.IOException
    
    import com.google.common.base.Objects
    import org.apache.hadoop.fs.{FileStatus, Path}
    import org.apache.hadoop.io.{NullWritable, Text}
    import org.apache.hadoop.mapreduce.{RecordWriter, TaskAttemptContext}
    import org.apache.hadoop.mapreduce.lib.output.TextOutputFormat
    
    import org.apache.spark.annotation.Since
    import org.apache.spark.mllib.linalg.{Vector, VectorUDT}
    import org.apache.spark.mllib.util.MLUtils
    import org.apache.spark.rdd.RDD
    import org.apache.spark.sql.{DataFrame, DataFrameReader, Row, SQLContext}
    import org.apache.spark.sql.sources._
    import org.apache.spark.sql.types._
    ~~~


---
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]

Reply via email to