Skip to content

Commit

Permalink
[CALCITE-6139] Avatica-Go sends the same offset for the FetchRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
egor-ryashin authored and F21 committed Nov 29, 2023
1 parent 1cf62a6 commit 4645f00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rows.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (r *rows) Next(dest []driver.Value) error {
res, err := r.conn.httpClient.post(context.Background(), &message.FetchRequest{
ConnectionId: r.conn.connectionId,
StatementId: r.statementID,
Offset: resultSet.offset,
Offset: resultSet.offset + uint64(len(resultSet.data)),
FrameMaxSize: r.conn.config.frameMaxSize,
})

Expand Down Expand Up @@ -130,6 +130,7 @@ func (r *rows) Next(dest []driver.Value) error {
resultSet.done = frame.Done
resultSet.data = data
resultSet.currentRow = 0
resultSet.offset = frame.Offset

}

Expand Down

0 comments on commit 4645f00

Please sign in to comment.