This fixes the issue for us:
- for( int i = 0; i < inputSizes.length; i++ )
- indexedSplits[ i ] = (int) Math.ceil( (double) numSplits *
inputSizes[ i ] / (double) totalSize );
+ for( int i = 0; i < inputSizes.length; i++ ) {
+ int tempSplits = (int) Math.ceil( (double) numSplits *
inputSizes[ i ] / (double) totalSize );
+ indexedSplits[ i ] = tempSplits == 0 ? 1 : tempSplits;
+ }
J-D
> --
>
> You received this message because you are subscribed to the Google Groups "cascading-user" group.
> To post to this group, send email to
cascadi...@googlegroups.com.
> To unsubscribe from this group, send email to
cascading-use...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/cascading-user?hl=.
>
>
>