morningman commented on code in PR #54300:
URL: https://github.com/apache/doris/pull/54300#discussion_r2264508502
##########
fe/fe-core/src/main/java/org/apache/doris/planner/HiveTableSink.java:
##########
@@ -125,23 +124,17 @@ public void bindDataSink(Optional<InsertCommandContext>
insertCtx)
setSerDeProperties(tSink);
THiveLocationParams locationParams = new THiveLocationParams();
- LocationPath locationPath = null;
- try {
- locationPath = LocationPath.of(sd.getLocation(),
targetTable.getStoragePropertiesMap(), false);
- } catch (UserException e) {
- throw new RuntimeException(e);
- }
- String location = locationPath.getPath().toString();
- String storageLocation = locationPath.toStorageLocation().toString();
+ LocationPath locationPath = LocationPath.of(sd.getLocation(),
targetTable.getStoragePropertiesMap());
+ String location = sd.getLocation();
TFileType fileType = locationPath.getTFileTypeForBE();
if (fileType == TFileType.FILE_S3) {
- locationParams.setWritePath(storageLocation);
- locationParams.setOriginalWritePath(location);
- locationParams.setTargetPath(location);
+ locationParams.setWritePath(locationPath.getNormalizedLocation());
Review Comment:
I think the write path and OriginalWritePath are different
--
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]