You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "JackeyLee007 (via GitHub)" <gi...@apache.org> on 2024/12/07 11:06:32 UTC

[I] [Feature] kafka_sync_database supports table name mapping when prefix and postfix could not fit the need. [paimon]

JackeyLee007 opened a new issue, #4659:
URL: https://github.com/apache/paimon/issues/4659

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/paimon/issues) and found nothing similar.
   
   
   ### Motivation
   
   We are in the middle of transfer from existing warehouse to paimon. There are some irregular tables, whose names are not only prefixed or postfixed with the source tables. Even though we could adapt the sql to prefix and postfix, but it will cost too much time. So, we need the table name mapping. And the mapping rule has a higher priority than prefix and postfix. 
   
   ### Solution
   
   Add a new configuration option, named as table_mapping. And user could supply more than one map rule, like the following:
   ```shell
   kafka_sync_database
   ...
   --table_mapping src1=tgt1
   --table_mapping src2=tgt2
   ...
   --table_mapping srcn=tgtn
   ...
   ```
   If there is one table named as src1, src2, ..., srcn, the sinked table name should be tgt1, tgt2, ... tgtn, even though prefix or postfix are configured too.
   
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] kafka_sync_database supports table name mapping when prefix and postfix could not fit the need. [paimon]

Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi closed issue #4659: [Feature] kafka_sync_database supports table name mapping when prefix and postfix could not fit the need. 
URL: https://github.com/apache/paimon/issues/4659


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org