Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohanzhan-db committed Jan 12, 2024
1 parent 876fab5 commit 541fe47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/data_prep/convert_delta_to_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@ def fetch_DT(args: Namespace) -> None:

os.makedirs(args.json_output_path, exist_ok=True)

if not args.json_output_filename.endswith('.jsonl'):
raise ValueError("json_output_filename needs to be a jsonl file")

log.info(f'Directory {args.json_output_path} created.')

method = 'dbsql'
Expand Down

0 comments on commit 541fe47

Please sign in to comment.