Skip to content

Commit 05a4561

Browse files
committed
abstract function
1 parent eaa7422 commit 05a4561

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/expression/Attribute.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,9 @@ public String nodeString() {
134134
}
135135

136136
protected abstract String label();
137+
138+
/**
139+
* @return true if the attribute represents a TSDB dimension type
140+
*/
141+
public abstract boolean isDimension();
137142
}

x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/expression/EmptyAttribute.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ protected String label() {
4444
return "e";
4545
}
4646

47+
@Override
48+
public boolean isDimension() {
49+
return false;
50+
}
51+
4752
@Override
4853
public boolean resolved() {
4954
return true;

0 commit comments

Comments
 (0)