You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Alexander Trushev (Jira)" <ji...@apache.org> on 2022/07/18 03:18:00 UTC

[jira] [Commented] (FLINK-24342) Filesystem sink does not escape right bracket in partition name

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

Alexander Trushev commented on FLINK-24342:
-------------------------------------------

Can this ticket be reviewed please

> Filesystem sink does not escape right bracket in partition name
> ---------------------------------------------------------------
>
>                 Key: FLINK-24342
>                 URL: https://issues.apache.org/jira/browse/FLINK-24342
>             Project: Flink
>          Issue Type: Bug
>          Components: Connectors / FileSystem
>            Reporter: Alexander Trushev
>            Priority: Minor
>              Labels: auto-deprioritized-minor, pull-request-available
>
> h3. How to reproduce the problem
> In the following code snippet filesystem sink creates a partition named "\{date\}" and writes value "1" to file.
> {code:sql}
> create table sink (
>   val int,
>   part string
> ) partitioned by (part) with (
>   'connector' = 'filesystem',
>   'path' = '/tmp/sink',
>   'format' = 'csv'
> );
> insert into sink values (1, '{date}');
> {code}
> h3. Expected behavior
> Escaped "\{" and "\}" in partition name
> {code}
> $ ls /tmp/sink/
> part=%7Bdate%7D
> {code}
> h3. Actual behavior
> Escaped only "\{" in partition name
> {code}
> $ ls /tmp/sink/
> part=%7Bdate}
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)