Query Information
PPL Command/Query:
source=bounty-types | where NOT keyword_field LIKE '%ello%' | fields keyword_field
Expected Result:
Rows with keyword_field = null should be excluded.
Actual Result:
Output includes null row in addition to non-matching string rows.
Dataset Information
Dataset/Schema Type
Index Mapping
{
"mappings": {
"properties": {
"keyword_field": { "type": "keyword" }
}
}
}
Sample Data
[
{ "keyword_field": "hello" },
{ "keyword_field": "world" },
{ "keyword_field": "" },
{ "keyword_field": "special chars..." },
{ "keyword_field": null }
]
Bug Description
Issue Summary:
NOT LIKE incorrectly includes null/missing values.
Steps to Reproduce:
- Create index with
keyword_field.
- Insert sample rows including
null.
- Run the query above.
- Observe
null in output.
Impact:
Negated string filters produce incorrect result sets.
Query Information
PPL Command/Query:
Expected Result:
Rows with
keyword_field = nullshould be excluded.Actual Result:
Output includes
nullrow in addition to non-matching string rows.Dataset Information
Dataset/Schema Type
Index Mapping
{ "mappings": { "properties": { "keyword_field": { "type": "keyword" } } } }Sample Data
[ { "keyword_field": "hello" }, { "keyword_field": "world" }, { "keyword_field": "" }, { "keyword_field": "special chars..." }, { "keyword_field": null } ]Bug Description
Issue Summary:
NOT LIKEincorrectly includes null/missing values.Steps to Reproduce:
keyword_field.null.nullin output.Impact:
Negated string filters produce incorrect result sets.