Skip to content

Commit 09c515e

Browse files
committed
Move
1 parent a7d361e commit 09c515e

File tree

18 files changed

+33
-26
lines changed

18 files changed

+33
-26
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/ColumnInfoImpl.java renamed to x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/ColumnInfoImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* 2.0.
66
*/
77

8-
package org.elasticsearch.xpack.esql.action;
8+
package org.elasticsearch.xpack.esql.core;
99

1010
import org.elasticsearch.TransportVersions;
1111
import org.elasticsearch.common.io.stream.StreamInput;

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
package org.elasticsearch.xpack.esql.core.expression;
88

99
import org.elasticsearch.core.Nullable;
10+
import org.elasticsearch.xpack.esql.core.ColumnInfoImpl;
1011
import org.elasticsearch.xpack.esql.core.tree.Source;
1112
import org.elasticsearch.xpack.esql.core.type.DataType;
1213

@@ -139,12 +140,9 @@ public String nodeString() {
139140
protected abstract String label();
140141

141142
/**
142-
* If this field is unsupported this contains the underlying ES types. If there
143-
* is a type conflict this will have many elements, some or all of which may
144-
* be actually supported types.
143+
* The description of this column in the HTTP response.
145144
*/
146-
@Nullable
147-
public List<String> originalTypes() {
148-
return null;
145+
public ColumnInfoImpl columnInfo() {
146+
return new ColumnInfoImpl(name(), dataType().outputType(), null);
149147
}
150148
}

x-pack/plugin/esql/qa/action/src/internalClusterTest/java/org/elasticsearch/test/esql/qa/action/CoreEsqlActionIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.elasticsearch.xpack.core.esql.action.EsqlQueryRequestBuilder;
2020
import org.elasticsearch.xpack.core.esql.action.EsqlQueryResponse;
2121
import org.elasticsearch.xpack.core.esql.action.EsqlResponse;
22-
import org.elasticsearch.xpack.esql.action.ColumnInfoImpl;
22+
import org.elasticsearch.xpack.esql.core.ColumnInfoImpl;
2323
import org.elasticsearch.xpack.esql.core.type.DataType;
2424
import org.junit.Before;
2525

x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/AsyncEsqlQueryActionIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import org.elasticsearch.xpack.core.async.DeleteAsyncResultRequest;
2121
import org.elasticsearch.xpack.core.async.GetAsyncResultRequest;
2222
import org.elasticsearch.xpack.core.async.TransportDeleteAsyncResultAction;
23+
import org.elasticsearch.xpack.esql.core.ColumnInfoImpl;
2324
import org.elasticsearch.xpack.esql.plugin.QueryPragmas;
2425
import org.hamcrest.core.IsEqual;
2526

x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/CrossClusterAsyncQueryIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import org.elasticsearch.transport.RemoteClusterAware;
1616
import org.elasticsearch.xpack.core.async.AsyncExecutionId;
1717
import org.elasticsearch.xpack.core.async.AsyncStopRequest;
18+
import org.elasticsearch.xpack.esql.core.ColumnInfoImpl;
1819

1920
import java.io.IOException;
2021
import java.util.Map;

x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/CrossClusterEnrichUnavailableClustersIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import org.elasticsearch.core.Tuple;
1313
import org.elasticsearch.plugins.Plugin;
1414
import org.elasticsearch.transport.RemoteClusterAware;
15+
import org.elasticsearch.xpack.esql.core.ColumnInfoImpl;
1516
import org.elasticsearch.xpack.esql.core.type.DataType;
1617
import org.elasticsearch.xpack.esql.plan.logical.Enrich;
1718

x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/CrossClusterQueryUnavailableRemotesIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import org.elasticsearch.ExceptionsHelper;
1111
import org.elasticsearch.core.Tuple;
12+
import org.elasticsearch.xpack.esql.core.ColumnInfoImpl;
1213
import org.elasticsearch.xpack.esql.core.type.DataType;
1314

1415
import java.util.List;

x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/EnrichIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
import org.elasticsearch.xpack.core.enrich.action.PutEnrichPolicyAction;
4848
import org.elasticsearch.xpack.enrich.EnrichPlugin;
4949
import org.elasticsearch.xpack.esql.EsqlTestUtils;
50+
import org.elasticsearch.xpack.esql.core.ColumnInfoImpl;
5051
import org.elasticsearch.xpack.esql.core.type.DataType;
5152
import org.elasticsearch.xpack.esql.enrich.EnrichLookupService;
5253
import org.elasticsearch.xpack.esql.plan.logical.Enrich;

x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/EsqlActionIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import org.elasticsearch.xcontent.json.JsonXContent;
3535
import org.elasticsearch.xpack.core.esql.action.ColumnInfo;
3636
import org.elasticsearch.xpack.esql.VerificationException;
37+
import org.elasticsearch.xpack.esql.core.ColumnInfoImpl;
3738
import org.elasticsearch.xpack.esql.core.type.DataType;
3839
import org.elasticsearch.xpack.esql.parser.ParsingException;
3940
import org.elasticsearch.xpack.esql.plugin.EsqlPlugin;

x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/TimeSeriesIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import org.elasticsearch.common.settings.Settings;
1414
import org.elasticsearch.core.TimeValue;
1515
import org.elasticsearch.xpack.esql.EsqlTestUtils;
16+
import org.elasticsearch.xpack.esql.core.ColumnInfoImpl;
1617
import org.elasticsearch.xpack.esql.core.type.DataType;
1718
import org.junit.Before;
1819

0 commit comments

Comments
 (0)