After saving and reading the .jay file twice, an error will be reported
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Reproduce the provided script that reads and overwrites 111.jay, then inspect datatable/utils/fread.py at _resolve_archive and the core.open_jay entry point. Compare the to_jay and fread paths for repeated use; done means the same .jay file can be saved, read, saved again, and read successfully without an invalid-signature error.
Written by the indexing model from the issue text.
Description
BUG:
when i save and read the '.jay' file twice, an error will be reported like this :
Traceback (most recent call last):
E:/BaiduNetdiskWorkspace/01-----------------ModelDevelopment/XAJ/V2/Main.py:28 in a = fread("111.jay")
$PY/datatable\utils\fread.py:122 in _resolve_source_any return _resolve_source_file(src, tempfiles)
$PY/datatable\utils\fread.py:203 in _resolve_source_file return _resolve_archive(file, None, tempfiles)
$PY/datatable\utils\fread.py:326 in _resolve_archive out_result = core.open_jay(filename)
(with $PY = C:\Users\lenovo\AppData\Local\Programs\Python\Python36\lib\site-packages)
IOError: Invalid signature for a Jay file: last 4 bytes are \x00\x00\x00\x00
CODE:
url = "https://raw.githubusercontent.com/Rdatatable/data.table/master/vignettes/flights14.csv"
a = fread(url)
a.to_jay("111.jay")
a = fread("111.jay")
a.to_jay("111.jay")
a = fread("111.jay")
Enviroment:
datatable version: V1.0.0
python version: 3.6.4
operating system: WIN 11
Please help me, THANKS!
- Dominant language
- C++
- Stars
- 1.9k
- Forks
- 164
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from h2oai/datatable
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
deepseek-ai/DeepGEMM-Ascend#49 ·
Maintainers usually reply within 1 day
-
bug needs testing platform:windows topic:buildsystem topic:platforms
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
godotengine/godot#126110 · 1 comment ·
Maintainers usually reply within 1 day
-
comp-s3queue
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
ClickHouse/ClickHouse#137649 ·
Maintainers usually reply within 1 day
-
area/docdb kind/enhancement mvu-pg15-pg19 priority/low
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
yugabyte/yugabyte-db#40355 ·
Maintainers usually reply within 1 day
-
Clear params.inputs in dials.indexPossibly taken @phyy-nx claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
dials/dials#3361 · 1 comment ·
Maintainers usually reply within 1 day