@@ -208,7 +208,7 @@ public void testMaxColumns() throws IOException {
208208 File tableDir = temp .newFolder ();
209209 tableDir .delete (); // created by table create
210210
211- int numColumns = 33 ;
211+ int numColumns = TableProperties . METRICS_MAX_INFERRED_COLUMN_DEFAULTS_DEFAULT + 1 ;
212212 List <Types .NestedField > fields = Lists .newArrayListWithCapacity (numColumns );
213213 for (int i = 0 ; i < numColumns ; i ++) {
214214 fields .add (required (i , "col" + i , Types .IntegerType .get ()));
@@ -236,7 +236,7 @@ public void testMaxColumns() throws IOException {
236236
237237 // start at 1 because IDs were reassigned in the table
238238 int id = 1 ;
239- for (; id <= 32 ; id += 1 ) {
239+ for (; id <= TableProperties . METRICS_MAX_INFERRED_COLUMN_DEFAULTS_DEFAULT ; id += 1 ) {
240240 Assert .assertNotNull ("Should have lower bound metrics" , dataFile .lowerBounds ().get (id ));
241241 Assert .assertNotNull ("Should have upper bound metrics" , dataFile .upperBounds ().get (id ));
242242 Assert .assertNull (
@@ -262,7 +262,7 @@ public void testMaxColumnsWithDefaultOverride() throws IOException {
262262 File tableDir = temp .newFolder ();
263263 tableDir .delete (); // created by table create
264264
265- int numColumns = 33 ;
265+ int numColumns = TableProperties . METRICS_MAX_INFERRED_COLUMN_DEFAULTS_DEFAULT + 1 ;
266266 List <Types .NestedField > fields = Lists .newArrayListWithCapacity (numColumns );
267267 for (int i = 0 ; i < numColumns ; i ++) {
268268 fields .add (required (i , "col" + i , Types .IntegerType .get ()));
0 commit comments