Does it will inspect mysql db called <ruicore.app>...
# ingestion
m
Does it will inspect mysql db called ruicore.app and ruicore.parsed_app?
Since after
ruicore.parsed_app
schema is updated,I didn’t see change in datahub ui?
m
@modern-nail-74015: to update the schema metadata you need to run the regular sql ingestion (https://datahubproject.io/docs/metadata-ingestion/source_docs/mysql)
m
this worked successfully when I try to pull schema from mysql
m
the code you have is just emitting a lineage edge between
<http://ruicore.app|ruicore.app>
and
ruicore.parsed_app
... not connecting to the db and extracting any metadata
m
How can I push metadata change in python use rest?
m
sure .. in this case you can build the metadata change event like you are doing in python
and then call emitter.emit(mce)
are you asking: how to build an MCE in python?
m
I follow the link in instruction,write my own code
Copy code
lineage_mce_2 = builder.make_lineage_mce(
        [
            builder.make_dataset_urn("mysql", "<http://ruicore.app|ruicore.app>"),
        ],
        builder.make_dataset_urn("mysql", "ruicore.parsed_app"),
    )

    emitter = DatahubRestEmitter("<http://localhost:8080>")
    emitter.emit_mce(lineage_mce_2)
yes,sort of
I want to use python to push meta change
m
you can look here to figure out how to construct an mce
OK,I will check that link out
m
cool.