You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Kurt Young (Jira)" <ji...@apache.org> on 2020/03/11 08:59:00 UTC

[jira] [Commented] (FLINK-16539) sql client set param error

    [ https://issues.apache.org/jira/browse/FLINK-16539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17056767#comment-17056767 ] 

Kurt Young commented on FLINK-16539:
------------------------------------

Looks like we forgot to trim the value somewhere. [~zhangjun] would you like to fix this?

> 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
>             Fix For: 1.11.0
>
>
> 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)