Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.9.0
Description
When setting TableEnvironment in scala as follwing:
// we can repoduce this problem by put following code in // org.apache.flink.table.api.scala.internal.StreamTableEnvironmentImplTest @Test def testCreateEnvironment(): Unit = { val settings = EnvironmentSettings.newInstance().useBlinkPlanner().inBatchMode().build(); val tEnv = TableEnvironment.create(settings); }
Then mvn test would fail with an error message like:
error: Static methods in interface require -target:JVM-1.8
We can fix this bug by adding:
<configuration>
<args>
<arg>-target:jvm-1.8</arg>
</args>
</configuration>
to scala-maven-plugin config
Attachments
Issue Links
- links to