Re: gradle build main branch encounters error

2023-09-24 Thread P.F. ZHAN
Thank you all. I deleted the project and pulled the code again. The problem
disappeared. It seems to be an environmental problem.

On Sat, Sep 23, 2023 at 12:51 AM P.F. ZHAN  wrote:

> The step to reproduce step:
>
> ./gradlew clean
> ./gradlew build -x test --info | tee build.log
>
> The attached file is the build.log with more information.
>
> I found that some generated java file
> ExtensionSqlParserImplTokenManager.java is not complete.
>
>
> On Sat, Sep 23, 2023 at 12:35 AM P.F. ZHAN  wrote:
>
>> My environment:
>> macos Ventura/Version 13.5  Apple M1/16 GB
>> IntelliJ IDEA 2023.1.5 (Ultimate Edition)
>> Build #IU-231.9392.1, built on July 25, 2023
>> For educational use only.
>> Runtime version: 17.0.7+10-b829.16 aarch64
>> VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
>> macOS 13.5
>> GC: G1 Young Generation, G1 Old Generation
>> Memory: 2048M
>> Cores: 8
>> Metal Rendering is ON
>> Registry:
>> debugger.new.tool.window.layout=true
>> ide.experimental.ui=true
>> scala.erase.compiler.process.jdk.once=false
>>
>> Non-Bundled Plugins:
>> com.github.oowekyala.javacc (1.11)
>> org.jetbrains.kotlin (231-1.9.10-release-459-IJ8770.65)
>> org.intellij.scala (2023.1.23)
>>
>> Kotlin: 231-1.9.10-release-459-IJ8770.65
>>
>> The build log refers to the attached file.
>>
>>
>> On Fri, Sep 22, 2023 at 23:44 Ran Tao  wrote:
>>
>>> Hi, ZHAN.
>>>
>>> I noticed that this CALCITE-5920 was created by me before.
>>> In fact, this commit just reset the keywords and should not cause the
>>> error you reported.
>>> Moreover, this commit has been merged into the main branch for a while
>>> and
>>> it passed all necessary checks.
>>>
>>> Agree with @Stamatis suggestion, maybe you can clear the local project
>>> cache
>>> or gradle cache and try again, it will works.
>>>
>>> Best Regards,
>>> Ran Tao
>>>
>>>
>>> P.F. ZHAN  于2023年9月22日周五 02:54写道:
>>>
>>> > I rebased the newest code, and built the code locally
>>> >
>>> > * What went wrong:
>>> > Execution failed for task ':linq4j:forbiddenApisMain'.
>>> > > de.thetaphi.forbiddenapis.ForbiddenApiException: Check for forbidden
>>> API
>>> > calls failed while scanning class
>>> > 'org.apache.calcite.linq4j.QueryableRecorder$57':
>>> > java.lang.ClassNotFoundException:
>>> > org.apache.calcite.linq4j.QueryableDefaults$NonLeafReplayableQueryable
>>> > (while looking up details about referenced class
>>> > 'org.apache.calcite.linq4j.QueryableRecorder$57')
>>> >
>>>
>>


Re: gradle build main branch encounters error

2023-09-22 Thread P.F. ZHAN
My environment:
macos Ventura/Version 13.5  Apple M1/16 GB
IntelliJ IDEA 2023.1.5 (Ultimate Edition)
Build #IU-231.9392.1, built on July 25, 2023
For educational use only.
Runtime version: 17.0.7+10-b829.16 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 13.5
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Metal Rendering is ON
Registry:
debugger.new.tool.window.layout=true
ide.experimental.ui=true
scala.erase.compiler.process.jdk.once=false

Non-Bundled Plugins:
com.github.oowekyala.javacc (1.11)
org.jetbrains.kotlin (231-1.9.10-release-459-IJ8770.65)
org.intellij.scala (2023.1.23)

Kotlin: 231-1.9.10-release-459-IJ8770.65

The build log refers to the attached file.


On Fri, Sep 22, 2023 at 23:44 Ran Tao  wrote:

> Hi, ZHAN.
>
> I noticed that this CALCITE-5920 was created by me before.
> In fact, this commit just reset the keywords and should not cause the
> error you reported.
> Moreover, this commit has been merged into the main branch for a while and
> it passed all necessary checks.
>
> Agree with @Stamatis suggestion, maybe you can clear the local project
> cache
> or gradle cache and try again, it will works.
>
> Best Regards,
> Ran Tao
>
>
> P.F. ZHAN  于2023年9月22日周五 02:54写道:
>
> > I rebased the newest code, and built the code locally
> >
> > * What went wrong:
> > Execution failed for task ':linq4j:forbiddenApisMain'.
> > > de.thetaphi.forbiddenapis.ForbiddenApiException: Check for forbidden
> API
> > calls failed while scanning class
> > 'org.apache.calcite.linq4j.QueryableRecorder$57':
> > java.lang.ClassNotFoundException:
> > org.apache.calcite.linq4j.QueryableDefaults$NonLeafReplayableQueryable
> > (while looking up details about referenced class
> > 'org.apache.calcite.linq4j.QueryableRecorder$57')
> >
>


Re: gradle build main branch encounters error

2023-09-22 Thread Ran Tao
Hi, ZHAN.

I noticed that this CALCITE-5920 was created by me before.
In fact, this commit just reset the keywords and should not cause the
error you reported.
Moreover, this commit has been merged into the main branch for a while and
it passed all necessary checks.

