Skip to content

Commit 2157634

Browse files
committed
Fix Path.glob code
1 parent 63fbcf3 commit 2157634

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/datafusion/input/location.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def build_table(
8383
raise RuntimeError(msg)
8484

8585
# Input could possibly be multiple files. Create a list if so
86-
input_files = Path.glob(input_item)
86+
input_path = Path(input_item)
87+
input_files = [str(p) for p in input_path.parent.glob(input_path.name)]
8788

8889
return SqlTable(table_name, columns, num_rows, input_files)

0 commit comments

Comments
 (0)