Fix the bug in SegmentGeneratorConfig where columnSortOrder is not copied
@@ -118,6 +118,7 @@ public class SegmentGeneratorConfig {
_rawIndexCreationColumns.addAll(config._rawIndexCreationColumns);
_rawIndexCompressionType.putAll(config._rawIndexCompressionType);
_invertedIndexCreationColumns.addAll(config._invertedIndexCreationColumns);
+ _columnSortOrder.addAll(config._columnSortOrder);
_dataDir = config._dataDir;
_inputFilePath = config._inputFilePath;
_format = config._format;
@@ -171,9 +172,11 @@ public class SegmentGeneratorConfig {
if (noDictionaryColumnMap != null) {
Map<String, ChunkCompressorFactory.CompressionType> serializedNoDictionaryColumnMap =
- noDictionaryColumnMap.entrySet().stream()
+ noDictionaryColumnMap.entrySet()
+ .stream()
.collect(Collectors.toMap(Map.Entry::getKey,
- e -> (ChunkCompressorFactory.CompressionType) ChunkCompressorFactory.CompressionType.valueOf(e.getValue())));
+ e -> (ChunkCompressorFactory.CompressionType) ChunkCompressorFactory.CompressionType.valueOf(
+ e.getValue())));
this.setRawIndexCompressionType(serializedNoDictionaryColumnMap);
}
}
@@ -190,7 +193,6 @@ public class SegmentGeneratorConfig {
_hllConfig = validationConfig.getHllConfig();
}
-
public SegmentGeneratorConfig(Schema schema) {
_schema = schema;
}
