mirror of
https://github.com/datahub-project/datahub.git
synced 2025-06-27 05:03:31 +00:00

Co-authored-by: John Joyce <john@Johns-MacBook-Pro.local> Co-authored-by: John Joyce <john@ip-10-0-0-48.us-west-2.compute.internal> Co-authored-by: John Joyce <john@Johns-MBP-432.lan> Co-authored-by: John Joyce <john@ip-192-168-1-200.us-west-2.compute.internal> Co-authored-by: John Joyce <john@Johns-MBP.lan>
20 lines
503 B
Python
20 lines
503 B
Python
from datahub.api.graphql import Operation
|
|
|
|
DATAHUB_HOST = "https//:org.acryl.io/gms"
|
|
DATAHUB_TOKEN = "<your-datahub-access-token"
|
|
|
|
dataset_urn = "urn:li:dataset:(urn:li:dataPlatform:hive,fct_users_created,PROD)"
|
|
|
|
operation_client = Operation(
|
|
datahub_host=DATAHUB_HOST,
|
|
datahub_token=DATAHUB_TOKEN,
|
|
)
|
|
|
|
# Query for changes to the Dataset.
|
|
operations = operation_client.query_operations(
|
|
urn=dataset_urn,
|
|
# limit=5,
|
|
# start_time_millis=<timestamp>,
|
|
# end_time_millis=<timestamo>
|
|
)
|