Skip to content

Commit

Permalink
Add timer for optimizing
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohanzhan-db committed Dec 4, 2023
1 parent 97f868c commit 23001cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/data_prep/convert_delta_to_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import argparse
import logging
import os
import time

import pandas as pd
from databricks import sql
Expand Down Expand Up @@ -129,5 +130,10 @@ def stream_delta_to_json(server_hostname: str,
tablename = args.delta_table_name
json_output_path = args.json_output_path

tik = time.time()
print("start timer", tik)

stream_delta_to_json(server_hostname, access_token, http_path, tablename, json_output_path)

print("end timer", time.time() - tik)

0 comments on commit 23001cf

Please sign in to comment.