Indhumathi27 commented on a change in pull request #3874:
URL: https://github.com/apache/carbondata/pull/3874#discussion_r467745874



##########
File path: 
integration/spark/src/main/scala/org/apache/spark/sql/secondaryindex/query/SecondaryIndexQueryResultProcessor.java
##########
@@ -249,10 +249,17 @@ private void processResult(List<CarbonIterator<RowBatch>> 
detailQueryResultItera
   private Object[] prepareRowObjectForSorting(Object[] row) {
     ByteArrayWrapper wrapper = (ByteArrayWrapper) row[0];
     // ByteBuffer[] noDictionaryBuffer = new ByteBuffer[noDictionaryCount];
-
     List<CarbonDimension> dimensions = segmentProperties.getDimensions();
     Object[] preparedRow = new Object[dimensions.size() + measureCount];
 
+    // get dictionary values for date type
+    byte[] dictionaryKey = wrapper.getDictionaryKey();
+    int[] keyArray = ByteUtil.convertBytesToIntArray(dictionaryKey);
+    Object[] dictionaryValues = new Object[dimensionColumnCount + 
measureCount];
+    for (int i = 0; i < keyArray.length; i++) {
+      dictionaryValues[i] = keyArray[i];

Review comment:
       removed




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


Reply via email to