adam_roderick
08/21/2020, 2:37 AMadam_roderick
08/21/2020, 2:37 AMadam_roderick
08/21/2020, 2:37 AMadam_roderick
08/21/2020, 2:38 AMmeltano config to produce the first result?nevin_morgan
08/21/2020, 2:55 AMnevin_morgan
08/21/2020, 3:13 AMnevin_morgan
08/21/2020, 3:21 AMconfig:
test:
- breadcrumbs: []
metadata:
table-key-properties:
- id
schema-name: public
database-name: packet_api
row_count: 11374
is-view: false
selected: false
replication-method: FULL_TABLEnevin_morgan
08/21/2020, 3:23 AMnevin_morgan
08/21/2020, 3:25 AMmeltano config <plugin> set metadata.replication-method FULL_TABLE should do the trick if you wanted to go that route and set only the replication method property on the metadata objectadam_roderick
08/21/2020, 4:12 AMadam_roderick
08/21/2020, 4:17 AMadam_roderick
08/21/2020, 4:25 AMadam_roderick
08/21/2020, 4:29 AMextractors:
- name: tap-postgres
...
metadata:
hardware_reservation_histories:
replication-method: FULL_TABLE
does not apply the replication-method metadata property in the catalog:adam_roderick
08/21/2020, 4:30 AMnevin_morgan
08/21/2020, 2:18 PMdouwe_maan
08/21/2020, 4:27 PMtap_stream_id in your catalog file, which is required per https://github.com/singer-io/getting-started/blob/master/docs/DISCOVERY_MODE.md#the-catalog. That's the value Meltano will match the entity identifier against, so if it's missing it'll never match 😬
Could you add a tap_stream_id ? We could also have Meltano fall back on stream if no tap_stream_id is set, but since it's defined as required, I was assuming all taps would have one.douwe_maan
08/21/2020, 4:28 PMmeltano config <plugin> already, which outputs the exact same config that will be dumped in config.json, but I'll create an issue to add a new meltano catalog <extractor> command as well!adam_roderick
08/21/2020, 4:44 PMdouwe_maan
08/21/2020, 4:44 PMStream (entity) metadatapairs (e.g.<key>: <value>) are nested under top-level entity identifiers that correspond to Singer stream{"replication-method": "INCREMENTAL"}values.tap_stream_id
douwe_maan
08/21/2020, 4:45 PMEntity and attribute names can be discovered using.meltano select --list --all <plugin>
douwe_maan
08/21/2020, 4:45 PMtap_stream_id s too, not table_name .
I get how this could be easy to miss though, since using table names seems so natural.adam_roderick
08/21/2020, 4:45 PMdouwe_maan
08/21/2020, 4:45 PMadam_roderick
08/21/2020, 4:45 PMdouwe_maan
08/21/2020, 4:47 PMdouwe_maan
08/21/2020, 5:30 PM