akashrn5 commented on a change in pull request #3645: [CARBONDATA-3728] Fix
insert failure on partition table with local sort
URL: https://github.com/apache/carbondata/pull/3645#discussion_r386082988
##########
File path:
processing/src/main/java/org/apache/carbondata/processing/loading/CarbonDataLoadConfiguration.java
##########
@@ -248,6 +248,23 @@ public void setSchemaUpdatedTimeStamp(long
schemaUpdatedTimeStamp) {
return type;
}
+ public DataType[] getMeasureDataTypeAsDataFieldOrder() {
+ // same as data fields order
+ List<Integer> measureIndexes = new ArrayList<>(dataFields.length);
+ int measureCount = 0;
+ for (int i = 0; i < dataFields.length; i++) {
Review comment:
instead of using two for loops, i think u can use steam
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services