You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by Paul Jackson <pa...@verizon.net.INVALID> on 2023/11/16 15:51:33 UTC

PR 3495 (Make single-row rels unique) Review Request

 This PR updates org.apache.calcite.rel.metadata areColumnsUnique,
getUniqueKeys, and getPredicates methods to account for relations that produce at most a single row: Sort (due to limit), Aggregate (due to no group by), Values (due to having a single row), and Join (when joining with one of the other nodes).
https://github.com/apache/calcite/pull/3495https://issues.apache.org/jira/projects/CALCITE/issues/CALCITE-6044
Thanks,-Paul
  

Re: PR 3495 (Make single-row rels unique) Review Request

Posted by Julian Hyde <jh...@gmail.com>.
I merged the PR. Thank you for the contribution!

> On Jan 11, 2024, at 12:16 PM, Paul Jackson <pa...@verizon.net.INVALID> wrote:
> 
> I fixed the checker framework problems. One of the last ones - continuous integration - ran out of memory. Is that flakiness or something I need to fix?
> 
> Thanks,
> -Paul
> 
> 
> On Monday, January 8, 2024 at 05:41:30 PM EST, Julian Hyde <jh...@apache.org> wrote:
> 
> 
> 
> I see two failures due to checkerframework. Those are real. Let us
> know when you've fixed them.
> 
> The failure in Druid is probably due to a Druid bug that existed in
> November. You can ignore it. Should go away after rebase.
> 
> Please keep nagging on this thread... this is a good change, and we
> should get it into 1.37.
> 
> On Mon, Jan 8, 2024 at 11:34 AM Mihai Budiu <mb...@gmail.com> wrote:
>> 
>> CI failed, so perhaps you can look into that.
>> 
>> Mihai
>> ________________________________
>> From: Paul Jackson <pa...@verizon.net.INVALID>
>> Sent: Monday, January 8, 2024 7:06 AM
>> To: dev@calcite.apache.org <de...@calcite.apache.org>
>> Subject: Re: PR 3495 (Make single-row rels unique) Review Request
>> 
>> Is there anything else to do for this PR?
>> 
>> * https://github.com/apache/calcite/pull/3495
>> * https://issues.apache.org/jira/browse/CALCITE-6044
>> 
>> Thanks,
>> -Paul
>> 
>> 
>>> On Nov 16, 2023, at 7:51 AM, Paul Jackson <pa...@verizon.net.INVALID> wrote:
>>> 
>>> This PR updates org.apache.calcite.rel.metadata areColumnsUnique,
>>> getUniqueKeys, and getPredicates methods to account for relations that produce at most a single row: Sort (due to limit), Aggregate (due to no group by), Values (due to having a single row), and Join (when joining with one of the other nodes).
>>> https://github.com/apache/calcite/pull/3495https://issues.apache.org/jira/projects/CALCITE/issues/CALCITE-6044
>>> Thanks,-Paul


Re: PR 3495 (Make single-row rels unique) Review Request

Posted by Paul Jackson <pa...@verizon.net.INVALID>.
I fixed the checker framework problems. One of the last ones - continuous integration - ran out of memory. Is that flakiness or something I need to fix?

Thanks,
-Paul


 On Monday, January 8, 2024 at 05:41:30 PM EST, Julian Hyde <jh...@apache.org> wrote:



I see two failures due to checkerframework. Those are real. Let us
know when you've fixed them.

The failure in Druid is probably due to a Druid bug that existed in
November. You can ignore it. Should go away after rebase.

Please keep nagging on this thread... this is a good change, and we
should get it into 1.37.

On Mon, Jan 8, 2024 at 11:34 AM Mihai Budiu <mb...@gmail.com> wrote:
>
> CI failed, so perhaps you can look into that.
>
> Mihai
> ________________________________
> From: Paul Jackson <pa...@verizon.net.INVALID>
> Sent: Monday, January 8, 2024 7:06 AM
> To: dev@calcite.apache.org <de...@calcite.apache.org>
> Subject: Re: PR 3495 (Make single-row rels unique) Review Request
>
> Is there anything else to do for this PR?
>
> * https://github.com/apache/calcite/pull/3495
> * https://issues.apache.org/jira/browse/CALCITE-6044
>
> Thanks,
> -Paul
>
>
> > On Nov 16, 2023, at 7:51 AM, Paul Jackson <pa...@verizon.net.INVALID> wrote:
> >
> > This PR updates org.apache.calcite.rel.metadata areColumnsUnique,
> > getUniqueKeys, and getPredicates methods to account for relations that produce at most a single row: Sort (due to limit), Aggregate (due to no group by), Values (due to having a single row), and Join (when joining with one of the other nodes).
> > https://github.com/apache/calcite/pull/3495https://issues.apache.org/jira/projects/CALCITE/issues/CALCITE-6044
> > Thanks,-Paul

