Closed windiana42 closed 3 months ago
@nicolasmueller I prefer the polymorphism solution to getting rid of the DB2 dependency in generic code
Currently the signature of
get_create_table_suffix
is inconsistent: The generic table takestable: Table
while the DB2 version takesget_create_table_suffix: str | None
. So either we have to adjust the generic version or foldresolve_materialization_details_label
into the DB2 version.I'd be in favor of the first version since the function is used without
resolve_materialization_details_label
incopy_raw_sql_tables_to_transaction
.
Oops. Yes the idea to simplify usage by just providing a table object is more tricky. So I went back to the old interface. One could consider to have take Table | Stage
. I would think this is nicer encapsulation. But not nice enough to refactor it now.
Polymorphism is used instead.
Checklist
docs/source/changelog.md
entry