Skip to content

Commit

Permalink
[VL] rebase velox to 20231114 (apache#3735)
Browse files Browse the repository at this point in the history
rebase velox to 20231114
ByteStream is replaced by ByteInputStream. Velox PR: facebookincubator/velox#7541
  • Loading branch information
FelixYBW authored Nov 16, 2023
1 parent 8abe4d3 commit fea2222
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ using namespace facebook::velox;
namespace gluten {

namespace {
std::unique_ptr<ByteStream> toByteStream(uint8_t* data, int32_t size) {
auto byteStream = std::make_unique<ByteStream>();
ByteRange byteRange{data, size, 0};
byteStream->resetInput({byteRange});
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);
return byteStream;
}
} // namespace
Expand Down
8 changes: 4 additions & 4 deletions cpp/velox/shuffle/VeloxShuffleReader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ VectorPtr readFlatVector<TypeKind::VARBINARY>(
return readFlatVectorStringView(buffers, bufferIdx, length, type, pool);
}

std::unique_ptr<ByteStream> toByteStream(uint8_t* data, int32_t size) {
auto byteStream = std::make_unique<ByteStream>();
ByteRange byteRange{data, size, 0};
byteStream->resetInput({byteRange});
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);
return byteStream;
}

Expand Down
2 changes: 1 addition & 1 deletion ep/build-velox/src/get_velox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
set -exu

VELOX_REPO=https://github.com/oap-project/velox.git
VELOX_BRANCH=update
VELOX_BRANCH=2023-11-14
VELOX_HOME=""

#Set on run gluten on HDFS
Expand Down

0 comments on commit fea2222

Please sign in to comment.