storage: MySQL's MySqlColumnDesc
fails to separate concerns
#26999
Labels
C-refactoring
Category: replacing or reorganizing code
MySQL sources store information about the tables' columns in
MySqlColumnDesc
:Here is the iimpl of
mz_repr::relation::ColumnType
:MySqlColumnDesc::column_type
:Option
because it isNone
when users specifyIGNORE COLUMNS
on this column.ScalarType
because if the MySQL type is unsupported, we force users to specifyTEXT COLUMNS
.This fails to separate concerns––e.g. the
MySqlColumnDesc
cannot describe the actual upstream table's schema because we apply apply configuration options to it.If we fully seprated concerns, purification would be able to describe the tables we want to ingest, and processing the
TEXT COLUMNS
andIGNORE COLUMNS
options could occur in planning. With the current design that is impossible.The text was updated successfully, but these errors were encountered: