[ https://issues.apache.org/jira/browse/FLINK-27131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17519376#comment-17519376 ]
Francesco Guardiani commented on FLINK-27131: --------------------------------------------- Sounds like a duplicate of https://issues.apache.org/jira/browse/FLINK-26979, investigating it > CastFunctionITCase.test failed on azure > --------------------------------------- > > Key: FLINK-27131 > URL: https://issues.apache.org/jira/browse/FLINK-27131 > Project: Flink > Issue Type: Bug > Components: Table SQL / Planner > Affects Versions: 1.16.0 > Reporter: Yun Gao > Priority: Major > Labels: test-stability > > {code:java} > Apr 07 20:09:45 [ERROR] Tests run: 513, Failures: 0, Errors: 1, Skipped: 0, > Time elapsed: 13.125 s <<< FAILURE! - in > org.apache.flink.table.planner.functions.CastFunctionITCase > Apr 07 20:09:45 [ERROR] > org.apache.flink.table.planner.functions.CastFunctionITCase.test(TestCase)[342] > Time elapsed: 0.008 s <<< ERROR! > Apr 07 20:09:45 org.apache.flink.api.common.InvalidProgramException: The > LocalStreamEnvironment cannot be used when submitting a program through a > client, or running in a TestEnvironment context. > Apr 07 20:09:45 at > org.apache.flink.streaming.api.environment.LocalStreamEnvironment.validateAndGetConfiguration(LocalStreamEnvironment.java:56) > Apr 07 20:09:45 at > org.apache.flink.streaming.api.environment.LocalStreamEnvironment.<init>(LocalStreamEnvironment.java:51) > Apr 07 20:09:45 at > org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.createLocalEnvironment(StreamExecutionEnvironment.java:2320) > Apr 07 20:09:45 at > org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.lambda$getExecutionEnvironment$15(StreamExecutionEnvironment.java:2262) > Apr 07 20:09:45 at java.util.Optional.orElseGet(Optional.java:267) > Apr 07 20:09:45 at > org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.getExecutionEnvironment(StreamExecutionEnvironment.java:2262) > Apr 07 20:09:45 at > org.apache.flink.table.planner.delegation.DefaultExecutorFactory.create(DefaultExecutorFactory.java:48) > Apr 07 20:09:45 at > org.apache.flink.table.api.internal.TableEnvironmentImpl.create(TableEnvironmentImpl.java:278) > Apr 07 20:09:45 at > org.apache.flink.table.api.TableEnvironment.create(TableEnvironment.java:93) > Apr 07 20:09:45 at > org.apache.flink.table.planner.functions.BuiltInFunctionTestBase$TestSetSpec.lambda$getTestCase$4(BuiltInFunctionTestBase.java:299) > Apr 07 20:09:45 at > org.apache.flink.table.planner.functions.BuiltInFunctionTestBase$TestCase.execute(BuiltInFunctionTestBase.java:113) > Apr 07 20:09:45 at > org.apache.flink.table.planner.functions.BuiltInFunctionTestBase.test(BuiltInFunctionTestBase.java:93) > Apr 07 20:09:45 at > sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source) > Apr 07 20:09:45 at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > Apr 07 20:09:45 at java.lang.reflect.Method.invoke(Method.java:498) > Apr 07 20:09:45 at > org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:725) > Apr 07 20:09:45 at > org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) > Apr 07 20:09:45 at > org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131) > Apr 07 20:09:45 at > org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149) > Apr 07 20:09:45 at > org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140) > Apr 07 20:09:45 at > org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestTemplateMethod(TimeoutExtension.java:92) > Apr 07 20:09:45 at > org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115) > Apr 07 20:09:45 at > org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105) > Apr 07 20:09:45 at > org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106) > Apr 07 20:09:45 at > org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64) > Apr 07 20:09:45 at > org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45) > Apr 07 20:09:45 at > org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37) > Apr 07 20:09:45 at > org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104) > Apr 07 20:09:45 at > org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98) > Apr 07 20:09:45 at > org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:214) > Apr 07 20:09:45 at > org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) > Apr 07 20:09:45 at > org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:210) > Apr 07 20:09:45 at > org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:135) > Apr 07 20:09:45 at > org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:66) > Apr 07 20:09:45 at > org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151) > Apr 07 20:09:45 at > org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) > {code} > https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=34390&view=logs&j=0c940707-2659-5648-cbe6-a1ad63045f0a&t=075c2716-8010-5565-fe08-3c4bb45824a4&l=10250 -- This message was sent by Atlassian Jira (v8.20.1#820001)