Skip to content

Conversation

@github-actions
Copy link
Contributor

Cherry-picked from #57973

…ve partitioned tables on object storage (#57973)

## Problem
When inserting data into Hive partitioned tables stored on S3-compatible
object storage (OSS/COS/OBS), the operation fails with authentication
error because
BE unifies all object storage under "s3://" scheme, but HMS expects the
original scheme (e.g., "oss://"). The mismatch causes s3a FileSystem to
access OSS
  endpoints with wrong credentials.

## Solution
Changed `HMSTransaction.finishInsertTable()` line 277 to use `writePath`
instead of `getTargetPath()`. The `writePath` variable already contains
the correct
  original scheme from HMS, avoiding the scheme conversion issue.

## Test
Added partition table insert tests for OSS/COS/OBS in
`hive_on_hms_and_dlf.groovy`.
@github-actions github-actions bot requested a review from morrySnow as a code owner November 14, 2025 08:17
@hello-stephen
Copy link
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@hello-stephen
Copy link
Contributor

run buildall

@morningman morningman closed this Nov 15, 2025
@morningman morningman reopened this Nov 15, 2025
@morrySnow
Copy link
Contributor

run buildall

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage 33.33% (1/3) 🎉
Increment coverage report
Complete coverage report

@morrySnow
Copy link
Contributor

run buildall

1 similar comment
@morrySnow
Copy link
Contributor

run buildall

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage 33.33% (1/3) 🎉
Increment coverage report
Complete coverage report

@morningman morningman merged commit d8d3657 into branch-3.1 Nov 19, 2025
23 checks passed
@github-actions github-actions bot deleted the auto-pick-57973-branch-3.1 branch November 19, 2025 10:11
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.

4 participants