File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plan/logical Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1010import org .elasticsearch .common .io .stream .StreamOutput ;
1111import org .elasticsearch .xpack .esql .capabilities .TelemetryAware ;
1212import org .elasticsearch .xpack .esql .core .expression .Attribute ;
13+ import org .elasticsearch .xpack .esql .core .expression .ReferenceAttribute ;
1314import org .elasticsearch .xpack .esql .core .tree .NodeInfo ;
1415import org .elasticsearch .xpack .esql .core .tree .Source ;
16+ import org .elasticsearch .xpack .esql .core .type .DataType ;
1517
1618import java .util .List ;
1719import java .util .Objects ;
@@ -25,6 +27,12 @@ public enum Type {
2527
2628 private final LogicalPlan query ;
2729
30+ private final List <Attribute > output = List .of (
31+ new ReferenceAttribute (Source .EMPTY , "role" , DataType .KEYWORD ),
32+ new ReferenceAttribute (Source .EMPTY , "type" , DataType .KEYWORD ),
33+ new ReferenceAttribute (Source .EMPTY , "plan" , DataType .KEYWORD )
34+ );
35+
2836 public Explain (Source source , LogicalPlan query ) {
2937 super (source );
3038 this .query = query ;
@@ -46,7 +54,7 @@ public LogicalPlan query() {
4654
4755 @ Override
4856 public List <Attribute > output () {
49- throw new UnsupportedOperationException () ;
57+ return output ;
5058 }
5159
5260 @ Override
You can’t perform that action at this time.
0 commit comments