joshua_janicas
12/10/2024, 4:51 PMpg_dump with --schema-only in PostGres.
Would that be something funky like setting the batch size to 0 so no rows are ever extracted?joshua_janicas
12/10/2024, 4:53 PMjoshua_janicas
12/10/2024, 4:58 PMBuzzCutNorman
12/10/2024, 5:24 PMBuzzCutNorman
12/10/2024, 7:03 PMI need to create an "empty shell" of our raw data for DBT to create modelsI am a novice DBT users so this might be a well duh question. How would the built out tables assist in creating models. Is there a discovery command that populates the models for you? Just trying to better understand what the blank tables achieve.
joshua_janicas
12/10/2024, 7:07 PMjoshua_janicas
12/10/2024, 7:09 PMBuzzCutNorman
12/10/2024, 7:52 PMBuzzCutNorman
12/10/2024, 7:54 PMjoshua_janicas
12/10/2024, 7:54 PMBuzzCutNorman
12/10/2024, 8:09 PMsync method is run. Which is kicked off by the tap class sync_all method. sync_all is called when a tap class invoke method is called. I think invoke is what meltano invoke and meltano run both start. I am guessing you are envisioning something like meltano --environment prod invoke tap-mssql--client --schema-only . That way you can script out the creation of the template reports which I am guessing is kind of a half manual half scripted workflow at the moment. Am I still on a correct train of thought?joshua_janicas
12/10/2024, 8:12 PM--schema-only kind of flag would be what i'm looking forBuzzCutNorman
12/10/2024, 8:53 PMStream.sync() and Tap.sync_all() they are decorated with @t.final so I can not override them in tap-mssql. The next options for override would be Stream.sync_batches and Stream.sync_records . I will have to play around with this a little and see what comes of it. I am not sure off the top of my head how a target will deal with only schema messages.Edgar Ramírez (Arch.dev)
12/11/2024, 12:08 AMjoshua_janicas
12/11/2024, 11:58 AMBuzzCutNorman
12/11/2024, 5:37 PMStream.sync() in tap-mssql's MSSQLStream class to yield a blank dictionary {} which allowed tap-mssql to run and only emit SCHEMA and STATE messages. Sent that to a target and it happily accepted the schema and state messages only and created blank tables.