qidaye commented on a change in pull request #6569:
URL: https://github.com/apache/incubator-doris/pull/6569#discussion_r731810142
##########
File path: fe/fe-core/src/main/java/org/apache/doris/planner/BrokerScanNode.java
##########
@@ -138,7 +140,19 @@ public void init(Analyzer analyzer) throws UserException {
super.init(analyzer);
this.analyzer = analyzer;
- if (desc.getTable() != null) {
Review comment:
done
##########
File path: fe/fe-core/src/main/java/org/apache/doris/planner/BrokerScanNode.java
##########
@@ -163,7 +177,7 @@ public void init(Analyzer analyzer) throws UserException {
}
}
- private boolean isLoad() {
+ boolean isLoad() {
Review comment:
done
##########
File path: fe/fe-core/src/main/java/org/apache/doris/planner/BrokerScanNode.java
##########
@@ -312,32 +326,43 @@ private void getFileStatusAndCalcInstance() throws
UserException {
// This will be fixed later.
fileStatusesList = Lists.newArrayList();
filesAdded = 0;
- for (BrokerFileGroup fileGroup : fileGroups) {
- boolean isBinaryFileFormat = fileGroup.isBinaryFileFormat();
- List<TBrokerFileStatus> fileStatuses = Lists.newArrayList();
- for (int i = 0; i < fileGroup.getFilePaths().size(); i++) {
- if (brokerDesc.isMultiLoadBroker()) {
- TBrokerFileStatus fileStatus = new
TBrokerFileStatus(fileGroup.getFilePaths().get(i),
- false, fileGroup.getFileSize().get(i), false);
- fileStatuses.add(fileStatus);
- } else {
- BrokerUtil.parseFile(fileGroup.getFilePaths().get(i),
brokerDesc, fileStatuses);
- }
- }
-
- // only get non-empty file or non-binary file
- fileStatuses = fileStatuses.stream().filter(f -> {
- return f.getSize() > 0 || !isBinaryFileFormat;
- }).collect(Collectors.toList());
-
+ if (this instanceof HiveScanNode) {
Review comment:
done
--
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]