MCPcopy
hub / github.com/huggingface/datasets / test_always_nullable

Function test_always_nullable

tests/test_arrow_writer.py:406–411  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

404
405
406def test_always_nullable():
407 non_nullable_schema = pa.schema([pa.field("col_1", pa.string(), nullable=False)])
408 output = pa.BufferOutputStream()
409 with ArrowWriter(stream=output) as writer:
410 writer._build_writer(inferred_schema=non_nullable_schema)
411 assert writer._schema == pa.schema([pa.field("col_1", pa.string())])

Callers

nothing calls this directly

Calls 4

ArrowWriterClass · 0.90
fieldMethod · 0.80
schemaMethod · 0.45
_build_writerMethod · 0.45

Tested by

no test coverage detected