Hi Michael,
Following is the message from the compilation error
*ERROR*] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
*(default-compile)* on project parse: *Compilation failure*
[*ERROR*] */Users/devjyotip/AvaticaPrestoParser.java:[46,17] cannot find
symbol*
[*ERROR*] * symbol: method
setConformance(org.apache.calcite.sql.validate.SqlConformanceEnum)*
[*ERROR*] * location: class
org.apache.calcite.sql.parser.SqlParser.ConfigBuilder*
[*ERROR*]
[*ERROR*] -> *[Help 1]*
*org.apache.maven.lifecycle.LifecycleExecutionException*: *Failed to
execute goal **org.apache.maven.plugins:maven-compiler-plugin:3.1:compile*
*(default-compile)* on project parse: *Compilation failure*
And following is the stacktrace from Maven
*at* org.apache.maven.lifecycle.internal.MojoExecutor.execute (
*MojoExecutor.java:213*)
*at* org.apache.maven.lifecycle.internal.MojoExecutor.execute (
*MojoExecutor.java:154*)
*at* org.apache.maven.lifecycle.internal.MojoExecutor.execute (
*MojoExecutor.java:146*)
*at*
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (
*LifecycleModuleBuilder.java:117*)
*at*
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (
*LifecycleModuleBuilder.java:81*)
*at*
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(*SingleThreadedBuilder.java:56*)
*at* org.apache.maven.lifecycle.internal.LifecycleStarter.execute (
*LifecycleStarter.java:128*)
*at* org.apache.maven.DefaultMaven.doExecute (*DefaultMaven.java:305*)
*at* org.apache.maven.DefaultMaven.doExecute (*DefaultMaven.java:192*)
*at* org.apache.maven.DefaultMaven.execute (*DefaultMaven.java:105*)
*at* org.apache.maven.cli.MavenCli.execute (*MavenCli.java:956*)
*at* org.apache.maven.cli.MavenCli.doMain (*MavenCli.java:290*)
*at* org.apache.maven.cli.MavenCli.main (*MavenCli.java:194*)
*at* sun.reflect.NativeMethodAccessorImpl.invoke0 (*Native Method*)
*at* sun.reflect.NativeMethodAccessorImpl.invoke (
*NativeMethodAccessorImpl.java:62*)
*at* sun.reflect.DelegatingMethodAccessorImpl.invoke (
*DelegatingMethodAccessorImpl.java:43*)
*at* java.lang.reflect.Method.invoke (*Method.java:498*)
*at* org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (
*Launcher.java:289*)
*at* org.codehaus.plexus.classworlds.launcher.Launcher.launch (
*Launcher.java:229*)
*at* org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
(*Launcher.java:415*)
*at* org.codehaus.plexus.classworlds.launcher.Launcher.main (
*Launcher.java:356*)
*Caused by*: org.apache.maven.plugin.compiler.CompilationFailureException:
*Compilation
failure*
On Mon, Nov 26, 2018 at 8:25 PM Michael Mior <[email protected]> wrote:
> You seem to only be showing the first line of the error. There should be a
> longer message below that would probably be helpful for debugging.
>
> --
> Michael Mior
> [email protected]
>
>
> Le lun. 26 nov. 2018 à 06:54, Devjyoti Patra <[email protected]> a
> écrit :
>
> > Hi, I am trying to build the parser config using the Configbuilder class
> >
> > SqlParser.configBuilder()
> > .setUnquotedCasing(Casing.UNCHANGED)
> > .setConformance(SqlConformanceEnum.DEFAULT)
> > .build();
> >
> > But this throws an error during compile rime
> >
> > [*ERROR*] * symbol: method
> > setConformance(org.apache.calcite.sql.validate.SqlConformanceEnum)*
> >
> > This is in Calcite 1.15.0.
> >
> > I wanted to extend SqlSbatractConformance class to override some settings
> > for Presto. What is the right way to override the conformance or how can
> I
> > prevent this compilation error?
> >
> > Thanks,
> > Devjyoti
> >
>