spencer_lyon
12/01/2022, 3:52 PMplugins.extractors.tap-postgres.schema.stream-name.XX to correctly handle the columns XX. I also had to alter plugins.extracts.tap-postgres.metadata.stream-name.XX to make sure it gets selected. Now if I dump the catalog I see my updated information instead of empty column properties (I was seeing things like {'id": {}} and now I have the proper {"id": {"type": ["integer"], …}})
The problem is that the target does not seem to be getting this additional schema information. I dumped a few lines of code into the target-duckdb plugin and am seeing empty schema entries for the columns I configured above. See below:
{'type': 'SCHEMA', 'stream': 'public-order_item', 'schema': {'type': 'object', 'properties': {'id': {}, 'item_id': {}, 'order_id': {}, 'item_option_id': {}, 'quantity': {}, 'price': {}, 'sales_tax_total': {'type': ['null', 'number']}, ...}
So, when the CREATE TABLE statement is issued, the columns like id, item_id, etc. are excluded from the target table.
Is there a way I can make sure that the same singer schema the tap-postgres is using (that I configured in meltano.yml) is sent on to the target-duckdb?abhishek_ajmera
12/02/2022, 11:12 AMspencer_lyon
12/02/2022, 1:15 PM