[kql] Creating filters with numeric scripted fields sends incorrect type #98761
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:KQL
KQL
PR sent
SharedUX/fix-it-week
Bugs that have been groomed and queued up for the team's next fix it week
Kibana version: 7.12
Describe the bug:
Upgrading to 7.12 from 7.11.2 causes errors when trying to use previously defined scripted fields in queries.
For example, I calculate the length of a DNS query from my Zeek logs in Filebeat by creating a scripted field called "dns.question.length" defined as:
This will still calculate and display correctly in the "Discover" view when I open a log for viewing. However, if I try to run a search query in "Discover" like dns.question.length > 50 to find any DNS queries larger than a length of 50, I get shard errors:
Expected behavior:
The parameter would be sent as a numeric, rather than a string. We also need to verify whether or not the same is true for runtime fields.
Caused by #93658.
The text was updated successfully, but these errors were encountered: