Skip to content

[#12093] fix(doris): Load partition assignments#12120

Open
yuqi1129 wants to merge 2 commits into
apache:mainfrom
yuqi1129:fix/doris-partition-assignments
Open

[#12093] fix(doris): Load partition assignments#12120
yuqi1129 wants to merge 2 commits into
apache:mainfrom
yuqi1129:fix/doris-partition-assignments

Conversation

@yuqi1129

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Load Doris list and range partition assignments from SHOW PARTITIONS when loading table metadata.

Reuse the existing Doris partition conversion logic for both table loading and partition operations, and add coverage for loaded list/range assignments.

Why are the changes needed?

Doris table loading currently restores only partition fields from SHOW CREATE TABLE. As a result, list and range partition assignments are returned as empty arrays.

Fix: #12093

Does this PR introduce any user-facing change?

Yes. Loading a Doris table now returns its list or range partition assignments in partitioning.assignments.

How was this patch tested?

  • Added assertions for loaded range partition assignments.

  • Added assertions for loaded multi-column list partition assignments.

  • Ran:

    ./gradlew :catalogs:catalog-jdbc-doris:spotlessApply :catalogs:catalog-jdbc-doris:test -PskipITs -PskipDockerTests=true

The Docker-tagged Doris integration tests were not executed locally because Docker was unavailable.

Copilot AI review requested due to automatic review settings July 21, 2026 08:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@yuqi1129 yuqi1129 self-assigned this Jul 21, 2026
@yuqi1129
yuqi1129 requested a review from Copilot July 21, 2026 08:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown

Code Coverage Report

Overall Project 67.76% +0.45% 🟢
Files changed 85.51% 🟢

Module Coverage
aliyun 1.72% 🔴
api 47.82% 🟢
authorization-common 85.96% 🟢
aws 42.04% 🟢
azure 2.47% 🔴
catalog-common 9.92% 🔴
catalog-fileset 79.74% 🟢
catalog-glue 66.91% 🟢
catalog-hive 79.4% 🟢
catalog-jdbc-common 44.44% +0.23% 🟢
catalog-jdbc-doris 81.9% +15.86% 🟢
catalog-jdbc-mysql 79.23% +12.92% 🟢
catalog-jdbc-postgresql 82.29% +10.14% 🟢
catalog-jdbc-starrocks 78.51% +6.82% 🟢
catalog-kafka 77.01% 🟢
catalog-lakehouse-generic 59.18% 🟢
catalog-lakehouse-hudi 79.1% 🟢
catalog-lakehouse-iceberg 85.93% 🟢
catalog-lakehouse-paimon 84.23% 🟢
catalog-model 77.72% 🟢
cli 44.5% 🟢
client-java 78.27% 🟢
common 51.95% 🟢
core 82.55% 🟢
filesystem-hadoop3 77.28% 🟢
flink 0.0% 🔴
flink-common 47.09% 🟢
flink-runtime 0.0% 🔴
gcp 14.12% 🔴
hadoop-auth 68.0% 🟢
hadoop-common 12.7% 🔴
hive-metastore-common 53.4% 🟢
iceberg-common 64.65% 🟢
iceberg-rest-server 74.91% 🟢
idp-basic 86.02% 🟢
integration-test-common 0.0% 🔴
jobs 66.17% 🟢
lance-common 20.67% 🔴
lance-rest-server 64.84% 🟢
lineage 53.02% 🟢
optimizer 83.17% 🟢
optimizer-api 21.95% 🔴
server 86.05% 🟢
server-common 76.12% 🟢
spark 28.57% 🔴
spark-common 46.01% 🟢
tencent 69.84% 🟢
trino-connector 40.29% 🟢
Files
Module File Coverage
catalog-jdbc-common JdbcConnectorUtils.java 100.0% 🟢
catalog-jdbc-doris DorisUtils.java 95.41% 🟢
DorisTablePartitionOperations.java 93.29% 🟢
DorisTableOperations.java 83.84% 🟢
catalog-jdbc-mysql MysqlTableOperations.java 85.56% 🟢
catalog-jdbc-postgresql PostgreSqlTableOperations.java 87.43% 🟢
PostgreSqlSchemaOperations.java 78.26% 🟢
catalog-jdbc-starrocks StarRocksUtils.java 86.49% 🟢
StarRocksTableOperations.java 79.87% 🟢

@yuqi1129
yuqi1129 requested a review from diqiu50 July 21, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug report] Doris list/range partition assignments are empty when loading a table

2 participants