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

Function test_hive_partitioning_nulls

python/pyarrow/tests/test_dataset.py:2305–2310  ·  view source on GitHub ↗
(tempdir)

Source from the content-addressed store, hash-verified

2303
2304
2305def test_hive_partitioning_nulls(tempdir):
2306 table = pa.table({'a': ['x', None, 'z'], 'b': ['x', 'y', None]})
2307 part = ds.HivePartitioning(pa.schema(
2308 [pa.field('a', pa.string()), pa.field('b', pa.string())]), None, 'xyz')
2309 ds.write_dataset(table, tempdir, format='ipc', partitioning=part)
2310 _check_dataset_directories(tempdir, ['a=x/b=x', 'a=xyz/b=y', 'a=z/b=xyz'])
2311
2312
2313def test_partitioning_function():

Callers

nothing calls this directly

Calls 4

schemaMethod · 0.45
fieldMethod · 0.45
stringMethod · 0.45

Tested by

no test coverage detected