kunal642 commented on a change in pull request #3354: [CARBONDATA-3489] Optimized the comparator instances in sort
URL:
https://github.com/apache/carbondata/pull/3354#discussion_r318892514
##########
File path: processing/src/main/java/org/apache/carbondata/processing/loading/partition/impl/RawRowComparator.java
##########
@@ -34,12 +36,34 @@
private int[] sortColumnIndices;
private boolean[] isSortColumnNoDict;
private DataType[] noDicDataTypes;
+ private Map<DataType, SerializableComparator> comparator_map;
public RawRowComparator(int[] sortColumnIndices, boolean[] isSortColumnNoDict,
DataType[] noDicDataTypes) {
this.sortColumnIndices = sortColumnIndices;
this.isSortColumnNoDict = isSortColumnNoDict;
this.noDicDataTypes = noDicDataTypes;
+ comparator_map = new HashMap<>();
Review comment:
Now this code is not required..Please remove
----------------------------------------------------------------
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:
[hidden email]
With regards,
Apache Git Services