mirror of
https://github.com/apache/druid.git
synced 2025-03-08 18:39:45 +00:00
add note; conditional
This commit is contained in:
parent
0c6b40c138
commit
bdfcef8220
@ -72,6 +72,10 @@ public class DruidRelFieldTrimmer extends RelFieldTrimmer
|
||||
protected TrimResult dummyProject(int fieldCount, RelNode input,
|
||||
@Nullable RelNode originalRelNode)
|
||||
{
|
||||
if (fieldCount != 0) {
|
||||
return super.dummyProject(fieldCount, input, originalRelNode);
|
||||
}
|
||||
// workaround to support fieldCount == 0 projections
|
||||
final Mapping mapping = Mappings.create(MappingType.INVERSE_SURJECTION, fieldCount, 0);
|
||||
if (input.getRowType().getFieldCount() == 0) {
|
||||
// there is no need to do anything
|
||||
|
Loading…
x
Reference in New Issue
Block a user