Skip to content

Commit

Permalink
HEX-2027: fix as.h2o related issue
Browse files Browse the repository at this point in the history
  • Loading branch information
spennihana committed Feb 27, 2015
1 parent af82376 commit c27f9a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/water/exec/AST.java
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ static Object select( long len, AST ast, Env env ) {
if( ary.numCols() != 1 ) throw new IllegalArgumentException("Selector must be a single column: "+ary.toStringNames());
Vec vec = ary.anyVec();
// Check for a matching column of bools.
if( ary.numRows() == len && vec.min()>=0 && vec.max()<=1 && vec.isInt() )
if( ary.numRows() == len && vec.min()>=0 && vec.max()<=1 && vec.isInt() && ary.numRows() > 1)
return ary; // Boolean vector selection.
// Convert single vector to a list of longs selecting rows
if(ary.numRows() > 10000000) throw H2O.fail("Unimplemented: Cannot explicitly select > 10000000 rows in slice.");
Expand Down

0 comments on commit c27f9a3

Please sign in to comment.