[Mulgara-dev] NegativeArraySizeException

Alex Hall alexhall at revelytix.com
Thu Nov 6 15:08:14 UTC 2008


James Leigh wrote:
> Hi Paul et al,
> 
> I loaded up 25m of BSBM data and executed a query like the one below.
> Instead of getting any results, I got this exception. In
> HybridTuples.java it casts a long into an int. This may account for the
> int being negative. I have the dataset on another machine and can make
> it and the exact query available if desired. Paul can you review
> HybridTuples and DenseLongMatrix and make sure the long/int handling is
> correct?

Just taking a quick look here...  When the LeftJoin operation calculates the
upper bound of its row count, it multiplies a long by a long without checking
for overflow, which is how I suspect that the negative value is creeping in.  If
you're building from source, try applying the attached patch and let me know if
it fixes the problem.

Regards,
Alex
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: LeftJoin.txt
URL: <http://lists.mulgara.org/pipermail/mulgara-dev/attachments/20081106/65aaae83/attachment.txt>


More information about the Mulgara-dev mailing list