Repository: spark
Updated Branches:
  refs/heads/master 9154f89be -> 8019f66df


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

Author: Wenchen Fan <wenc...@databricks.com>

Closes #9783 from cloud-fan/postgre.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/8019f66d
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/8019f66d
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/8019f66d

Branch: refs/heads/master
Commit: 8019f66df5c65e21d6e4e7e8fbfb7d0471ba3e37
Parents: 9154f89
Author: Wenchen Fan <wenc...@databricks.com>
Authored: Tue Nov 17 23:51:05 2015 -0800
Committer: Reynold Xin <r...@databricks.com>
Committed: Tue Nov 17 23:51:05 2015 -0800

----------------------------------------------------------------------
 .../scala/org/apache/spark/sql/jdbc/PostgresIntegrationSuite.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/8019f66d/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/PostgresIntegrationSuite.scala
----------------------------------------------------------------------
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 2e18d0a..6eb6b33 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)
   }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to