From 7716360f2a44b05719cf0bfacaf60dbf6688b727 Mon Sep 17 00:00:00 2001 From: KaiGai Kohei Date: Wed, 30 Oct 2024 19:58:55 +0900 Subject: [PATCH] arrow_fdw: PG-attribute number - Arrow field-id mapping was wrong --- src/arrow_fdw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arrow_fdw.c b/src/arrow_fdw.c index 04bfa99c..b35ee825 100644 --- a/src/arrow_fdw.c +++ b/src/arrow_fdw.c @@ -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; }