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

Method _build_nested_paths

python/pyarrow/parquet/core.py:349–366  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

347 self.close()
348
349 def _build_nested_paths(self):
350 paths = self.reader.column_paths
351
352 result = defaultdict(list)
353
354 for i, path in enumerate(paths):
355 key = path[0]
356 rest = path[1:]
357 while True:
358 result[key].append(i)
359
360 if not rest:
361 break
362
363 key = '.'.join((key, rest[0]))
364 rest = rest[1:]
365
366 return result
367
368 @property
369 def metadata(self):

Callers 1

__init__Method · 0.95

Calls 2

appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected