1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-13 16:22:44 +03:00

Fix typos in nodeWindowAgg comments

One of them submitted by the author, with another one other
spotted during review so this fixes both.

Author: Tender Wang <tndrwang@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/CAHewXN=eNx2oJ_hzxJrkSvy-1A5Qf45SM8pxERWXE+6RoZyFrw@mail.gmail.com
This commit is contained in:
Daniel Gustafsson
2025-11-10 12:51:47 +01:00
parent b23fe993e1
commit 3a872ddd64

View File

@@ -239,7 +239,7 @@ static void put_notnull_info(WindowObject winobj,
#define NN_POS_TO_BYTES(pos) ((pos) / NN_ITEM_PER_VAR) #define NN_POS_TO_BYTES(pos) ((pos) / NN_ITEM_PER_VAR)
/* bytes offset to map position */ /* bytes offset to map position */
#define NN_BYTES_TO_POS(bytes) ((bytes) * NN_ITEM_PER_VAR) #define NN_BYTES_TO_POS(bytes) ((bytes) * NN_ITEM_PER_VAR)
/* caculate shift bits */ /* calculate shift bits */
#define NN_SHIFT(pos) ((pos) % NN_ITEM_PER_VAR) * NN_BITS_PER_MEMBER #define NN_SHIFT(pos) ((pos) % NN_ITEM_PER_VAR) * NN_BITS_PER_MEMBER
/* /*
@@ -3287,7 +3287,7 @@ window_gettupleslot(WindowObject winobj, int64 pos, TupleTableSlot *slot)
} }
/* gettuple_eval_partition /* gettuple_eval_partition
* get tuple in a patition and evaluate the window function's argument * get tuple in a partition and evaluate the window function's argument
* expression on it. * expression on it.
*/ */
static Datum static Datum