aboutsummaryrefslogtreecommitdiff
path: root/docker-integration-tests
diff options
context:
space:
mode:
authorWenchen Fan <wenchen@databricks.com>2015-11-17 23:51:05 -0800
committerReynold Xin <rxin@databricks.com>2015-11-17 23:51:05 -0800
commit8019f66df5c65e21d6e4e7e8fbfb7d0471ba3e37 (patch)
treeec6a10876a06dcf365b51fd5a5204f5728e5a5e4 /docker-integration-tests
parent9154f89befb7a33d4853cea95efd7dc6b25d033b (diff)
downloadspark-8019f66df5c65e21d6e4e7e8fbfb7d0471ba3e37.tar.gz
spark-8019f66df5c65e21d6e4e7e8fbfb7d0471ba3e37.tar.bz2
spark-8019f66df5c65e21d6e4e7e8fbfb7d0471ba3e37.zip
[SPARK-10186][SQL][FOLLOW-UP] simplify test
Author: Wenchen Fan <wenchen@databricks.com> Closes #9783 from cloud-fan/postgre.
Diffstat (limited to 'docker-integration-tests')
-rw-r--r--docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/PostgresIntegrationSuite.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/PostgresIntegrationSuite.scala b/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/PostgresIntegrationSuite.scala
index 2e18d0a2ba..6eb6b3391a 100644
--- a/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/PostgresIntegrationSuite.scala
+++ b/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/PostgresIntegrationSuite.scala
@@ -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)
}
}