<#2868 feat: Reverse Priority Order for Data Repli...
# meltano-repo-activity
g
#2868 feat: Reverse Priority Order for Data Replication Settings in Meltano Issue created by kevinbds Feature scope Configuration (settings parsing, validation, etc.) Description Currently, the replication_method, table_key_properties, and replication_key prioritize properties from the catalog_entry. If these are missing, they fall back on the metadata in meltano.yaml. I suggest reversing this order: prioritize the metadata first and use catalog_entry as the fallback class:
singer_sdk.streams.core.Stream.apply_catalog
- currently: self.primary_keys = catalog_entry.key_properties or table_key_properties self.replication_key = ( catalog_entry.replication_key or table_replication_key ) replication_method = ( catalog_entry.replication_method or table_replication_method ) to: self.primary_keys = table_key_properties or catalog_entry.key_properties self.replication_key = ( table_replication_key or catalog_entry.replication_key ) replication_method = ( table_replication_method or catalog_entry.replication_method ) I want to override the primary keys from the tap, but it's not possible due to this code behavior. I believe that the configuration specified in meltano.yaml should be prioritized when provided. meltano/sdk