Commit b11ae97
Paul Mathew
test(upsert): drop redundant TestUpsertScanProjection test
Removes ``test_when_matched_true_keeps_star_projection`` per review
feedback — the spy-on-init assertion that ``selected_fields=("*",)``
is preserved on the ``=True`` path is redundant with
``test_update_mode_actually_updates_non_key_columns``, which proves
the wide projection works end-to-end by detecting non-key value drift
through ``get_rows_to_update``. A regression that narrowed the
``=True`` projection unconditionally would fail the end-to-end test
because ``rows_updated`` would drop to 0 and the read-back would see
the stale value.
Leaves two focused tests in ``TestUpsertScanProjection``:
- ``test_when_matched_false_projects_join_cols_only`` pins the
positive case (narrowing fires on the insert-on-no-match branch).
- ``test_update_mode_actually_updates_non_key_columns`` pins the
negative case (the update branch keeps the wide projection it needs).
Co-authored-by: Cursor <[email protected]>1 parent b81990d commit b11ae97
1 file changed
Lines changed: 8 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1012 | 1012 | | |
1013 | 1013 | | |
1014 | 1014 | | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
1040 | | - | |
1041 | | - | |
1042 | | - | |
1043 | 1015 | | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
1048 | | - | |
1049 | | - | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
1050 | 1024 | | |
1051 | 1025 | | |
1052 | 1026 | | |
| |||
0 commit comments