zy-kkk opened a new pull request, #57973:
URL: https://github.com/apache/doris/pull/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`.
   
   


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

Reply via email to