-
Notifications
You must be signed in to change notification settings - Fork 50
Description
Hi, is there a way to disable some table columns from config.json on copy_rows step?
MySQL has generated columns feature. See docs here.
So we can't insert or update value for generated columns since values of a generated column are computed from an expression included in the column definition.
We need to ignore those columns on copy_rows step. They will be filled by database automatically.
🤔 Tool may detect those columns automatically and ignore them from select/insert process, if MySQL has some metadata to identify generated columns at information_schema.columns.
💡 But manually entering those kinds of table columns from config.json should be enough for most cases. Also it wil give more flexibility for some future problematic columns.
Note: I've read about a possible workaround at issue #17 and evaluate this comment for my case. But it's not a solution for generated columns.
These columns also don't accept null values. An example error message from MySQL:
... The value specified for generated column 'anniversary_date' in table 'customer' is not allowed.