Skip to content

Commit a0b6d58

Browse files
committed
address comments
1 parent 2a753ca commit a0b6d58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/velox/memory/GpuBufferColumnarBatch.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ std::shared_ptr<GpuBufferColumnarBatch> GpuBufferColumnarBatch::compose(
108108

109109
if (bufferTypes[i] == BufferType::kTimestampValue) {
110110
// Velox Timestamp value is 16 bytes. CUDF Timestamp value is 8 bytes.
111-
bufferSizes[i] += buffer->size() >> 1;
111+
bufferSizes[i] += static_cast<size_t>(batch->numRows()) * sizeof(int64_t);
112112
} else if (bufferTypes[i] == BufferType::kBooleanValue) {
113113
// Velox Boolean value is 1 bit. CUDF Boolean value is 1 byte.
114114
bufferSizes[i] += batch->numRows();

0 commit comments

Comments
 (0)