Skip to content

Commit

Permalink
[native] Allow single zero to be passed as X-Presto-Buffer-Remaining-…
Browse files Browse the repository at this point in the history
…Bytes
  • Loading branch information
Yuhta authored and aditi-pandit committed Mar 6, 2024
1 parent 96187ad commit ec92367
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ void PrestoExchangeSource::processDataResponse(
protocol::PRESTO_BUFFER_REMAINING_BYTES_HEADER);
if (!remainingBytesString.empty()) {
folly::split(',', remainingBytesString, remainingBytes);
if (!remainingBytes.empty() && remainingBytes[0] == 0) {
VELOX_CHECK_EQ(remainingBytes.size(), 1);
remainingBytes.clear();
}
}

int64_t ackSequence =
Expand Down

0 comments on commit ec92367

Please sign in to comment.