a comment in joinrel.c: compute_partition_bounds()

Started by Amit Langoteover 4 years ago5 messageshackers
Jump to latest
#1Amit Langote
Langote_Amit_f8@lab.ntt.co.jp

Hi,

I think there's a word missing in the following comment:

/*
* See if the partition bounds for inputs are exactly the same, in
* which case we don't need to work hard: the join rel have the same
* partition bounds as inputs, and the partitions with the same
* cardinal positions form the pairs.

": the join rel have the same..." seems to be missing a "will".

Attached a patch to fix.

--
Amit Langote
EDB: http://www.enterprisedb.com

Attachments:

comment-missing-word.patchapplication/octet-stream; name=comment-missing-word.patchDownload+2-2
#2Etsuro Fujita
fujita.etsuro@lab.ntt.co.jp
In reply to: Amit Langote (#1)
Re: a comment in joinrel.c: compute_partition_bounds()

Hi Amit-san,

On Fri, Sep 24, 2021 at 3:34 PM Amit Langote <amitlangote09@gmail.com> wrote:

I think there's a word missing in the following comment:

/*
* See if the partition bounds for inputs are exactly the same, in
* which case we don't need to work hard: the join rel have the same
* partition bounds as inputs, and the partitions with the same
* cardinal positions form the pairs.

": the join rel have the same..." seems to be missing a "will".

Attached a patch to fix.

Good catch! Will fix.

Thanks!

Best regards,
Etsuro Fujita

#3Etsuro Fujita
fujita.etsuro@lab.ntt.co.jp
In reply to: Etsuro Fujita (#2)
Re: a comment in joinrel.c: compute_partition_bounds()

On Fri, Sep 24, 2021 at 4:20 PM Etsuro Fujita <etsuro.fujita@gmail.com> wrote:

On Fri, Sep 24, 2021 at 3:34 PM Amit Langote <amitlangote09@gmail.com> wrote:

I think there's a word missing in the following comment:

/*
* See if the partition bounds for inputs are exactly the same, in
* which case we don't need to work hard: the join rel have the same
* partition bounds as inputs, and the partitions with the same
* cardinal positions form the pairs.

": the join rel have the same..." seems to be missing a "will".

Attached a patch to fix.

Good catch! Will fix.

Rereading the comment, I think it would be better to add “will” to the
second part “the partitions with the same cardinal positions form the
pairs” as well. Updated patch attached.

Best regards,
Etsuro Fujita

Attachments:

comment-missing-word-2.patchapplication/octet-stream; name=comment-missing-word-2.patchDownload+3-3
#4Amit Langote
Langote_Amit_f8@lab.ntt.co.jp
In reply to: Etsuro Fujita (#3)
Re: a comment in joinrel.c: compute_partition_bounds()

Fujita-san,

On Wed, Oct 6, 2021 at 5:41 PM Etsuro Fujita <etsuro.fujita@gmail.com> wrote:

On Fri, Sep 24, 2021 at 4:20 PM Etsuro Fujita <etsuro.fujita@gmail.com> wrote:

On Fri, Sep 24, 2021 at 3:34 PM Amit Langote <amitlangote09@gmail.com> wrote:

I think there's a word missing in the following comment:

/*
* See if the partition bounds for inputs are exactly the same, in
* which case we don't need to work hard: the join rel have the same
* partition bounds as inputs, and the partitions with the same
* cardinal positions form the pairs.

": the join rel have the same..." seems to be missing a "will".

Attached a patch to fix.

Good catch! Will fix.

Rereading the comment, I think it would be better to add “will” to the
second part “the partitions with the same cardinal positions form the
pairs” as well. Updated patch attached.

No objection from my side.

Thank you.

--
Amit Langote
EDB: http://www.enterprisedb.com

#5Etsuro Fujita
fujita.etsuro@lab.ntt.co.jp
In reply to: Amit Langote (#4)
Re: a comment in joinrel.c: compute_partition_bounds()

On Thu, Oct 7, 2021 at 12:05 PM Amit Langote <amitlangote09@gmail.com> wrote:

On Wed, Oct 6, 2021 at 5:41 PM Etsuro Fujita <etsuro.fujita@gmail.com> wrote:

Rereading the comment, I think it would be better to add “will” to the
second part “the partitions with the same cardinal positions form the
pairs” as well. Updated patch attached.

No objection from my side.

Ok, pushed. Thanks!

Best regards,
Etsuro Fujita