Commit a93fb93 1 parent b96667a commit a93fb93 Copy full SHA for a93fb93
File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ def __init__(
29
29
self ,
30
30
path : str ,
31
31
name : str | None = None ,
32
+ schema : pa .Schema | None = None ,
32
33
filesystem : AbstractFileSystem | None = None ,
33
34
bucket : str | None = None ,
34
35
partitioning : str | list [str ] | None = None ,
@@ -39,6 +40,7 @@ def __init__(
39
40
** fs_kwargs ,
40
41
):
41
42
self ._path = path
43
+ self ._schema = schema
42
44
self ._bucket = bucket
43
45
self ._cached = cached
44
46
self ._format = format
@@ -173,6 +175,7 @@ def load(self):
173
175
if self .has_files :
174
176
self ._arrow_dataset = pds .dataset (
175
177
self ._path ,
178
+ schema = self ._schema ,
176
179
filesystem = self ._filesystem ,
177
180
format = self ._format ,
178
181
partitioning = self ._partitioning ,
@@ -858,6 +861,7 @@ def load(
858
861
859
862
self ._arrow_dataset = pds .parquet_dataset (
860
863
self ._metadata_file ,
864
+ schema = self ._schema ,
861
865
partitioning = self ._partitioning ,
862
866
filesystem = self ._filesystem ,
863
867
)
You can’t perform that action at this time.
0 commit comments