Canvas needs to handle arrays in elasticsearch raw documents better #56229
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Canvas
Feature:ExpressionLanguage
Interpreter expression language (aka canvas pipeline)
impact:needs-assessment
Product and/or Engineering needs to evaluate the impact of the change.
loe:needs-research
This issue requires some research before it can be worked on or estimated
Team:Presentation
Presentation Team for Dashboard, Input Controls, and Canvas
Kibana version: 7.6.0 BC2
Elasticsearch version: 7.6.0 BC2
Server OS version: darwin_x86_64
Browser version: chrome latest
Browser OS version: OS X
Original install method (e.g. download page, yum, from source, etc.): from staging
Describe the bug: If your elasticsearch raw document data source contains arrays - Canvas displays - " Whoops! Expression failed
Expression failed with the message:
[esdocs] > Unexpected error from Elasticsearch: [sql_illegal_argument_exception] Arrays (returned by [@tags]) are not supported"
This is not very helpful to novice user as the datasource is es raw documents and there is no obvious involvement of SQL here as user won't know that canvas uses sql to talk to es at the backend.
Steps to reproduce:
Expected behavior: Kibana needs to handle the datasets with arrays better. or display more helpful error message
Screenshots (if relevant):

Provide logs and/or server output (if relevant): ES logs:
The text was updated successfully, but these errors were encountered: