Skip to content

Conversation

leontyevdv
Copy link
Owner

Add a new ES|QL PRESENT_OVER_TIME function that is similar to PRESENT, but is used to check the presence of values over a time series in the given field.

This has to be merged after elastic#133986

Part of elastic#131069

leontyevdv and others added 21 commits September 2, 2025 15:45
Add a new ES|QL function that checks for the presence of a field in the
output result. Presence means that the input expression yields any
non-null value.

Part of elastic#131069
Add unit tests and documentation for the PRESENT function.

Part of elastic#131069
Clean-up of the PRESENT function.

Part of elastic#131069
# Conflicts:
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java
- Change intermediate state for using boolean
- Add unit tests for PresentAggregatorFunctionTests and
PresentGroupingAggregatorFunctionTests

Part of elastic#131069
- Add union_types csv tests

Part of elastic#131069
- Comment out TestLogging on CsvTests
- Add missing DataTypes to the function

Part of elastic#131069
- Optimize AggregatorFunctions

Part of elastic#131069
Add PRESENT_OVER_TIME ES|QL function.

Part of elastic#131069
Add PRESENT_OVER_TIME ES|QL function.

Part of elastic#131069
@leontyevdv leontyevdv self-assigned this Sep 5, 2025
# Conflicts:
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/aggregate/AggregateWritables.java
…t-over-time-function

# Conflicts:
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/aggregate/AggregateWritables.java
# Conflicts:
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/EsqlFunctionRegistry.java
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/aggregate/AggregateWritables.java
@leontyevdv leontyevdv changed the base branch from feature/esql-present-function to main September 9, 2025 09:14
@leontyevdv leontyevdv closed this Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant