Fix a typo in the comment for gettuple_eval_partition()

Started by Tender Wang2 months ago2 messages
#1Tender Wang
tndrwang@gmail.com
1 attachment(s)

Hi,

I found a typo in the comment for gettuple_eval_partition().

/* gettuple_eval_partition
* get tuple in a patition and evaluate the window function's argument
* expression on it.
*/

"patition" should be "partition"

The attached patch fixes it.

--
Thanks,
Tender Wang

Attachments:

0001-Fix-comments-for-gettuple_eval_partition.patchapplication/octet-stream; name=0001-Fix-comments-for-gettuple_eval_partition.patchDownload
From 01f720b7b5f2dd2c5e79c2159642b4fb4d542002 Mon Sep 17 00:00:00 2001
From: Tender Wang <tndrwang@gmail.com>
Date: Mon, 10 Nov 2025 19:04:34 +0800
Subject: [PATCH] Fix comments for gettuple_eval_partition().

---
 src/backend/executor/nodeWindowAgg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend/executor/nodeWindowAgg.c b/src/backend/executor/nodeWindowAgg.c
index fda66f24e55..73eaf66c71b 100644
--- a/src/backend/executor/nodeWindowAgg.c
+++ b/src/backend/executor/nodeWindowAgg.c
@@ -3287,7 +3287,7 @@ window_gettupleslot(WindowObject winobj, int64 pos, TupleTableSlot *slot)
 }
 
 /* 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.
  */
 static Datum
-- 
2.34.1

#2Daniel Gustafsson
daniel@yesql.se
In reply to: Tender Wang (#1)
Re: Fix a typo in the comment for gettuple_eval_partition()

On 10 Nov 2025, at 12:11, Tender Wang <tndrwang@gmail.com> wrote:

"patition" should be "partition"

The attached patch fixes it.

Thanks, pushed. I spotted another typo in a comment during review so I
included that as well while in there.

--
Daniel Gustafsson