xxsc0529 commented on PR #7311:
URL: https://github.com/apache/seatunnel/pull/7311#issuecomment-2268580907

   > ### Purpose of this pull request
   > The original oceanbase catalog directly inherits the mysql catalog, which 
results in the need to add an additional mysql driver to the lib directory when 
using oceanbase alone. This submission solves this problem.
   > 
   > ### Does this PR introduce _any_ user-facing change?
   > yes,colse #7289
   > 
   > ### How was this patch tested?
   > Here is a simple test example env { job.mode = "BATCH" }
   > 
   > # 配置数据源
   > source { jdbc { url = "jdbc:oceanbase://localhost:2881/demo" driver = 
"com.oceanbase.jdbc.Driver" user = "xxxx@tt1" password = "123456" 
generate_sink_sql = true compatible_mode="mysql" database = "demo" table = 
"t_ds_user" query = "select * from t_ds_user" } }
   > 
   > transform { }
   > 
   > # 配置目标库
   > sink { jdbc { url = "jdbc:oceanbase://localhost:2881/test" driver = 
"com.oceanbase.jdbc.Driver" user = "xxxx@tt1" password = "123456" 
compatible_mode="mysql" generate_sink_sql = true database = "test" table = 
"t_ds_user" } Before the code was modified, because the oceanbase catalog 
inherited the mysql catalog, some classes could not be found when the mysql 
dependency package was not introduced, such as 
![image](https://private-user-images.githubusercontent.com/93303124/355044748-8629f383-3dec-4f4c-ba60-3b8b9e4eabcf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI4NDk1MzgsIm5iZiI6MTcyMjg0OTIzOCwicGF0aCI6Ii85MzMwMzEyNC8zNTUwNDQ3NDgtODYyOWYzODMtM2RlYy00ZjRjLWJhNjAtM2I4YjllNGVhYmNmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA1VDA5MTM1OFomWC1BbXotRXh
 
waXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgzNTNhMWNiNjZiNzVhYjZkNTE1MDFjOTRmZTY1NTgwMmVmZTA3MDQwZjJmODZlOTNhYzJlNmI4N2Y0M2JiMGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.WsQv01Ees1leCLFSTX7mBgHFriCQjuEg3lxspzsCqds)
 It is also impossible to automatically create a table After making the 
modification, the table can be created successfully without error. 
![image](https://private-user-images.githubusercontent.com/93303124/355045134-7d803cf3-9a2f-4d58-b4c7-4bf63080cb13.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI4NDk1MzgsIm5iZiI6MTcyMjg0OTIzOCwicGF0aCI6Ii85MzMwMzEyNC8zNTUwNDUxMzQtN2Q4MDNjZjMtOWEyZi00ZDU4LWI0YzctNGJmNjMwODBjYjEzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA1VDA5MTM1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0d
 
XJlPWEzYjc4YWJjNjI4MDVjODgxNmRhNTMzOGY0MTdjYWYwNjZhYjJlNzQ0MWE0YTBjNTA3NWQwNjM1M2Y3ODcxZDAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.AOfrXAmEY3aAG2IQ6ApjZpXr6bajpv40kaTUlAM_tm0)
 
![image](https://private-user-images.githubusercontent.com/93303124/355045174-a94659b5-d3e5-4835-bf21-fe9ecc66b629.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI4NDk1MzgsIm5iZiI6MTcyMjg0OTIzOCwicGF0aCI6Ii85MzMwMzEyNC8zNTUwNDUxNzQtYTk0NjU5YjUtZDNlNS00ODM1LWJmMjEtZmU5ZWNjNjZiNjI5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA1VDA5MTM1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTczNWVmZmE2OGYwMjQ2NDgxODY0MDAzNGRjNjEzNWQ1Yzg1N2M3N2I0ZGFiNmRjOWU5ZTQ2MjUzZDM1NTZjN2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.o
 KI_ZbdMfROKJd0IpEluV5KRatNav2os7fABqW5PIlw)
   > 
   > ### Check list
   > * [ ]  If any new Jar binary package adding in your PR, please add License 
Notice according
   >   [New License 
Guide](https://github.com/apache/seatunnel/blob/dev/docs/en/contribution/new-license.md)
   > * [ ]  If necessary, please update the documentation to describe the new 
feature. https://github.com/apache/seatunnel/tree/dev/docs
   > * [ ]  If you are contributing the connector code, please check that the 
following files are updated:
   >   
   >   1. Update change log that in connector document. For more details you 
can refer to 
[connector-v2](https://github.com/apache/seatunnel/tree/dev/docs/en/connector-v2)
   >   2. Update 
[plugin-mapping.properties](https://github.com/apache/seatunnel/blob/dev/plugin-mapping.properties)
 and add new connector information in it
   >   3. Update the pom file of 
[seatunnel-dist](https://github.com/apache/seatunnel/blob/dev/seatunnel-dist/pom.xml)
   > * [ ]  Update the 
[`release-note`](https://github.com/apache/seatunnel/blob/dev/release-note.md).
   
   


-- 
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