-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed handling of projected expressions in
TreeNode
Fix #1072
- Loading branch information
Showing
3 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
core/src/test/scala/com/databricks/labs/remorph/intermediate/JoinTest.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.databricks.labs.remorph.intermediate | ||
|
||
import org.scalatest.matchers.must.Matchers | ||
import org.scalatest.wordspec.AnyWordSpec | ||
|
||
class JoinTest extends AnyWordSpec with Matchers { | ||
"Join" should { | ||
"propagage expressions" in { | ||
val join = Join( | ||
NoopNode, | ||
NoopNode, | ||
Some(Name("foo")), | ||
InnerJoin, | ||
Seq.empty, | ||
JoinDataType(is_left_struct = true, is_right_struct = true)) | ||
join.expressions mustBe Seq(Name("foo")) | ||
} | ||
} | ||
} |