fix test helper for build_table's three-value return
build_table returns (table, reverts_column, wikitext_parser) but the jsonl test helper still unpacked two values, so test_jsonl_noargs and test_jsonl_tsv_equivalence failed with a ValueError before reading any output. Also update the docstring, which still described the two-value return. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -38,7 +38,7 @@ setup()
|
||||
|
||||
def read_jsonl_with_schema(filepath: str, **schema_kwargs) -> pd.DataFrame:
|
||||
"""Read JSONL file using PyArrow with explicit schema from wikiq."""
|
||||
table, _ = build_table(**schema_kwargs)
|
||||
table, _, _ = build_table(**schema_kwargs)
|
||||
schema = build_schema(table, **schema_kwargs)
|
||||
pa_table = pj.read_json(
|
||||
filepath,
|
||||
|
||||
Reference in New Issue
Block a user