github-actions[bot] commented on code in PR #61129:
URL: https://github.com/apache/doris/pull/61129#discussion_r3016448078
##########
fe/fe-core/src/main/java/org/apache/doris/tablefunction/ExternalFileTableValuedFunction.java:
##########
@@ -288,17 +288,33 @@ public List<Column> getTableColumns() throws
AnalysisException {
TNetworkAddress address = new TNetworkAddress(be.getHost(),
be.getBrpcPort());
try {
- PFetchTableSchemaRequest request = getFetchTableStructureRequest();
InternalService.PFetchTableSchemaResult result = null;
+ int fileIndex = 0;
+
+ // Try each file until we find one with valid schema or exhaust
all files
+ while (fileIndex < fileStatuses.size()) {
Review Comment:
`FILE_STREAM` is regressed here. `fileStatuses` is empty when
`getTableColumns()` starts for `http_stream`, and the synthetic stream entry is
only appended inside `getFetchTableStructureRequest()`. With the new `while
(fileIndex < fileStatuses.size())` guard, the loop never runs for stream TVFs,
so `result` stays `null` and `fillColumns(result)` falls back to `__dummy_col`
instead of fetching the real schema from BE. The PR description says stream
sources keep the original single-call path, but this loop no longer does that.
Please preserve a separate `FILE_STREAM` path or otherwise let the first
request be built before using `fileStatuses.size()` as the loop condition.
--
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]