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

Jark Wu commented on FLINK-19563:
---------------------------------

I think this can provide more flexibility. Some users may want to monitor all 
tables under a specific database. 
Besides, we have to use "." to concat database and table if combining them, but 
"." is also special character in regular expression, this may conflict in the 
future if we want to support regular expression for the table and database 
name. 

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

Reply via email to