Merging upstream version 17.7.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
87252470ef
commit
137902868c
93 changed files with 41580 additions and 39040 deletions
|
@ -186,3 +186,16 @@ class TestLineage(unittest.TestCase):
|
|||
self.assertEqual(downstream.alias, "")
|
||||
|
||||
self.assertEqual(downstream.downstream, [])
|
||||
|
||||
def test_lineage_union(self) -> None:
|
||||
node = lineage(
|
||||
"x",
|
||||
"SELECT ax AS x FROM a UNION SELECT bx FROM b UNION SELECT cx FROM c",
|
||||
)
|
||||
assert len(node.downstream) == 3
|
||||
|
||||
node = lineage(
|
||||
"x",
|
||||
"SELECT x FROM (SELECT ax AS x FROM a UNION SELECT bx FROM b UNION SELECT cx FROM c)",
|
||||
)
|
||||
assert len(node.downstream) == 3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue