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_r386083184
##########
File path:
processing/src/main/java/org/apache/carbondata/processing/util/CarbonDataProcessorUtil.java
##########
@@ -375,6 +375,25 @@ public static boolean isHeaderValid(String tableName,
String[] csvHeader,
return type.toArray(new DataType[type.size()]);
}
+ /**
+ * get visible no dictionary dimensions as per data field order
+ *
+ * @param dataFields
+ * @return
+ */
+ public static DataType[] getNoDictDataTypesAsDataFieldOrder(DataField[]
dataFields) {
+ List<DataType> type = new ArrayList<>();
+ for (DataField dataField : dataFields) {
Review comment:
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