morningman commented on code in PR #34926:
URL: https://github.com/apache/doris/pull/34926#discussion_r1603279654
##########
fe/fe-core/src/main/java/org/apache/doris/tablefunction/ExternalFileTableValuedFunction.java:
##########
@@ -484,7 +484,8 @@ private PFetchTableSchemaRequest
getFetchTableStructureRequest() throws TExcepti
// get first file, used to parse table schema
TBrokerFileStatus firstFile = null;
for (TBrokerFileStatus fileStatus : fileStatuses) {
- if (fileStatus.isIsDir() || fileStatus.size == 0) {
+ if (fileStatus.isIsDir() || fileStatus.size == 0
+ || (compressionType != TFileCompressType.UNKNOWN &&
fileStatus.size <= 4)) {
Review Comment:
Are you sure all compressed file size have at least 4 bytes?
--
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]