()
| 607 | |
| 608 | # 14 should not match, unmatched entry form the right table |
| 609 | def test_outer_join_02(): |
| 610 | t1 = T( |
| 611 | """ |
| 612 | | a | b |
| 613 | 1 | 11 | 111 |
| 614 | 2 | 12 | 112 |
| 615 | 3 | 13 | 113 |
| 616 | 4 | 14 | 114 |
| 617 | """ |
| 618 | ) |
| 619 | |
| 620 | t2 = T( |
| 621 | """ |
| 622 | | c | d |
| 623 | 1 | 11 | 211 |
| 624 | 2 | 12 | 212 |
| 625 | 3 | 13 | 213 |
| 626 | 4 | 13 | 214 |
| 627 | """ |
| 628 | ) |
| 629 | |
| 630 | expected = T( |
| 631 | """ |
| 632 | a | t2_c | s |
| 633 | 11 | 11 | 322 |
| 634 | 12 | 12 | 324 |
| 635 | 13 | 13 | 326 |
| 636 | 13 | 13 | 327 |
| 637 | 14 | | |
| 638 | """ |
| 639 | ).update_types(a=Optional[int]) |
| 640 | |
| 641 | res = t1.join_outer(t2, t1.a == t2.c).select( |
| 642 | t1.a, |
| 643 | t2_c=t2.c, |
| 644 | s=pw.require(t1.b + t2.d, t1.id, t2.id), |
| 645 | ) |
| 646 | assert_table_equality_wo_index(res, expected) |
| 647 | |
| 648 | |
| 649 | # 14 should not match, unmatched entry form the right table |
nothing calls this directly
no test coverage detected