[
https://issues.apache.org/jira/browse/FLINK-16539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17057711#comment-17057711
]
Jun Zhang commented on FLINK-16539:
-----------------------------------
If the attribute value is an int type with spaces in front, the system does not
remove the spaces. When using Integer.valueOf () function to verify it, an
error will be thrown, we just remove the spaces before and after
> sql client set param error
> --------------------------
>
> Key: FLINK-16539
> URL: https://issues.apache.org/jira/browse/FLINK-16539
> Project: Flink
> Issue Type: Bug
> Components: Table SQL / Client
> Affects Versions: 1.10.0
> Reporter: Jun Zhang
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.11.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> When setting int type parameters in sql client, such as:
> set execution.parallelism = 10;
> The system threw an exception:
> {code:java}
> //
> Caused by: org.apache.flink.table.api.ValidationException: Property
> 'parallelism' must be a integer value but was: 10 at
> org.apache.flink.table.descriptors.DescriptorProperties.validateComparable(DescriptorProperties.java:1572)
> at
> org.apache.flink.table.descriptors.DescriptorProperties.validateInt(DescriptorProperties.java:944)
> at
> org.apache.flink.table.descriptors.DescriptorProperties.validateInt(DescriptorProperties.java:937)
> at
> org.apache.flink.table.client.config.entries.ExecutionEntry.validate(ExecutionEntry.java:140)
> at
> org.apache.flink.table.client.config.entries.ConfigEntry.<init>(ConfigEntry.java:39)
> ... 11 more
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)