xylaaaaa opened a new pull request, #61513:
URL: https://github.com/apache/doris/pull/61513
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary: Paimon JDBC system tables that execute through the BE JNI
scanner could not initialize the PostgreSQL JDBC driver, so queries such as
snapshots/manifests/partitions failed with `No suitable driver found`. This
change propagates JDBC driver metadata to BE and registers the driver in a
DriverManager-visible classloader before Paimon table initialization. The
regression case is also extended to cover all supported Paimon JDBC system
tables, including `row_tracking` on a row-tracking-enabled table.
### Release note
Fix Paimon JDBC catalog system table queries that run through the BE JNI
scanner.
### Check List (For Author)
- Test
- [x] Unit Test
- [x] Manual test (add detailed scripts or steps below)
- [ ] Regression test
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason
Manual test:
- `./run-fe-ut.sh --run
org.apache.doris.datasource.property.metastore.PaimonJdbcMetaStorePropertiesTest,org.apache.doris.datasource.paimon.source.PaimonScanNodeTest`
- `env JAVA_HOME=/mnt/disk1/chenjunwei/doris_tools/jdk-17.0.9+9
/mnt/disk1/chenjunwei/doris_tools/apache-maven-3.9.9/bin/mvn -pl
be-java-extensions/paimon-scanner -am test -Dtest=PaimonJdbcDriverUtilsTest
-DfailIfNoTests=false`
- Verified all Paimon JDBC system tables on the local FE/BE cluster,
including `row_tracking` on a row-tracking-enabled table
- Behavior changed:
- [x] Yes. Paimon JDBC system tables now work through BE JNI scans.
- Does this need documentation?
- [x] No.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]