You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by GitBox <gi...@apache.org> on 2019/06/19 02:07:43 UTC

[GitHub] [carbondata] lamber-ken commented on a change in pull request #3270: [CARBONDATA-3422] fix missing complex dimensions when prepare the data from raw object

lamber-ken commented on a change in pull request #3270: [CARBONDATA-3422] fix missing complex dimensions when prepare the data from raw object
URL: https://github.com/apache/carbondata/pull/3270#discussion_r295095554
 
 

 ##########
 File path: processing/src/main/java/org/apache/carbondata/processing/merger/CompactionResultSortProcessor.java
 ##########
 @@ -268,7 +268,9 @@ private void processResult(List<RawResultIterator> resultIteratorList) throws Ex
    * @return
    */
   private Object[] prepareStreamingRowObjectForSorting(Object[] row) {
-    List<CarbonDimension> dimensions = segmentProperties.getDimensions();
+    List<CarbonDimension> dimensions = new ArrayList<>();
 
 Review comment:
   Thanks for your comment @ravipesala, I have a question that are the following two pieces of code equivalent? 
   ```
   List<CarbonDimension> dimensions = new ArrayList<>();
   dimensions.addAll(segmentProperties.getDimensions());
   dimensions.addAll(segmentProperties.getComplexDimensions());
   ```
   ```
   carbonTable.getDimensionByTableName(tableName);
   ```
   
   
   
   
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services