Commit fc819f9
committed
readyset-dataflow: apply default before coercion
When MySQL row based replication is enabled, if the type we are trying
to coerce to is a text with case-insensitive collation
(col_ty.is_citext()), we will attempt to coerce the value.
DfValue::Default is not coerceble, and should have been converted to
the column default value before attempting to coerce.
Closes: REA-5521
Closes: #1471
Release-Note-Core: Fixed a MySQL replication issue when Minimal Row
Image is enabled. If a case-insensitive text column was omitted
during an insert, we will try to coerce its value to the
corresponding type, which will fail if we attempt to coerce before
translating the value to the column default.
Change-Id: Ic95d3ad3ad53abcd61b13a06847b507841ef4705
Reviewed-on: https://gerrit.readyset.name/c/readyset/+/9077
Tested-by: Buildkite CI
Reviewed-by: Michael Zink <michael.z@readyset.io>1 parent 7e2c8ed commit fc819f9
File tree
2 files changed
+52
-1
lines changed- readyset-dataflow/src/node/special
- readyset-mysql/tests
2 files changed
+52
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
503 | | - | |
| 503 | + | |
504 | 504 | | |
| 505 | + | |
505 | 506 | | |
506 | 507 | | |
507 | 508 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2734 | 2734 | | |
2735 | 2735 | | |
2736 | 2736 | | |
| 2737 | + | |
| 2738 | + | |
| 2739 | + | |
| 2740 | + | |
| 2741 | + | |
| 2742 | + | |
| 2743 | + | |
| 2744 | + | |
| 2745 | + | |
| 2746 | + | |
| 2747 | + | |
| 2748 | + | |
| 2749 | + | |
| 2750 | + | |
| 2751 | + | |
| 2752 | + | |
| 2753 | + | |
| 2754 | + | |
| 2755 | + | |
| 2756 | + | |
| 2757 | + | |
| 2758 | + | |
| 2759 | + | |
| 2760 | + | |
| 2761 | + | |
| 2762 | + | |
| 2763 | + | |
| 2764 | + | |
| 2765 | + | |
| 2766 | + | |
| 2767 | + | |
| 2768 | + | |
| 2769 | + | |
| 2770 | + | |
| 2771 | + | |
| 2772 | + | |
| 2773 | + | |
| 2774 | + | |
| 2775 | + | |
| 2776 | + | |
| 2777 | + | |
| 2778 | + | |
| 2779 | + | |
| 2780 | + | |
| 2781 | + | |
| 2782 | + | |
| 2783 | + | |
| 2784 | + | |
| 2785 | + | |
| 2786 | + | |
0 commit comments