Skip to content

Commit

Permalink
arrow_fdw: PG-attribute number - Arrow field-id mapping was wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
kaigai committed Oct 30, 2024
1 parent 56bcb3e commit 7716360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arrow_fdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -4376,7 +4376,7 @@ pgstromArrowFdwExplain(ArrowFdwState *arrow_state,
i = af_state->attrs[j-1].field_index;
if (i >= 0 && i < rb_state->nfields)
{
sz = __recordBatchFieldLength(&rb_state->fields[j]);
sz = __recordBatchFieldLength(&rb_state->fields[i]);
read_sz += sz;
chunk_sz[j] += sz;
}
Expand Down

0 comments on commit 7716360

Please sign in to comment.