morningman commented on code in PR #19557: URL: https://github.com/apache/doris/pull/19557#discussion_r1191874267
########## fe/fe-core/src/main/java/org/apache/doris/planner/external/FileQueryScanNode.java: ########## @@ -242,9 +243,19 @@ public void createScanRangeLocations() throws UserException { List<String> pathPartitionKeys = getPathPartitionKeys(); for (Split split : inputSplits) { - TScanRangeLocations curLocations = newLocations(params, backendPolicy); FileSplit fileSplit = (FileSplit) split; + TFileScanRangeParams scanRangeParams; + if (!isCsvFormat) { + scanRangeParams = params; + } else { + // If fileFormatType is csv format, uncompressed files may be coexists with compressed files + // So we need set compressType separately + scanRangeParams = new TFileScanRangeParams(params); + scanRangeParams.setCompressType(getFileCompressType(fileSplit)); Review Comment: I think we should do this for json, too -- 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