MCPcopy Create free account
hub / github.com/apache/arrow / read_table

Function read_table

python/pyarrow/orc.py:300–310  ·  view source on GitHub ↗
(source, columns=None, filesystem=None)

Source from the content-addressed store, hash-verified

298
299
300def read_table(source, columns=None, filesystem=None):
301 filesystem, path = _resolve_filesystem_and_path(source, filesystem)
302 if filesystem is not None:
303 source = filesystem.open_input_file(path)
304
305 if columns is not None and len(columns) == 0:
306 result = ORCFile(source).read().select(columns)
307 else:
308 result = ORCFile(source).read(columns=columns)
309
310 return result
311
312
313read_table.__doc__ = """

Callers 2

Calls 6

lenFunction · 0.85
ORCFileClass · 0.85
open_input_fileMethod · 0.45
selectMethod · 0.45
readMethod · 0.45

Tested by 2