From c27f9a3c152f3c17c4fbfb6e7fb16534779488d5 Mon Sep 17 00:00:00 2001 From: SpencerA Date: Fri, 27 Feb 2015 15:04:35 -0800 Subject: [PATCH] HEX-2027: fix as.h2o related issue --- src/main/java/water/exec/AST.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/water/exec/AST.java b/src/main/java/water/exec/AST.java index a3696804e5..fb38426836 100644 --- a/src/main/java/water/exec/AST.java +++ b/src/main/java/water/exec/AST.java @@ -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.");