Skip to content

Commit c0452ed

Browse files
fix(examples): match builder fixture delimiter
Signed-off-by: dedsec-terminal <dedsec.terminal@gmail.com>
1 parent 20ab8fa commit c0452ed

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

examples/csv-read-options.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,14 @@
2828
tmp_path = Path(tmp_dir)
2929
csv_file = tmp_path / "data.csv"
3030
gz_file = tmp_path / "data.csv.gz"
31+
builder_csv_file = tmp_path / "builder-data.csv"
3132

3233
sample_csv = "id,name,value\n1,alice,100\n2,bob,200\n3,charlie,null\n"
3334
csv_file.write_text(sample_csv)
3435

36+
builder_csv = "id|name|value\n1|'alice'|100\n2|'bob'|200\n3|'charlie'|null\n"
37+
builder_csv_file.write_text(builder_csv)
38+
3539
with gzip.open(gz_file, "wt") as f:
3640
f.write(sample_csv)
3741

@@ -67,7 +71,7 @@
6771
.with_truncated_rows(False) # noqa: FBT003
6872
.with_newlines_in_values(True) # noqa: FBT003
6973
)
70-
df = ctx.read_csv(str(csv_file), options=options)
74+
df = ctx.read_csv(str(builder_csv_file), options=options)
7175
df.show()
7276

7377
# Example 4: Advanced options

0 commit comments

Comments
 (0)