Skip to content

Commit

Permalink
Merge branch 'master' of github.com:0xdata/h2o
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalohlava committed Oct 1, 2013
2 parents 10f340f + e71908a commit 1f94f78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/water/parser/DParseTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ private void calculateColumnEncodings() {
for(int i = 0; i < _ncolumns; ++i){
// Entirely toss out numeric columns which are largely broken.
if( (_colTypes[i]==ICOL || _colTypes[i]==DCOL || _colTypes[i]==FCOL ) &&
(double)_invalidValues[i]/_numRows > 0.2 ) {
(double)_invalidValues[i]/_numRows > 0.99 ) {
_enums[i] = null;
_max[i] = _min[i] = 0;
_scale[i] = 0;
Expand Down Expand Up @@ -723,7 +723,7 @@ private void calculateColumnEncodings() {
_colTypes[i] = SHORT;
_bases[i] = (int)_min[i];
} else if (_max[i] - _min[i] < (1L << 32) &&
_min[i] > Integer.MIN_VALUE && _min[i] < Integer.MAX_VALUE) {
_min[i] > Integer.MIN_VALUE && _max[i] < Integer.MAX_VALUE) {
_colTypes[i] = INT;
_bases[i] = (int)_min[i];
} else
Expand Down

0 comments on commit 1f94f78

Please sign in to comment.