xylaaaaa opened a new pull request, #59502:
URL: https://github.com/apache/doris/pull/59502
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Currently, Doris supports multiple Iceberg catalog types (HMS, REST, Hadoop,
Glue, DLF, S3Tables) but lacks support for JDBC Catalog. This PR adds support
for Iceberg JDBC Catalog, which allows users to store Iceberg metadata in
relational databases like PostgreSQL, MySQL, and SQLite.
**Key Changes:**
- Added `IcebergJdbcMetaStoreProperties` class to handle JDBC catalog
configurations
- Added `IcebergJdbcExternalCatalog` class for JDBC catalog operations
- Integrated JDBC catalog with existing Iceberg framework (factory
registration, Gson serialization)
- Added support for all storage systems (S3, HDFS, OSS, etc.) with JDBC
catalog
- Added proper S3FileIO configuration for S3-compatible storage
**Benefits:**
- Provides an alternative metadata storage option using relational databases
- Supports database transactions for better concurrency control
- Easier deployment compared to HMS for users without existing Hive
infrastructure
- Better integration with existing database infrastructure
### Release note
**Features**
- [Iceberg] Support Iceberg JDBC Catalog for metadata storage in relational
databases (PostgreSQL, MySQL, SQLite)
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [x] Manual test (add detailed scripts or steps below)
- [ ] 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 <!-- Add your reason? -->
**Manual Test Steps:**
1. Setup PostgreSQL database with user and database
2. Create JDBC catalog with PostgreSQL backend and S3 storage
3. Test database and table operations (CREATE DATABASE/TABLE, INSERT, SELECT)
4. Verify metadata is correctly stored in PostgreSQL tables
5. Verify data files are correctly written to S3 storage
- Behavior changed:
- [ ] No.
- [x] Yes. <!-- New catalog type "jdbc" is now supported -->
- Does this need documentation?
- [ ] No.
- [x] Yes. <!-- Need to document the new JDBC catalog configuration
parameters and usage examples -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should
merge into -->
--
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]