zhangstar333 commented on code in PR #65730:
URL: https://github.com/apache/doris/pull/65730#discussion_r3710553742
##########
fe/fe-core/src/main/java/org/apache/doris/datasource/tvf/source/TVFScanNode.java:
##########
@@ -169,6 +176,29 @@ public List<Split> getSplits(int numBackends) throws
UserException {
return splits;
}
+ private List<Split> getLanceSplits() throws UserException {
+ if (!sessionVariable.enableFileScannerV2) {
+ throw new UserException("Lance TVF requires
enable_file_scanner_v2=true");
+ }
+ if (tableValuedFunction.getTFileType() == TFileType.FILE_LOCAL) {
+ // A local dataset is visible to its selected BE, not to FE. Keep
exactly one
+ // whole-dataset split; BE resolves version zero to latest when it
opens the dataset.
+ return Collections.singletonList(
+
LanceSplit.wholeDatasetAtLatest(tableValuedFunction.getFilePath()));
Review Comment:
not schema change when local file tvf
--
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]