Skip to content

Commit e70da04

Browse files
committed
wip
1 parent 3d3a6cd commit e70da04

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/type/EsField.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ public EsField(
100100
this(name, esDataType, properties, aggregatable, false, timeSeriesFieldType);
101101
}
102102

103+
public EsField(String name, DataType esDataType, Map<String, EsField> properties, boolean aggregatable, boolean isAlias) {
104+
this(name, esDataType, properties, aggregatable, isAlias, TimeSeriesFieldType.UNKNOWN);
105+
}
106+
103107
public EsField(
104108
String name,
105109
DataType esDataType,

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/plan/physical/ExchangeSinkExecSerializationTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,14 @@ public void testDeeplyNestedFields() throws IOException {
120120
* 47252409b - remove node-level plan #117422
121121
* 43927169b - remove EsIndex mapping serialization #119580
122122
* 43402881b - remove unused fields from FieldAttribute #127854
123+
* 43665025b - added time series field type to EsField
123124
*/
124125

125126
int depth = 6;
126127
int childrenPerLevel = 8;
127128

128129
EsIndex index = EsIndexSerializationTests.deeplyNestedIndex(depth, childrenPerLevel);
129-
testSerializePlanWithIndex(index, ByteSizeValue.ofBytes(43402881));
130+
testSerializePlanWithIndex(index, ByteSizeValue.ofBytes(43665025L));
130131
}
131132

132133
/**

0 commit comments

Comments
 (0)