Github user marmbrus commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1147#discussion_r15679103
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/JoinSuite.scala ---
    @@ -17,15 +17,42 @@
     
     package org.apache.spark.sql
     
    +import org.scalatest.BeforeAndAfterEach
    +
    +import org.apache.spark.sql.catalyst.analysis.UnresolvedRelation
     import org.apache.spark.sql.TestData._
    -import org.apache.spark.sql.catalyst.plans.{LeftOuter, RightOuter, 
FullOuter, Inner}
    +import org.apache.spark.sql.catalyst.plans.JoinType
    +import org.apache.spark.sql.catalyst.plans.{LeftOuter, RightOuter, 
FullOuter, Inner, LeftSemi}
    +import org.apache.spark.sql.execution._
    +import org.apache.spark.sql.test.TestSQLContext
     import org.apache.spark.sql.test.TestSQLContext._
     
    -class JoinSuite extends QueryTest {
    +class JoinSuite extends QueryTest with BeforeAndAfterEach {
     
       // Ensures tables are loaded.
       TestData
     
    +  var left: UnresolvedRelation = _
    +  var right: UnresolvedRelation = _
    +
    +  override def beforeEach() {
    +    super.beforeEach()
    +    left = UnresolvedRelation(None, "left", None)
    +    right = UnresolvedRelation(None, "right", None)
    +  }
    +
    +  override def afterEach() {
    +    super.afterEach()
    +
    +    TestSQLContext.catalog.unregisterTable(None, "left")
    +    TestSQLContext.catalog.unregisterTable(None, "right")
    +  }
    +  
    +  def check(run: () => Unit) {
    --- End diff --
    
    What is the point of this function?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to