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-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org