Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
kubernetes-operator-1.5.0
Description
When having a script containing `SET` statement the SQL Runner example execute it as an SQL query and is not setting the environment config instead.
How to reproduce
This issue can be reproduced as follows:
- Add SET 'parallelism.default' = '2'; on top of the SQL statements in https://github.com/apache/flink-kubernetes-operator/blob/main/examples/flink-sql-runner-example/sql-scripts/statement-set.sql
- Build and execute the example, and verify that the error The main method caused an error: Unsupported SQL query! executeSql() only accepts a single SQL statement of type [...] is happening in the pod log