You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jark Wu (Jira)" <ji...@apache.org> on 2020/10/10 09:00:02 UTC

[jira] [Closed] (FLINK-19563) database and table,two option can be combined into one

     [ https://issues.apache.org/jira/browse/FLINK-19563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jark Wu closed FLINK-19563.
---------------------------
    Fix Version/s:     (was: 1.12.0)
       Resolution: Not A Problem

> database and table,two option can be combined into one
> ------------------------------------------------------
>
>                 Key: FLINK-19563
>                 URL: https://issues.apache.org/jira/browse/FLINK-19563
>             Project: Flink
>          Issue Type: Improvement
>          Components: Formats (JSON, Avro, Parquet, ORC, SequenceFile)
>    Affects Versions: 1.12.0
>            Reporter: Zhengchao Shi
>            Priority: Major
>
> the database and table option in canal-json format,can be combined into one?
> like this: database.table.
> there is only one comparison statement, and it is convenient to provide regular expressions later
> {code:java}
> if (table != null) {
> 	String currentDatabase = row.getString(3).toString();
> 	String currentTable = row.getString(4).toString();
> 	if (!table.equals(currentDatabase + "." + currentTable)) {
> 		return;
> 	}
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)