From 45a445915e1936ef495cf43ac00b8b1d6ea53156 Mon Sep 17 00:00:00 2001 From: Raunak Bhagat Date: Thu, 6 Feb 2025 01:12:00 -0800 Subject: [PATCH] Add printout of query id --- daft/dataframe/dataframe.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daft/dataframe/dataframe.py b/daft/dataframe/dataframe.py index d658cde33d..070d6c306c 100644 --- a/daft/dataframe/dataframe.py +++ b/daft/dataframe/dataframe.py @@ -190,15 +190,17 @@ def _explain_broadcast(self): plan_time_end = datetime.now(timezone.utc) try: + id = uuid4() requests.post( f"http://{addr}:{port}", json={ - "id": str(uuid4()), + "id": str(id), "mermaid-plan": mermaid_plan, "plan-time-start": str(plan_time_start), "plan-time-end": str(plan_time_end), }, ) + print(f"Query ID: {id}") except requests.exceptions.ConnectionError as conn_error: warnings.warn( "Unable to broadcast daft query plan over http."