Jackie-Jiang commented on a change in pull request #7648:
URL: https://github.com/apache/pinot/pull/7648#discussion_r738954796
##########
File path:
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/utils/TableConfigUtils.java
##########
@@ -655,35 +655,39 @@ private static void validateFieldConfigList(@Nullable
List<FieldConfig> fieldCon
Preconditions.checkState(fieldConfigColSpec != null,
"Column Name " + columnName + " defined in field config list must be
a valid column defined in the schema");
- List<String> noDictionaryColumns =
indexingConfigs.getNoDictionaryColumns();
- switch (fieldConfig.getEncodingType()) {
- case DICTIONARY:
- if (noDictionaryColumns != null) {
-
Preconditions.checkArgument(!noDictionaryColumns.contains(columnName),
- "FieldConfig encoding type is different from indexingConfig
for column: " + columnName);
- }
- Preconditions.checkArgument(fieldConfig.getCompressionCodec() ==
null,
- "Set compression codec to null for dictionary encoding type");
- break;
- default:
- break;
+ if (fieldConfig.getEncodingType() != null && indexingConfigs != null) {
Review comment:
I don't think that is possible because that will fail the current table
config validation?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]