MOBIN-F opened a new pull request, #4193:
URL: https://github.com/apache/paimon/pull/4193

   <!-- Please specify the module before the PR name: [core] ... or [flink] ... 
-->
   
   ### Purpose
   
   Currently, there are still many paimon users who need to support computed 
columns when synchronizing multiple tables in the entire database. This PR will 
implement this feature.
   
   If the referenced columned column exists in the table, the columned column 
function will be triggered. For example,
   ```
   Table A column:
   col1 col2 col3 create_sys_tm
   
   Table B column:
   col1 col4 col4 create_sys_tm
   
   Define the calculated function:
   --computed_column="_substring=substring(col3,2), 
pt=date_format(create_sys_tm,yyyyMMdd)"
   
   The final table structure is as follows:
   Table A column:
   col1 col2 col3 _substring pt
   
   Table B column:
   col1 col4 col4 pt
   ```
   
   The main changes of PR:
   Move the implementation of xxxRecordParser#evalComputedColumns down to 
RichCdcMultiplexRecordEventParser#evalComputedColumns
   
   ### Tests
   
   MySqlSyncDatabaseTableListITCase#testComputedColumn
   
   MongoDBSyncDatabaseActionITCase#testComputedColumn
   
   KafkaOggSyncDatabaseActionITCase#testComputedColumn
   
   KafkaMaxwellSyncDatabaseActionITCase#testComputedColumn
   
   KafkaCanalSyncDatabaseActionITCase#testComputedColumn
   
   ### API and Format
   
   <!-- Does this change affect API or storage format -->
   
   ### Documentation
   
   <!-- Does this change introduce a new feature -->
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to