[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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[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

GitBox
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:
[hidden email]


With regards,
Apache Git Services