Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
style fix.
  • Loading branch information
gatorsmile committed Apr 27, 2016
commit f825dcaabf9d5bf7ffb20a72166e28f32aeec67a
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ trait CheckAnalysis extends PredicateHelper {
|Conflicting attributes: ${conflictingAttributes.mkString(",")}
""".stripMargin)


case e: Except if !e.duplicateResolved =>
val conflictingAttributes = e.left.outputSet.intersect(e.right.outputSet)
failAnalysis(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,9 @@ class DataFrameSuite extends QueryTest with SharedSQLContext {
checkAnswer(
lowerCaseData.except(upperCaseData),
Row(1, "a") ::
Row(2, "b") ::
Row(3, "c") ::
Row(4, "d") :: Nil)
Row(2, "b") ::
Row(3, "c") ::
Row(4, "d") :: Nil)
checkAnswer(lowerCaseData.except(lowerCaseData), Nil)
checkAnswer(upperCaseData.except(upperCaseData), Nil)

Expand All @@ -420,8 +420,8 @@ class DataFrameSuite extends QueryTest with SharedSQLContext {
checkAnswer(
df.except(df.filter("0 = 1")),
Row("id1", 1) ::
Row("id", 1) ::
Row("id1", 2) :: Nil)
Row("id", 1) ::
Row("id1", 2) :: Nil)

// check if the empty set on the left side works
checkAnswer(
Expand Down Expand Up @@ -1135,7 +1135,6 @@ class DataFrameSuite extends QueryTest with SharedSQLContext {
val df2 = (1 to 30).map(Tuple1.apply).toDF("i")
val intersect = df1.intersect(df2)
val except = df1.except(df2)
except.explain(true)
assert(intersect.count() === 30)
assert(except.count() === 70)
}
Expand Down