Skip to content

Commit

Permalink
Address Caleb's comments. Change error message and remove the upper l…
Browse files Browse the repository at this point in the history
…imit of 8000000.
  • Loading branch information
yi ren committed May 25, 2012
1 parent 52d01a3 commit 8f75017
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions methods/cart/src/pg_gp/dt.sql_in
Expand Up @@ -2202,8 +2202,8 @@ BEGIN
RAISE INFO 'NUMBER OF CLASSES IN THE TRAINING SET %', num_classes; RAISE INFO 'NUMBER OF CLASSES IN THE TRAINING SET %', num_classes;
END IF; END IF;


IF(num_classes < 2 OR num_classes > 8000000)THEN IF(num_classes < 2) THEN
RAISE EXCEPTION 'The number of classes must be in range 2 to 8,000,000!'; RAISE EXCEPTION 'the number of classes must be greater than 2';
END IF; END IF;


EXECUTE 'SELECT count(*) FROM '|| training_table_name ||';' INTO total_size; EXECUTE 'SELECT count(*) FROM '|| training_table_name ||';' INTO total_size;
Expand Down

0 comments on commit 8f75017

Please sign in to comment.