From 6f92ccb60a180174a4e767b435a05fc276a2bbae Mon Sep 17 00:00:00 2001 From: Yuming Wang Date: Sat, 19 Aug 2017 23:13:15 +0800 Subject: [PATCH] Fix Docker-based Integration Test errors. --- external/docker-integration-tests/pom.xml | 7 +++++++ .../apache/spark/sql/jdbc/OracleIntegrationSuite.scala | 9 --------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/external/docker-integration-tests/pom.xml b/external/docker-integration-tests/pom.xml index 0fa87a697454..485b562dce99 100644 --- a/external/docker-integration-tests/pom.xml +++ b/external/docker-integration-tests/pom.xml @@ -80,6 +80,13 @@ test-jar test + + org.apache.spark + spark-catalyst_${scala.binary.version} + ${project.version} + test-jar + test + org.apache.spark spark-sql_${scala.binary.version} diff --git a/external/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/OracleIntegrationSuite.scala b/external/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/OracleIntegrationSuite.scala index e14810a32edc..80a129a9e032 100644 --- a/external/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/OracleIntegrationSuite.scala +++ b/external/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/OracleIntegrationSuite.scala @@ -255,15 +255,6 @@ class OracleIntegrationSuite extends DockerJDBCIntegrationSuite with SharedSQLCo val df = dfRead.filter(dfRead.col("date_type").lt(dt)) .filter(dfRead.col("timestamp_type").lt(ts)) - val metadata = df.queryExecution.sparkPlan.metadata - // The "PushedFilters" part should be exist in Datafrome's - // physical plan and the existence of right literals in - // "PushedFilters" is used to prove that the predicates - // pushing down have been effective. - assert(metadata.get("PushedFilters").ne(None)) - assert(metadata("PushedFilters").contains(dt.toString)) - assert(metadata("PushedFilters").contains(ts.toString)) - val row = df.collect()(0) assert(row.getDate(0).equals(dateVal)) assert(row.getTimestamp(1).equals(timestampVal))