Re: PR 3495 (Make single-row rels unique) Review Request

Posted by Julian Hyde <jh...@apache.org>.
I see two failures due to checkerframework. Those are real. Let us
know when you've fixed them.

The failure in Druid is probably due to a Druid bug that existed in
November. You can ignore it. Should go away after rebase.

Please keep nagging on this thread... this is a good change, and we
should get it into 1.37.

On Mon, Jan 8, 2024 at 11:34 AM Mihai Budiu <mb...@gmail.com> wrote:
>
> CI failed, so perhaps you can look into that.
>
> Mihai
> ________________________________
> From: Paul Jackson <pa...@verizon.net.INVALID>
> Sent: Monday, January 8, 2024 7:06 AM
> To: dev@calcite.apache.org <de...@calcite.apache.org>
> Subject: Re: PR 3495 (Make single-row rels unique) Review Request
>
> Is there anything else to do for this PR?
>
> * https://github.com/apache/calcite/pull/3495
> * https://issues.apache.org/jira/browse/CALCITE-6044
>
> Thanks,
> -Paul
>
>
> > On Nov 16, 2023, at 7:51 AM, Paul Jackson <pa...@verizon.net.INVALID> wrote:
> >
> > This PR updates org.apache.calcite.rel.metadata areColumnsUnique,
> > getUniqueKeys, and getPredicates methods to account for relations that produce at most a single row: Sort (due to limit), Aggregate (due to no group by), Values (due to having a single row), and Join (when joining with one of the other nodes).
> > https://github.com/apache/calcite/pull/3495https://issues.apache.org/jira/projects/CALCITE/issues/CALCITE-6044
> > Thanks,-Paul

Re: PR 3495 (Make single-row rels unique) Review Request

Posted by Mihai Budiu <mb...@gmail.com>.
CI failed, so perhaps you can look into that.

Mihai
________________________________
From: Paul Jackson <pa...@verizon.net.INVALID>
Sent: Monday, January 8, 2024 7:06 AM
To: dev@calcite.apache.org <de...@calcite.apache.org>
Subject: Re: PR 3495 (Make single-row rels unique) Review Request

Is there anything else to do for this PR?

* https://github.com/apache/calcite/pull/3495
* https://issues.apache.org/jira/browse/CALCITE-6044

Thanks,
-Paul


> On Nov 16, 2023, at 7:51 AM, Paul Jackson <pa...@verizon.net.INVALID> wrote:
>
> This PR updates org.apache.calcite.rel.metadata areColumnsUnique,
> getUniqueKeys, and getPredicates methods to account for relations that produce at most a single row: Sort (due to limit), Aggregate (due to no group by), Values (due to having a single row), and Join (when joining with one of the other nodes).
> https://github.com/apache/calcite/pull/3495https://issues.apache.org/jira/projects/CALCITE/issues/CALCITE-6044
> Thanks,-Paul

Re: PR 3495 (Make single-row rels unique) Review Request

Posted by Paul Jackson <pa...@verizon.net.INVALID>.
Is there anything else to do for this PR?

* https://github.com/apache/calcite/pull/3495 
* https://issues.apache.org/jira/browse/CALCITE-6044 

Thanks,
-Paul


> On Nov 16, 2023, at 7:51 AM, Paul Jackson <pa...@verizon.net.INVALID> wrote:
> 
> This PR updates org.apache.calcite.rel.metadata areColumnsUnique,
> getUniqueKeys, and getPredicates methods to account for relations that produce at most a single row: Sort (due to limit), Aggregate (due to no group by), Values (due to having a single row), and Join (when joining with one of the other nodes).
> https://github.com/apache/calcite/pull/3495https://issues.apache.org/jira/projects/CALCITE/issues/CALCITE-6044
> Thanks,-Paul

Re: PR 3495 (Make single-row rels unique) Review Request

Posted by Julian Hyde <jh...@apache.org>.
It depends on your client. Different clients have a different notion
of paragraph.

