GSharayu commented on a change in pull request #6876: URL: https://github.com/apache/incubator-pinot/pull/6876#discussion_r626744248
########## File path: pinot-core/src/test/java/org/apache/pinot/core/util/TableConfigUtilsTest.java ########## @@ -712,14 +712,25 @@ public void testValidateFieldConfig() { .setNoDictionaryColumns(Arrays.asList("myCol1")).build(); try { FieldConfig fieldConfig = - new FieldConfig("myCol21", FieldConfig.EncodingType.RAW, FieldConfig.IndexType.FST, null); + new FieldConfig("myCol21", FieldConfig.EncodingType.RAW, FieldConfig.IndexType.FST, null, null); tableConfig.setFieldConfigList(Arrays.asList(fieldConfig)); TableConfigUtils.validate(tableConfig, schema); Assert.fail("Should fail since field name is not present in schema"); } catch (Exception e) { Assert.assertEquals(e.getMessage(), "Column Name myCol21 defined in field config list must be a valid column defined in the schema"); } + + tableConfig = new TableConfigBuilder(TableType.OFFLINE).setTableName(TABLE_NAME).build(); + try { + FieldConfig fieldConfig = + new FieldConfig("intCol", FieldConfig.EncodingType.DICTIONARY, null, null, FieldConfig.NoDictionaryColumnCompressorCodec.ZSTANDARD); + tableConfig.setFieldConfigList(Arrays.asList(fieldConfig)); + TableConfigUtils.validate(tableConfig, schema); + Assert.fail("Should fail since dictionary encoding does not support compression codec zstandard "); + } catch (Exception e) { Review comment: yes, added both test cases -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org