[
https://issues.apache.org/jira/browse/FLINK-16539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17057725#comment-17057725
]
Jun Zhang commented on FLINK-16539:
-----------------------------------
I found that the system did a trim operation when parsing the command line, but
did not do a trim operation on the value. Besides, I don’t know if the trim
will affect other commands except the set command,so I add the trim to the
callSet method. [~ykt836]
> 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)