You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "morningman (via GitHub)" <gi...@apache.org> on 2023/05/10 04:14:28 UTC

[GitHub] [doris] morningman commented on a diff in pull request #19387: [Fix](multi-catalog) Fix query hms tbl with compressed data files.

morningman commented on code in PR #19387:
URL: https://github.com/apache/doris/pull/19387#discussion_r1189340286


##########
fe/fe-core/src/main/java/org/apache/doris/planner/external/FileQueryScanNode.java:
##########
@@ -211,9 +212,9 @@ public void createScanRangeLocations() throws UserException {
         FileSplit inputSplit = (FileSplit) inputSplits.get(0);
         TFileType locationType = getLocationType();
         params.setFileType(locationType);
-        TFileFormatType fileFormatType = getFileFormatType();
-        params.setFormatType(getFileFormatType());
-        if (fileFormatType == TFileFormatType.FORMAT_CSV_PLAIN || fileFormatType == TFileFormatType.FORMAT_JSON) {
+        TFileFormatType fileFormatType = getFileFormatType(inputSplit);
+        params.setFormatType(fileFormatType);

Review Comment:
   Better use `params.setCompressType()` to set compress type separately



-- 
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: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org