We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56fd51d commit b5d026eCopy full SHA for b5d026e
graphgen/operators/read/read.py
@@ -53,6 +53,7 @@ def read(
53
working_dir: Optional[str] = "cache",
54
parallelism: int = 4,
55
recursive: bool = True,
56
+ read_num: Optional[int] = None,
57
**reader_kwargs: Any,
58
) -> ray.data.Dataset:
59
"""
@@ -120,6 +121,9 @@ def read(
120
121
}
122
)
123
124
+ if read_num is not None:
125
+ combined_ds = combined_ds.limit(read_num)
126
+
127
logger.info("[READ] Successfully read files from %s", input_path)
128
return combined_ds
129
0 commit comments