Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,21 @@ public enum DataType {
DENSE_VECTOR(builder().esType("dense_vector").unknownSize());

/**
* Types that are actively being built. These types are not returned
* from Elasticsearch if their associated {@link FeatureFlag} is disabled.
* They aren't included in generated documentation. And the tests don't
* check that sending them to a function produces a sane error message.
* Types that are actively being built. These types are
* <ul>
* <li>Not returned from Elasticsearch if their associated {@link FeatureFlag} is disabled.</li>
* <li>Not included in generated documentation</li>
* <li>
* Not tested by {@code ErrorsForCasesWithoutExamplesTestCase} subclasses.
* When a function supports a type it includes a test case in its subclass
* of {@code AbstractFunctionTestCase}. If a function does not support.
* them like {@code TO_STRING} then the tests won't notice. See class javadoc
* for instructions on adding new types, but that usually involves adding support
* for that type to a handful of functions. Once you've done that you should be
* able to remove your new type from UNDER_CONSTRUCTION and update a few error
* messages.
* </li>
* </ul>
*/
public static final Map<DataType, FeatureFlag> UNDER_CONSTRUCTION = Map.ofEntries(
Map.entry(AGGREGATE_METRIC_DOUBLE, EsqlCorePlugin.AGGREGATE_METRIC_DOUBLE_FEATURE_FLAG),
Expand Down