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
NegativeArraySizeException when reading data from binary table #131
Comments
Are there any news on this? I have a workaround, but it is considerably slower and more verbose than the other approach. |
I'd be happy to work with you on this if still interested, especially if you have specific solution (maybe even a pull request) in mind... Let me know... |
If I remember correctly the problem I'm afraid there is no simple solution: |
I did take a peek last night, and
What do you think? |
I don't think this would solve my problem: |
I see. Maybe we can think about a better way to store column data, other than primitive java arrays. For example, I do think rather than using a raw java |
That is certainly a good approach, but it might require a bigger refactoring. Strictly speaking I think we just need to replace the |
That might work too. But, whatever we do, we'll be breaking backward compatibility for If we do that, I'd vote for the better more comprehensive fix, rather than the quick fix... If interested, you could go ahead and play with some ideas on branches of your fork. It would be nice if you tried some benchmarking too, to see how much performance is affected by the changes. It's unlikely the performance will change so much as to be a showstopper, but it would be good to know it anyway... |
I have a big binary table (70 million rows), and when I use the following method:
fits.getHDU(1).getColumn(0)
I get the following exception:
This is because ArrayFuncs.newInstance takes an int for the dimension, and the second column is a string with 30 characters.
Note that the column I am trying to read contains integers, so it would fit in the max integer value: is there a way for me to read just one column without the library trying to read all the others?
The text was updated successfully, but these errors were encountered: