Skip to content

Commit

Permalink
SPARK-16791_cast_struct_with_timestamp_field_fails: yet another forma…
Browse files Browse the repository at this point in the history
…tting
  • Loading branch information
eyal farago committed Jul 30, 2016
1 parent 34fdb78 commit 6e7f69f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -728,9 +728,9 @@ class CastSuite extends SparkFunSuite with ExpressionEvalHelper {
}

test("cast struct with a timestamp field") {
val originalSchema = new StructType().add( "tsField", TimestampType, nullable = false )
val originalSchema = new StructType().add("tsField", TimestampType, nullable = false)
// nine out of ten times I'm casting a struct, it's to normalize its fields nullability
val targetSchema = new StructType().add( "tsField", TimestampType, nullable = true )
val targetSchema = new StructType().add("tsField", TimestampType, nullable = true)

val inp = Literal.create(InternalRow(0L), originalSchema)
val expected = InternalRow(0L)
Expand Down

0 comments on commit 6e7f69f

Please sign in to comment.