Skip to content
Snippets Groups Projects
Commit 8019f66d authored by Wenchen Fan's avatar Wenchen Fan Committed by Reynold Xin
Browse files

[SPARK-10186][SQL][FOLLOW-UP] simplify test

Author: Wenchen Fan <wenchen@databricks.com>

Closes #9783 from cloud-fan/postgre.
parent 9154f89b
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ class PostgresIntegrationSuite extends DockerJDBCIntegrationSuite {
df.write.jdbc(jdbcUrl, "public.barcopy", new Properties)
// Test write null values.
df.select(df.queryExecution.analyzed.output.map { a =>
Column(If(Literal(true), Literal(null), a)).as(a.name)
Column(Literal.create(null, a.dataType)).as(a.name)
}: _*).write.jdbc(jdbcUrl, "public.barcopy2", new Properties)
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment