Skip to content

Commit

Permalink
Fix ByteInputStream interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jinchengchenghh committed Aug 16, 2024
1 parent c8f7813 commit 7f57354
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cpp/velox/shuffle/VeloxShuffleReader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/

#include "VeloxShuffleReader.h"
#include "GlutenByteStream.h"

#include <arrow/array/array_binary.h>
#include <arrow/io/buffered.h>
Expand Down Expand Up @@ -177,7 +178,7 @@ VectorPtr readFlatVector<TypeKind::VARBINARY>(
std::unique_ptr<ByteInputStream> toByteStream(uint8_t* data, int32_t size) {
std::vector<ByteRange> byteRanges;
byteRanges.push_back(ByteRange{data, size, 0});
auto byteStream = std::make_unique<ByteInputStream>(byteRanges);
auto byteStream = std::make_unique<BufferInputStream>(byteRanges);
return byteStream;
}

Expand Down Expand Up @@ -450,7 +451,7 @@ std::shared_ptr<ColumnarBatch> VeloxSortShuffleReaderDeserializer::deserializeTo
return std::make_shared<VeloxColumnarBatch>(std::move(rowVector));
}

class VeloxRssSortShuffleReaderDeserializer::VeloxInputStream : public facebook::velox::ByteInputStream {
class VeloxRssSortShuffleReaderDeserializer::VeloxInputStream : public facebook::velox::GlutenByteInputStream {
public:
VeloxInputStream(std::shared_ptr<arrow::io::InputStream> input, facebook::velox::BufferPtr buffer);

Expand Down

0 comments on commit 7f57354

Please sign in to comment.