Skip to content

Commit

Permalink
Merge dc0b8bb into 851dd2c
Browse files Browse the repository at this point in the history
  • Loading branch information
dhatchayani committed Nov 15, 2018
2 parents 851dd2c + dc0b8bb commit c5e8b0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ public byte[] encodeAndCompressPage(ColumnPage input, ColumnPageValueConverter c
}
ColumnPage columnPage = getSortedColumnPageIfRequired(input);
columnPage.convertValue(converter);
columnPage.freeMemory();
byte[] result = encodedPage.compress(compressor);
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ public void initialize(InputSplit inputSplit, TaskAttemptContext taskAttemptCont

@Override
public void close() throws IOException {
logStatistics(rowCount, queryModel.getStatisticsRecorder());
if (vectorProxy != null) {
logStatistics(rowCount, queryModel.getStatisticsRecorder());
vectorProxy.close();
vectorProxy = null;
}
Expand Down Expand Up @@ -198,7 +198,7 @@ public boolean nextKeyValue() throws IOException, InterruptedException {
@Override
public Object getCurrentValue() throws IOException, InterruptedException {
if (returnColumnarBatch) {
int value = vectorProxy.numRows();
int value = carbonColumnarBatch.getActualSize();
rowCount += value;
if (inputMetricsStats != null) {
inputMetricsStats.incrementRecordRead((long) value);
Expand Down

0 comments on commit c5e8b0e

Please sign in to comment.