Skip to content

Commit f8002b4

Browse files
committed
style edits
1 parent f25fbc1 commit f8002b4

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

sql/core/src/main/scala/org/apache/spark/sql/parquet/ParquetTableSupport.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ package org.apache.spark.sql.parquet
2020
import java.util.{HashMap => JHashMap}
2121

2222
import org.apache.hadoop.conf.Configuration
23-
import org.apache.spark.sql.catalyst.types.decimal.Decimal
2423
import parquet.column.ParquetProperties
2524
import parquet.hadoop.ParquetOutputFormat
2625
import parquet.hadoop.api.ReadSupport.ReadContext
@@ -31,6 +30,7 @@ import parquet.schema.MessageType
3130
import org.apache.spark.Logging
3231
import org.apache.spark.sql.catalyst.expressions.{Attribute, Row}
3332
import org.apache.spark.sql.catalyst.types._
33+
import org.apache.spark.sql.catalyst.types.decimal.Decimal
3434

3535
/**
3636
* A `parquet.io.api.RecordMaterializer` for Rows.

sql/core/src/main/scala/org/apache/spark/sql/types/util/DataTypeConversions.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ protected[sql] object DataTypeConversions {
4444
* Returns the equivalent DataType in Java for the given DataType in Scala.
4545
*/
4646
def asJavaDataType(scalaDataType: DataType): JDataType = scalaDataType match {
47-
// Check UDT first since UDTs can override other types
4847
case udtType: UserDefinedType[_] =>
4948
UDTWrappers.wrapAsJava(udtType)
5049

@@ -87,7 +86,6 @@ protected[sql] object DataTypeConversions {
8786
* Returns the equivalent DataType in Scala for the given DataType in Java.
8887
*/
8988
def asScalaDataType(javaDataType: JDataType): DataType = javaDataType match {
90-
// Check UDT first since UDTs can override other types
9189
case udtType: org.apache.spark.sql.api.java.UserDefinedType[_] =>
9290
UDTWrappers.wrapAsScala(udtType)
9391

sql/core/src/test/scala/org/apache/spark/sql/json/JsonSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ class JsonSuite extends QueryTest {
233233
StructField("field2", StringType, true) ::
234234
StructField("field3", StringType, true) :: Nil), false), true) ::
235235
StructField("struct", StructType(
236-
StructField("field1", BooleanType, true) ::
237-
StructField("field2", DecimalType.Unlimited, true) :: Nil), true) ::
236+
StructField("field1", BooleanType, true) ::
237+
StructField("field2", DecimalType.Unlimited, true) :: Nil), true) ::
238238
StructField("structWithArrayFields", StructType(
239239
StructField("field1", ArrayType(IntegerType, false), true) ::
240240
StructField("field2", ArrayType(StringType, false), true) :: Nil), true) :: Nil)

0 commit comments

Comments
 (0)