Github user srowen commented on a diff in the pull request: https://github.com/apache/spark/pull/12184#discussion_r58833267 --- Diff: sql/core/src/test/java/test/org/apache/spark/sql/JavaDatasetSuite.java --- @@ -17,33 +17,60 @@ package test.org.apache.spark.sql; -import java.io.Serializable; -import java.math.BigDecimal; -import java.sql.Date; -import java.sql.Timestamp; -import java.util.*; - import com.google.common.base.Objects; -import org.junit.rules.ExpectedException; -import scala.Tuple2; -import scala.Tuple3; -import scala.Tuple4; -import scala.Tuple5; - -import org.junit.*; - import org.apache.spark.Accumulator; import org.apache.spark.SparkContext; -import org.apache.spark.api.java.function.*; import org.apache.spark.api.java.JavaSparkContext; -import org.apache.spark.sql.*; -import org.apache.spark.sql.test.TestSQLContext; +import org.apache.spark.api.java.function.CoGroupFunction; +import org.apache.spark.api.java.function.FilterFunction; +import org.apache.spark.api.java.function.FlatMapFunction; +import org.apache.spark.api.java.function.FlatMapGroupsFunction; +import org.apache.spark.api.java.function.ForeachFunction; +import org.apache.spark.api.java.function.MapFunction; +import org.apache.spark.api.java.function.MapGroupsFunction; +import org.apache.spark.api.java.function.MapPartitionsFunction; +import org.apache.spark.api.java.function.ReduceFunction; +import org.apache.spark.sql.Dataset; +import org.apache.spark.sql.Encoder; +import org.apache.spark.sql.Encoders; +import org.apache.spark.sql.KeyValueGroupedDataset; +import org.apache.spark.sql.Row; import org.apache.spark.sql.catalyst.encoders.OuterScopes; import org.apache.spark.sql.catalyst.expressions.GenericRow; +import org.apache.spark.sql.test.TestSQLContext; import org.apache.spark.sql.types.StructType; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Rule; +import org.junit.Test; +import org.junit.rules.ExpectedException; +import scala.Tuple2; +import scala.Tuple3; +import scala.Tuple4; +import scala.Tuple5; -import static org.apache.spark.sql.functions.*; -import static org.apache.spark.sql.types.DataTypes.*; +import java.io.Serializable; --- End diff -- Java/Scala imports come first. In general you don't want to expand * imports. Just leave them as-is excepting where you need to add imports.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org