Agree with @Stamatis suggestion, maybe you can clear the local project
cache
or gradle cache and try again, it will works.

Best Regards,
Ran Tao


P.F. ZHAN  于2023年9月22日周五 02:54写道:

> I rebased the newest code, and built the code locally
>
> * What went wrong:
> Execution failed for task ':linq4j:forbiddenApisMain'.
> > de.thetaphi.forbiddenapis.ForbiddenApiException: Check for forbidden API
> calls failed while scanning class
> 'org.apache.calcite.linq4j.QueryableRecorder$57':
> java.lang.ClassNotFoundException:
> org.apache.calcite.linq4j.QueryableDefaults$NonLeafReplayableQueryable
> (while looking up details about referenced class
> 'org.apache.calcite.linq4j.QueryableRecorder$57')
>


Re: gradle build main branch encounters error

2023-09-22 Thread Stamatis Zampetakis
Looks like a staleness (gradle caches, build dirs) issue. Clean
everything and start from scratch normally it should go away.

Best,
Stamatis


On Fri, Sep 22, 2023 at 9:43 AM Benchao Li  wrote:
>
> I couldn't reproduce the problem you described locally.
>
> And looking at the history of the main branch[1], it seems most of the
> commits' checking is passing.
>
> Could you give more info about the steps and environment so that we
> can reproduce it?
>
> [1] https://github.com/apache/calcite/commits/main
>
> P.F. ZHAN  于2023年9月22日周五 03:44写道:
> >
> > It seems caused by the pr of issue,
> > https://issues.apache.org/jira/browse/CALCITE-5920
> > I revert this pr locally, it works.
> >
> >
> > On Fri, Sep 22, 2023 at 2:54 AM P.F. ZHAN  wrote:
> >
> > > I rebased the newest code, and built the code locally
> > >
> > > * What went wrong:
> > > Execution failed for task ':linq4j:forbiddenApisMain'.
> > > > de.thetaphi.forbiddenapis.ForbiddenApiException: Check for forbidden API
> > > calls failed while scanning class
> > > 'org.apache.calcite.linq4j.QueryableRecorder$57':
> > > java.lang.ClassNotFoundException:
> > > org.apache.calcite.linq4j.QueryableDefaults$NonLeafReplayableQueryable
> > > (while looking up details about referenced class
> > > 'org.apache.calcite.linq4j.QueryableRecorder$57')
> > >
> > >
> > >
>
>
>
> --
>
> Best,
> Benchao Li


Re: gradle build main branch encounters error

2023-09-22 Thread Benchao Li
I couldn't reproduce the problem you described locally.

And looking at the history of the main branch[1], it seems most of the
commits' checking is passing.

Could you give more info about the steps and environment so that we
can reproduce it?

[1] https://github.com/apache/calcite/commits/main

P.F. ZHAN  于2023年9月22日周五 03:44写道:
>
> It seems caused by the pr of issue,
> https://issues.apache.org/jira/browse/CALCITE-5920
> I revert this pr locally, it works.
>
>
> On Fri, Sep 22, 2023 at 2:54 AM P.F. ZHAN  wrote:
>
> > I rebased the newest code, and built the code locally
> >
> > * What went wrong:
> > Execution failed for task ':linq4j:forbiddenApisMain'.
> > > de.thetaphi.forbiddenapis.ForbiddenApiException: Check for forbidden API
> > calls failed while scanning class
> > 'org.apache.calcite.linq4j.QueryableRecorder$57':
> > java.lang.ClassNotFoundException:
> > org.apache.calcite.linq4j.QueryableDefaults$NonLeafReplayableQueryable
> > (while looking up details about referenced class
> > 'org.apache.calcite.linq4j.QueryableRecorder$57')
> >
> >
> >



-- 

Best,
Benchao Li


Re: gradle build main branch encounters error

2023-09-21 Thread P.F. ZHAN
It seems caused by the pr of issue,
https://issues.apache.org/jira/browse/CALCITE-5920
I revert this pr locally, it works.


On Fri, Sep 22, 2023 at 2:54 AM P.F. ZHAN  wrote:

> I rebased the newest code, and built the code locally
>
> * What went wrong:
> Execution failed for task ':linq4j:forbiddenApisMain'.
> > de.thetaphi.forbiddenapis.ForbiddenApiException: Check for forbidden API
> calls failed while scanning class
> 'org.apache.calcite.linq4j.QueryableRecorder$57':
> java.lang.ClassNotFoundException:
> org.apache.calcite.linq4j.QueryableDefaults$NonLeafReplayableQueryable
> (while looking up details about referenced class
> 'org.apache.calcite.linq4j.QueryableRecorder$57')
>
>
>


gradle build main branch encounters error

2023-09-21 Thread P.F. ZHAN
I rebased the newest code, and built the code locally

* What went wrong:
Execution failed for task ':linq4j:forbiddenApisMain'.
> de.thetaphi.forbiddenapis.ForbiddenApiException: Check for forbidden API
calls failed while scanning class
'org.apache.calcite.linq4j.QueryableRecorder$57':
java.lang.ClassNotFoundException:
org.apache.calcite.linq4j.QueryableDefaults$NonLeafReplayableQueryable
(while looking up details about referenced class
'org.apache.calcite.linq4j.QueryableRecorder$57')