Skip to content

Commit 21ac430

Browse files
committed
Tries to exclude NO_FIELDS from the union type cleaning
1 parent 9e75a9c commit 21ac430

File tree

1 file changed

+1
-1
lines changed
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/analysis

1 file changed

+1
-1
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/analysis/Analyzer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1962,7 +1962,7 @@ private static LogicalPlan planWithoutSyntheticAttributes(LogicalPlan plan) {
19621962

19631963
for (Attribute attr : output) {
19641964
// Do not let the synthetic union type field attributes end up in the final output.
1965-
if (attr.synthetic()) {
1965+
if (attr.synthetic() && attr.name().equals(Analyzer.NO_FIELDS_NAME) == false) {
19661966
continue;
19671967
}
19681968
newOutput.add(attr);

0 commit comments

Comments
 (0)