Skip to content

Commit

Permalink
Fix deserialization for "lastBeofre" query
Browse files Browse the repository at this point in the history
  • Loading branch information
uwburn committed Mar 30, 2019
1 parent 4af0ec0 commit 76600a0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions worker/cassandra/CassandraMachineSink.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,11 +434,12 @@ module.exports = class CassandraMachineSink extends BaseSink {

let count = 0;
for (let i = rawResults.length - 1; i >= 0; --i) {
if (rawResults[i].rowLength)
if (rawResults[i].rowLength) {
++count;

if (count === 1)
rawResults[i].rows[0].value = avroType.fromBuffer(rawResults[i].rows[0].value);
if (count === 1)
rawResults[i].rows[0].value = avroType.fromBuffer(rawResults[i].rows[0].value);
}
}

return count;
Expand Down

0 comments on commit 76600a0

Please sign in to comment.