-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSV Read Fails on dtypes.int32 After Recent int_ Removal #5601
Comments
|
Here's an example of using int32 in the console that fails.
If I read with int64, the result column is a 64 bit int. With int32, it fails with exception. With no types specified, the result column is a 32 bit int. |
I noticed that there is a mis-mapping to parsers in csv.py, but it seems like there is a more fundamental issue (even after fixing the mappings): from deephaven import read_csv, dtypes
actual = read_csv('primitive_types.csv', {
'bool_': dtypes.bool_,
'byte': dtypes.byte,
'char': dtypes.char,
'short': dtypes.short,
'int32': dtypes.int32,
'long': dtypes.long,
'float32': dtypes.float32,
'double': dtypes.double,
})
The specs look correct: The results wrong: May need to file issue in https://github.com/deephaven/deephaven-csv |
Related to deephaven#5601
The recent removal of
dtypes.int_
caused an error in a benchmark. When switching todtypes.int32
instead, the benchmark still fails but with a different error. I've attached the stack trace.It looks like the CSV read does not support all the scalar dtypes. I'm looking for a true 32 bit int, not a 64 bit one, for my test. (Though I'm not sure that's doable from the python side. Maybe np.int32?) Exception is raised from
/opt/deephaven/venv/lib/python3.10/site-packages/deephaven/csv.py
.csv-read-datatype-exception.txt
The text was updated successfully, but these errors were encountered: