[fix](Nereids) forbid two TVF in one fragment since the limit of coordinator (#28114)
This commit is contained in:
@ -22,7 +22,6 @@ import org.apache.doris.catalog.FunctionSignature;
|
||||
import org.apache.doris.catalog.Type;
|
||||
import org.apache.doris.common.NereidsException;
|
||||
import org.apache.doris.nereids.exceptions.AnalysisException;
|
||||
import org.apache.doris.nereids.properties.PhysicalProperties;
|
||||
import org.apache.doris.nereids.trees.expressions.Expression;
|
||||
import org.apache.doris.nereids.trees.expressions.Properties;
|
||||
import org.apache.doris.nereids.trees.expressions.Slot;
|
||||
@ -88,16 +87,6 @@ public class Numbers extends TableValuedFunction {
|
||||
return visitor.visitNumbers(this, context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PhysicalProperties getPhysicalProperties() {
|
||||
// TODO: use gather after coordinator support plan gather scan
|
||||
// String backendNum = getTVFProperties().getMap().getOrDefault(NumbersTableValuedFunction.BACKEND_NUM, "1");
|
||||
// if (backendNum.trim().equals("1")) {
|
||||
// return PhysicalProperties.GATHER;
|
||||
// }
|
||||
return PhysicalProperties.ANY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Numbers withChildren(List<Expression> children) {
|
||||
Preconditions.checkArgument(children().size() == 1
|
||||
|
||||
@ -109,7 +109,7 @@ public abstract class TableValuedFunction extends BoundFunction implements Unary
|
||||
}
|
||||
|
||||
public PhysicalProperties getPhysicalProperties() {
|
||||
return PhysicalProperties.ANY;
|
||||
return PhysicalProperties.STORAGE_ANY;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -32,4 +32,8 @@ suite("nereids_tvf") {
|
||||
sql """
|
||||
select QueryId from queries() where `Sql` like "%test_queries_tvf%";
|
||||
"""
|
||||
|
||||
sql """
|
||||
select * from numbers("number" = "1") union all select * from numbers("number" = "1");
|
||||
"""
|
||||
}
|
||||
Reference in New Issue
Block a user