morningman commented on code in PR #38946:
URL: https://github.com/apache/doris/pull/38946#discussion_r1825524136
##########
fe/fe-core/src/main/java/org/apache/doris/datasource/paimon/source/PaimonScanNode.java:
##########
@@ -177,6 +178,8 @@ private void setPaimonParams(TFileRangeDesc rangeDesc,
PaimonSplit paimonSplit)
@Override
public List<Split> getSplits() throws UserException {
boolean forceJniScanner =
ConnectContext.get().getSessionVariable().isForceJniScanner();
+ SessionVariable.IgnoreSplitType ignoreSplitType =
+
SessionVariable.IgnoreSplitType.valueOf(ConnectContext.get().getSessionVariable().getIgnoreSplitType());
Review Comment:
Set sesssion variable as member of PaimonScanNode
##########
fe/fe-core/src/main/java/org/apache/doris/datasource/paimon/source/PaimonSplit.java:
##########
@@ -23,30 +23,51 @@
import org.apache.doris.datasource.TableFormatType;
import com.google.common.collect.Maps;
+import org.apache.paimon.io.DataFileMeta;
+import org.apache.paimon.table.source.DataSplit;
import org.apache.paimon.table.source.DeletionFile;
import org.apache.paimon.table.source.Split;
import java.util.List;
import java.util.Optional;
+import java.util.UUID;
public class PaimonSplit extends FileSplit {
private static final LocationPath DUMMY_PATH = new
LocationPath("/dummyPath", Maps.newHashMap());
private Split split;
private TableFormatType tableFormatType;
private Optional<DeletionFile> optDeletionFile;
+
public PaimonSplit(Split split) {
super(DUMMY_PATH, 0, 0, 0, 0, null, null);
this.split = split;
this.tableFormatType = TableFormatType.PAIMON;
this.optDeletionFile = Optional.empty();
+
+ if (split instanceof DataSplit) {
+ List<DataFileMeta> dataFileMetas = ((DataSplit) split).dataFiles();
+ this.path = new LocationPath("hdfs://" +
dataFileMetas.get(0).fileName());
Review Comment:
```suggestion
this.path = new LocationPath("/" +
dataFileMetas.get(0).fileName());
```
--
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]