https://meltano.com/ logo
#announcements
Title
# announcements
f

flat-bear-81546

03/22/2021, 1:37 PM
Anyone monitoring schemas with
--discovery
? What I'm thinking is diffing the output of
--discovery
with a tap, comparing that with the current catalog being used (filtered for only the streams I care about) and then notifying different systems alerting that they need to do something about the difference. Worried about *Source system having columns removed (would fail the tap run in most cases I believe) *Source system having columns added (need to update dbt models depending on what the change is)
seems singer specific and not so much Meltano, but I'm not sure where to go. Maybe someone knows off hand!
r

ripe-musician-59933

03/22/2021, 6:37 PM
What's the problem you're trying to solve? Is this something a specific target could detect when it gets the SCHEMA per stream and compares it against the actual data schema in the destination?
f

flat-bear-81546

03/22/2021, 6:41 PM
The target could detect it, but what would the target decide to do? Problems I'm trying to solve: *When the source system schema changes I want to alert a group of people to let them know. They can then make the choice on what action to take (or not take)
Let's say I"m using
tap-oracle
, with a catalog. Things are running along fine job execution to execution, but the schema in Oracle DB changes before the next execution. The tap wouldn't tell me anything changed as it would continue to use the catalog it's been provided. I want to be notified when this happens so that someone can make a decision, do we need to update the catalog or not (and any downstream dbt transformations) Maybe there's a better option is what you're pointing to?
r

ripe-musician-59933

03/22/2021, 8:09 PM
@flat-bear-81546 With Meltano, the catalog is re-discovered on every run and the selection and other metadata rules are applied on the catalog at runtime, so the tap would automatically be run with a new catalog appropriate for the schema at that time. The target would then receive the new
SCHEMA
message and update the destination schema accordingly. If updating the destination schema is not the desired resolution, I agree it would be useful if Meltano were to detect that the schema change and ask you to resolve it manually. Wanna file an issue? 🙂
f

flat-bear-81546

03/22/2021, 8:22 PM
Right, unless I provide an explicit Catalog. Which is what I assumed I'd do in this scenario to keep things from breaking. Meltano's argument is the opposite which is things will break more if you do provide an explicit Catalog. I hadn't considered this too much, I'll think about it then put an issue in
👍 1