Skip to content

Commit 6a10080

Browse files
committed
simply test
1 parent b362d50 commit 6a10080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/PostgresIntegrationSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class PostgresIntegrationSuite extends DockerJDBCIntegrationSuite {
8888
df.write.jdbc(jdbcUrl, "public.barcopy", new Properties)
8989
// Test write null values.
9090
df.select(df.queryExecution.analyzed.output.map { a =>
91-
Column(If(Literal(true), Literal(null), a)).as(a.name)
91+
Column(Literal.create(null, a.dataType)).as(a.name)
9292
}: _*).write.jdbc(jdbcUrl, "public.barcopy2", new Properties)
9393
}
9494
}

0 commit comments

Comments
 (0)