Safest thing is to compose in plain text mode. Failing that, compose
in rich text mode with the knowledge that it will be converted to
plain text mode. Use ' * ' for bullet points, '>' for quoted text, and
ridiculously short lines (60 or shorter) for blocks that you don't
want to be line-wrapped.

On Thu, Nov 16, 2023 at 11:51 AM Paul Jackson
<pa...@verizon.net.invalid> wrote:
>
> Thanks. Is there a trick to sending e-mails to this list so that formatting is retained?
>
> Experimenting with my client's plain-text mode:
> https://github.com/apache/calcite/pull/3495
> https://issues.apache.org/jira/projects/CALCITE/issues/CALCITE-6044
>
>
> Copy/pasting your links:
> * https://github.com/apache/calcite/pull/3495
> * https://issues.apache.org/jira/browse/CALCITE-6044
>
>
> Cheers.
>
> line 1: One new-line
> line 2: between lines.
>
> Two new-lines:
>
> https://github.com/apache/calcite/pull/3495
>
> https://issues.apache.org/jira/projects/CALCITE/issues/CALCITE-6044
>
>
>
>
> That is all.
>
> On Thursday, November 16, 2023 at 01:46:35 PM EST, Julian Hyde <jh...@gmail.com> wrote:
>
>
>
>
>
> These links are easier:
> * https://github.com/apache/calcite/pull/3495
> * https://issues.apache.org/jira/browse/CALCITE-6044
>
> > On Nov 16, 2023, at 7:51 AM, Paul Jackson <pa...@verizon.net.INVALID> wrote:
> >
> > This PR updates org.apache.calcite.rel.metadata areColumnsUnique,
> > getUniqueKeys, and getPredicates methods to account for relations that produce at most a single row: Sort (due to limit), Aggregate (due to no group by), Values (due to having a single row), and Join (when joining with one of the other nodes).
> > https://github.com/apache/calcite/pull/3495https://issues.apache.org/jira/projects/CALCITE/issues/CALCITE-6044
> > Thanks,-Paul
>

Re: PR 3495 (Make single-row rels unique) Review Request

Posted by Paul Jackson <pa...@verizon.net.INVALID>.
Thanks. Is there a trick to sending e-mails to this list so that formatting is retained?

Experimenting with my client's plain-text mode:
https://github.com/apache/calcite/pull/3495
https://issues.apache.org/jira/projects/CALCITE/issues/CALCITE-6044


Copy/pasting your links:
* https://github.com/apache/calcite/pull/3495
* https://issues.apache.org/jira/browse/CALCITE-6044


Cheers.

line 1: One new-line
line 2: between lines.

Two new-lines:

https://github.com/apache/calcite/pull/3495

https://issues.apache.org/jira/projects/CALCITE/issues/CALCITE-6044




That is all.

On Thursday, November 16, 2023 at 01:46:35 PM EST, Julian Hyde <jh...@gmail.com> wrote: 





These links are easier:
* https://github.com/apache/calcite/pull/3495 
* https://issues.apache.org/jira/browse/CALCITE-6044 

> On Nov 16, 2023, at 7:51 AM, Paul Jackson <pa...@verizon.net.INVALID> wrote:
> 
> This PR updates org.apache.calcite.rel.metadata areColumnsUnique,
> getUniqueKeys, and getPredicates methods to account for relations that produce at most a single row: Sort (due to limit), Aggregate (due to no group by), Values (due to having a single row), and Join (when joining with one of the other nodes).
> https://github.com/apache/calcite/pull/3495https://issues.apache.org/jira/projects/CALCITE/issues/CALCITE-6044
> Thanks,-Paul


Re: PR 3495 (Make single-row rels unique) Review Request

Posted by Julian Hyde <jh...@gmail.com>.
These links are easier:
* https://github.com/apache/calcite/pull/3495 
* https://issues.apache.org/jira/browse/CALCITE-6044 

> On Nov 16, 2023, at 7:51 AM, Paul Jackson <pa...@verizon.net.INVALID> wrote:
> 
> This PR updates org.apache.calcite.rel.metadata areColumnsUnique,
> getUniqueKeys, and getPredicates methods to account for relations that produce at most a single row: Sort (due to limit), Aggregate (due to no group by), Values (due to having a single row), and Join (when joining with one of the other nodes).
> https://github.com/apache/calcite/pull/3495https://issues.apache.org/jira/projects/CALCITE/issues/CALCITE-6044
> Thanks,-Paul