File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11from pathlib import Path
2- from .tables import FileSystemJsonTables
2+ from .tables import FileSystemJsonLTables
33from .eval import eval_sql
44from argparse import ArgumentParser
55from csv import DictWriter
99
1010
1111def query (code : str , workdir : Path , ctx : dict ):
12- tables = FileSystemJsonTables (workdir = workdir )
12+ tables = FileSystemJsonLTables (workdir = workdir )
1313 result = eval_sql (code = code , tables = tables , ctx = ctx )
1414 return result
1515
Original file line number Diff line number Diff line change @@ -675,6 +675,7 @@ def __init__(self, workdir: Path):
675675 def _ensure_metadata_table (self ):
676676 """Ensure the metadata table exists"""
677677 metadata_path = self .workdir / "__schema__.jsonl"
678+ self .workdir .mkdir (parents = True , exist_ok = True )
678679 if not metadata_path .exists ():
679680 metadata_path .write_text ("" )
680681
You can’t perform that action at this time.
0 commit comments