You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by Zoltan Farkas <zo...@yahoo.com.INVALID> on 2021/11/30 00:45:15 UTC

calcite-core 1.28.0 now depends on kotlin-stdlib?

I see that the latest release of calcite-core brings in kotlin-stdlib as a dependency.,

    <dependency>
      <groupId>org.jetbrains.kotlin</groupId>
      <artifactId>kotlin-stdlib-jdk8</artifactId>
      <version>1.5.31</version>
    </dependency>

I looked over the release notes, and I cannot find anything that mentions this, anyone knows why is this new dependency required?
(up until 1.27.0 kotlin was only a test dependency)

thanks!

—Z

Re: calcite-core 1.28.0 now depends on kotlin-stdlib?

Posted by Julian Hyde <jh...@gmail.com>.
Suppose that the dependencies were uploaded to the RC site, such as https://dist.apache.org/repos/dist/dev/calcite/apache-calcite-1.23.0-rc0/ <https://dist.apache.org/repos/dist/dev/calcite/apache-calcite-1.23.0-rc0/>. Then people voting on the RC could compare those dependencies with the dependences of the previous release.

It’s a single line in bash, something like this:

diff -y <(curl https://dist.apache.org/repos/dist/dev/calcite/apache-calcite-1.22.0-rc0/dep.txt) . <(curl https://dist.apache.org/repos/dist/dev/calcite/apache-calcite-1.23.0-rc0/dep.txt) .

(For some reason 1.24 and later don’t appear on the site. I expect Apache INFRA has been tinkering with something. But I expect the problem can be fixed.)

Julian

> On Dec 4, 2021, at 3:47 AM, Michael Mior <mm...@apache.org> wrote:
> 
> It can't really be fully automatic because sometimes we may want to
> legitimately add a new dependency. I would be interested in thinking
> about how we could make sure unwanted dependencies don't creep in.
> Part of the problem is that the release manager may not know what
> dependencies should or shouldn't be added. I see a few possible ways
> around this:
> 
> 1. Make sure that when a new dependency is added, a commit explicitly
> mentions the new dependency in some format that is grepable. Any
> dependency not found in this way should be discussed.
> 2. Include a list of new dependencies with the RC announcement, giving
> others a chance to chime in.
> 3. Make some step of the release process fail if new dependencies are
> added since the last release unless a specific flag is given. The
> purpose of this flag would be to acknowledge that the new dependencies
> are in fact, intended to be added.
> 
> --
> Michael Mior
> mmior@apache.org
> 
> Le sam. 4 déc. 2021 à 01:27, Jacques Nadeau <ja...@apache.org> a écrit :
>> 
>> Any opinions on whether we should formalize into some kind of release
>> verification step (manual or automatic)?
>> 
>> On Thu, Dec 2, 2021 at 5:22 PM Julian Hyde <jh...@gmail.com> wrote:
>> 
>>> It’s quite easy to script. For example,
>>> 
>>> git checkout calcite-1.27.0
>>> ./gradlew dependencies > /tmp/d27.txt
>>> git checkout calcite-1.28.0
>>> ./gradlew dependencies > /tmp/d28.txt
>>> diff /tmp/d2{7,8}.txt
>>> 
>>> I posted the output at
>>> https://gist.github.com/julianhyde/9ca5915bfb91494b7f91405ad15d698e <
>>> https://gist.github.com/julianhyde/9ca5915bfb91494b7f91405ad15d698e>.
>>> 
>>> Julian
>>> 
>>> 
>>>> On Nov 30, 2021, at 3:40 PM, Jacques Nadeau <ja...@apache.org> wrote:
>>>> 
>>>> Nice.
>>>> 
>>>> Anyone know if there is a tool to fingerprint dependencies between
>>> releases
>>>> so we can avoid introducing new dependencies accidentally?
>>>> 
>>>> On Tue, Nov 30, 2021 at 1:26 PM Stamatis Zampetakis <za...@gmail.com>
>>>> wrote:
>>>> 
>>>>> It seems that Vladimir fixed this already in [1].
>>>>> 
>>>>> [1]
>>>>> 
>>>>> 
>>> https://github.com/apache/calcite/commit/f3e2f041567e35e65464676d3171db3b5f2ddf9c
>>>>> 
>>>>> On Tue, Nov 30, 2021 at 7:50 PM Jacques Nadeau <ja...@apache.org>
>>> wrote:
>>>>> 
>>>>>> Can you file a JIRA? We should address before 1.29.
>>>>>> 
>>>>>> On Tue, Nov 30, 2021 at 6:40 AM Zoltan Farkas
>>>>> <zolyfarkas@yahoo.com.invalid
>>>>>>> 
>>>>>> wrote:
>>>>>> 
>>>>>>> According to the published pom it is a direct dependency:
>>>>>>> 
>>>>>> 
>>>>> 
>>> https://repo1.maven.org/maven2/org/apache/calcite/calcite-core/1.28.0/calcite-core-1.28.0.pom
>>>>>>> <
>>>>>>> 
>>>>>> 
>>>>> 
>>> https://repo1.maven.org/maven2/org/apache/calcite/calcite-core/1.28.0/calcite-core-1.28.0.pom
>>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>>> On Nov 29, 2021, at 11:41 PM, Vladimir Sitnikov <
>>>>>>> sitnikov.vladimir@gmail.com> wrote:
>>>>>>>> 
>>>>>>>>> since core/src/kotlin does not exist yet.
>>>>>>>> 
>>>>>>>> I mean core/src/main/kotlin does not exist yet
>>>>>>>> 
>>>>>>>> Vladimir
>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>> 
>>> 
>>> 


Re: calcite-core 1.28.0 now depends on kotlin-stdlib?

Posted by Michael Mior <mm...@apache.org>.
It can't really be fully automatic because sometimes we may want to
legitimately add a new dependency. I would be interested in thinking
about how we could make sure unwanted dependencies don't creep in.
Part of the problem is that the release manager may not know what
dependencies should or shouldn't be added. I see a few possible ways
around this:

1. Make sure that when a new dependency is added, a commit explicitly
mentions the new dependency in some format that is grepable. Any
dependency not found in this way should be discussed.
2. Include a list of new dependencies with the RC announcement, giving
others a chance to chime in.
3. Make some step of the release process fail if new dependencies are
added since the last release unless a specific flag is given. The
purpose of this flag would be to acknowledge that the new dependencies
are in fact, intended to be added.

--
Michael Mior
mmior@apache.org

Le sam. 4 déc. 2021 à 01:27, Jacques Nadeau <ja...@apache.org> a écrit :
>
> Any opinions on whether we should formalize into some kind of release
> verification step (manual or automatic)?
>
> On Thu, Dec 2, 2021 at 5:22 PM Julian Hyde <jh...@gmail.com> wrote:
>
> > It’s quite easy to script. For example,
> >
> > git checkout calcite-1.27.0
> > ./gradlew dependencies > /tmp/d27.txt
> > git checkout calcite-1.28.0
> > ./gradlew dependencies > /tmp/d28.txt
> > diff /tmp/d2{7,8}.txt
> >
> > I posted the output at
> > https://gist.github.com/julianhyde/9ca5915bfb91494b7f91405ad15d698e <
> > https://gist.github.com/julianhyde/9ca5915bfb91494b7f91405ad15d698e>.
> >
> > Julian
> >
> >
> > > On Nov 30, 2021, at 3:40 PM, Jacques Nadeau <ja...@apache.org> wrote:
> > >
> > > Nice.
> > >
> > > Anyone know if there is a tool to fingerprint dependencies between
> > releases
> > > so we can avoid introducing new dependencies accidentally?
> > >
> > > On Tue, Nov 30, 2021 at 1:26 PM Stamatis Zampetakis <za...@gmail.com>
> > > wrote:
> > >
> > >> It seems that Vladimir fixed this already in [1].
> > >>
> > >> [1]
> > >>
> > >>
> > https://github.com/apache/calcite/commit/f3e2f041567e35e65464676d3171db3b5f2ddf9c
> > >>
> > >> On Tue, Nov 30, 2021 at 7:50 PM Jacques Nadeau <ja...@apache.org>
> > wrote:
> > >>
> > >>> Can you file a JIRA? We should address before 1.29.
> > >>>
> > >>> On Tue, Nov 30, 2021 at 6:40 AM Zoltan Farkas
> > >> <zolyfarkas@yahoo.com.invalid
> > >>>>
> > >>> wrote:
> > >>>
> > >>>> According to the published pom it is a direct dependency:
> > >>>>
> > >>>
> > >>
> > https://repo1.maven.org/maven2/org/apache/calcite/calcite-core/1.28.0/calcite-core-1.28.0.pom
> > >>>> <
> > >>>>
> > >>>
> > >>
> > https://repo1.maven.org/maven2/org/apache/calcite/calcite-core/1.28.0/calcite-core-1.28.0.pom
> > >>>>>
> > >>>>
> > >>>>
> > >>>>> On Nov 29, 2021, at 11:41 PM, Vladimir Sitnikov <
> > >>>> sitnikov.vladimir@gmail.com> wrote:
> > >>>>>
> > >>>>>> since core/src/kotlin does not exist yet.
> > >>>>>
> > >>>>> I mean core/src/main/kotlin does not exist yet
> > >>>>>
> > >>>>> Vladimir
> > >>>>
> > >>>>
> > >>>
> > >>
> >
> >

Re: calcite-core 1.28.0 now depends on kotlin-stdlib?

Posted by Jacques Nadeau <ja...@apache.org>.
Any opinions on whether we should formalize into some kind of release
verification step (manual or automatic)?

On Thu, Dec 2, 2021 at 5:22 PM Julian Hyde <jh...@gmail.com> wrote:

> It’s quite easy to script. For example,
>
> git checkout calcite-1.27.0
> ./gradlew dependencies > /tmp/d27.txt
> git checkout calcite-1.28.0
> ./gradlew dependencies > /tmp/d28.txt
> diff /tmp/d2{7,8}.txt
>
> I posted the output at
> https://gist.github.com/julianhyde/9ca5915bfb91494b7f91405ad15d698e <
> https://gist.github.com/julianhyde/9ca5915bfb91494b7f91405ad15d698e>.
>
> Julian
>
>
> > On Nov 30, 2021, at 3:40 PM, Jacques Nadeau <ja...@apache.org> wrote:
> >
> > Nice.
> >
> > Anyone know if there is a tool to fingerprint dependencies between
> releases
> > so we can avoid introducing new dependencies accidentally?
> >
> > On Tue, Nov 30, 2021 at 1:26 PM Stamatis Zampetakis <za...@gmail.com>
> > wrote:
> >
> >> It seems that Vladimir fixed this already in [1].
> >>
> >> [1]
> >>
> >>
> https://github.com/apache/calcite/commit/f3e2f041567e35e65464676d3171db3b5f2ddf9c
> >>
> >> On Tue, Nov 30, 2021 at 7:50 PM Jacques Nadeau <ja...@apache.org>
> wrote:
> >>
> >>> Can you file a JIRA? We should address before 1.29.
> >>>
> >>> On Tue, Nov 30, 2021 at 6:40 AM Zoltan Farkas
> >> <zolyfarkas@yahoo.com.invalid
> >>>>
> >>> wrote:
> >>>
> >>>> According to the published pom it is a direct dependency:
> >>>>
> >>>
> >>
> https://repo1.maven.org/maven2/org/apache/calcite/calcite-core/1.28.0/calcite-core-1.28.0.pom
> >>>> <
> >>>>
> >>>
> >>
> https://repo1.maven.org/maven2/org/apache/calcite/calcite-core/1.28.0/calcite-core-1.28.0.pom
> >>>>>
> >>>>
> >>>>
> >>>>> On Nov 29, 2021, at 11:41 PM, Vladimir Sitnikov <
> >>>> sitnikov.vladimir@gmail.com> wrote:
> >>>>>
> >>>>>> since core/src/kotlin does not exist yet.
> >>>>>
> >>>>> I mean core/src/main/kotlin does not exist yet
> >>>>>
> >>>>> Vladimir
> >>>>
> >>>>
> >>>
> >>
>
>

Re: calcite-core 1.28.0 now depends on kotlin-stdlib?

Posted by Julian Hyde <jh...@gmail.com>.
It’s quite easy to script. For example,

git checkout calcite-1.27.0
./gradlew dependencies > /tmp/d27.txt
git checkout calcite-1.28.0
./gradlew dependencies > /tmp/d28.txt
diff /tmp/d2{7,8}.txt

I posted the output at https://gist.github.com/julianhyde/9ca5915bfb91494b7f91405ad15d698e <https://gist.github.com/julianhyde/9ca5915bfb91494b7f91405ad15d698e>.

Julian


> On Nov 30, 2021, at 3:40 PM, Jacques Nadeau <ja...@apache.org> wrote:
> 
> Nice.
> 
> Anyone know if there is a tool to fingerprint dependencies between releases
> so we can avoid introducing new dependencies accidentally?
> 
> On Tue, Nov 30, 2021 at 1:26 PM Stamatis Zampetakis <za...@gmail.com>
> wrote:
> 
>> It seems that Vladimir fixed this already in [1].
>> 
>> [1]
>> 
>> https://github.com/apache/calcite/commit/f3e2f041567e35e65464676d3171db3b5f2ddf9c
>> 
>> On Tue, Nov 30, 2021 at 7:50 PM Jacques Nadeau <ja...@apache.org> wrote:
>> 
>>> Can you file a JIRA? We should address before 1.29.
>>> 
>>> On Tue, Nov 30, 2021 at 6:40 AM Zoltan Farkas
>> <zolyfarkas@yahoo.com.invalid
>>>> 
>>> wrote:
>>> 
>>>> According to the published pom it is a direct dependency:
>>>> 
>>> 
>> https://repo1.maven.org/maven2/org/apache/calcite/calcite-core/1.28.0/calcite-core-1.28.0.pom
>>>> <
>>>> 
>>> 
>> https://repo1.maven.org/maven2/org/apache/calcite/calcite-core/1.28.0/calcite-core-1.28.0.pom
>>>>> 
>>>> 
>>>> 
>>>>> On Nov 29, 2021, at 11:41 PM, Vladimir Sitnikov <
>>>> sitnikov.vladimir@gmail.com> wrote:
>>>>> 
>>>>>> since core/src/kotlin does not exist yet.
>>>>> 
>>>>> I mean core/src/main/kotlin does not exist yet
>>>>> 
>>>>> Vladimir
>>>> 
>>>> 
>>> 
>> 


Re: calcite-core 1.28.0 now depends on kotlin-stdlib?

Posted by Jacques Nadeau <ja...@apache.org>.
Nice.

Anyone know if there is a tool to fingerprint dependencies between releases
so we can avoid introducing new dependencies accidentally?

On Tue, Nov 30, 2021 at 1:26 PM Stamatis Zampetakis <za...@gmail.com>
wrote:

> It seems that Vladimir fixed this already in [1].
>
> [1]
>
> https://github.com/apache/calcite/commit/f3e2f041567e35e65464676d3171db3b5f2ddf9c
>
> On Tue, Nov 30, 2021 at 7:50 PM Jacques Nadeau <ja...@apache.org> wrote:
>
> > Can you file a JIRA? We should address before 1.29.
> >
> > On Tue, Nov 30, 2021 at 6:40 AM Zoltan Farkas
> <zolyfarkas@yahoo.com.invalid
> > >
> > wrote:
> >
> > > According to the published pom it is a direct dependency:
> > >
> >
> https://repo1.maven.org/maven2/org/apache/calcite/calcite-core/1.28.0/calcite-core-1.28.0.pom
> > > <
> > >
> >
> https://repo1.maven.org/maven2/org/apache/calcite/calcite-core/1.28.0/calcite-core-1.28.0.pom
> > > >
> > >
> > >
> > > > On Nov 29, 2021, at 11:41 PM, Vladimir Sitnikov <
> > > sitnikov.vladimir@gmail.com> wrote:
> > > >
> > > >> since core/src/kotlin does not exist yet.
> > > >
> > > > I mean core/src/main/kotlin does not exist yet
> > > >
> > > > Vladimir
> > >
> > >
> >
>

Re: calcite-core 1.28.0 now depends on kotlin-stdlib?

Posted by Stamatis Zampetakis <za...@gmail.com>.
It seems that Vladimir fixed this already in [1].

[1]
https://github.com/apache/calcite/commit/f3e2f041567e35e65464676d3171db3b5f2ddf9c

On Tue, Nov 30, 2021 at 7:50 PM Jacques Nadeau <ja...@apache.org> wrote:

> Can you file a JIRA? We should address before 1.29.
>
> On Tue, Nov 30, 2021 at 6:40 AM Zoltan Farkas <zolyfarkas@yahoo.com.invalid
> >
> wrote:
>
> > According to the published pom it is a direct dependency:
> >
> https://repo1.maven.org/maven2/org/apache/calcite/calcite-core/1.28.0/calcite-core-1.28.0.pom
> > <
> >
> https://repo1.maven.org/maven2/org/apache/calcite/calcite-core/1.28.0/calcite-core-1.28.0.pom
> > >
> >
> >
> > > On Nov 29, 2021, at 11:41 PM, Vladimir Sitnikov <
> > sitnikov.vladimir@gmail.com> wrote:
> > >
> > >> since core/src/kotlin does not exist yet.
> > >
> > > I mean core/src/main/kotlin does not exist yet
> > >
> > > Vladimir
> >
> >
>

Re: calcite-core 1.28.0 now depends on kotlin-stdlib?

Posted by Jacques Nadeau <ja...@apache.org>.
Can you file a JIRA? We should address before 1.29.

On Tue, Nov 30, 2021 at 6:40 AM Zoltan Farkas <zo...@yahoo.com.invalid>
wrote:

> According to the published pom it is a direct dependency:
> https://repo1.maven.org/maven2/org/apache/calcite/calcite-core/1.28.0/calcite-core-1.28.0.pom
> <
> https://repo1.maven.org/maven2/org/apache/calcite/calcite-core/1.28.0/calcite-core-1.28.0.pom
> >
>
>
> > On Nov 29, 2021, at 11:41 PM, Vladimir Sitnikov <
> sitnikov.vladimir@gmail.com> wrote:
> >
> >> since core/src/kotlin does not exist yet.
> >
> > I mean core/src/main/kotlin does not exist yet
> >
> > Vladimir
>
>

Re: calcite-core 1.28.0 now depends on kotlin-stdlib?

Posted by Zoltan Farkas <zo...@yahoo.com.INVALID>.
According to the published pom it is a direct dependency: https://repo1.maven.org/maven2/org/apache/calcite/calcite-core/1.28.0/calcite-core-1.28.0.pom <https://repo1.maven.org/maven2/org/apache/calcite/calcite-core/1.28.0/calcite-core-1.28.0.pom>


> On Nov 29, 2021, at 11:41 PM, Vladimir Sitnikov <si...@gmail.com> wrote:
> 
>> since core/src/kotlin does not exist yet.
> 
> I mean core/src/main/kotlin does not exist yet
> 
> Vladimir


Re: calcite-core 1.28.0 now depends on kotlin-stdlib?

Posted by Vladimir Sitnikov <si...@gmail.com>.
>since core/src/kotlin does not exist yet.

I mean core/src/main/kotlin does not exist yet

Vladimir

Re: calcite-core 1.28.0 now depends on kotlin-stdlib?

Posted by Vladimir Sitnikov <si...@gmail.com>.
If it is a transitive dependency, then it is a transitive dependency.
Otherwise it is a bug.
I'm sure calcite-core itself does not use kotlin stdlib since
core/src/kotlin does not exist yet.

Vladimir

Re: calcite-core 1.28.0 now depends on kotlin-stdlib?

Posted by Jacques Nadeau <ja...@apache.org>.
Hopefully I didn't introduce this when doing the immutables work... I don't
think I did. But I'm also weak on gradle...

On Mon, Nov 29, 2021, 6:23 PM Julian Hyde <jh...@gmail.com> wrote:

> This is a surprise to me too. Vladimir?
>
> > On Nov 29, 2021, at 4:45 PM, Zoltan Farkas <zo...@yahoo.com.INVALID>
> wrote:
> >
> > I see that the latest release of calcite-core brings in kotlin-stdlib as
> a dependency.,
> >
> >    <dependency>
> >      <groupId>org.jetbrains.kotlin</groupId>
> >      <artifactId>kotlin-stdlib-jdk8</artifactId>
> >      <version>1.5.31</version>
> >    </dependency>
> >
> > I looked over the release notes, and I cannot find anything that
> mentions this, anyone knows why is this new dependency required?
> > (up until 1.27.0 kotlin was only a test dependency)
> >
> > thanks!
> >
> > —Z
>
>

Re: calcite-core 1.28.0 now depends on kotlin-stdlib?

Posted by Julian Hyde <jh...@gmail.com>.
This is a surprise to me too. Vladimir?

> On Nov 29, 2021, at 4:45 PM, Zoltan Farkas <zo...@yahoo.com.INVALID> wrote:
> 
> I see that the latest release of calcite-core brings in kotlin-stdlib as a dependency.,
> 
>    <dependency>
>      <groupId>org.jetbrains.kotlin</groupId>
>      <artifactId>kotlin-stdlib-jdk8</artifactId>
>      <version>1.5.31</version>
>    </dependency>
> 
> I looked over the release notes, and I cannot find anything that mentions this, anyone knows why is this new dependency required?
> (up until 1.27.0 kotlin was only a test dependency)
> 
> thanks!
> 
> —Z