opensearch-project / dashboards-reporting

Apache License 2.0
9 stars 33 forks source link

[BUG] Missing Fields in CSV Download for Object Arrays #438

Open rayangou opened 2 months ago

rayangou commented 2 months ago

What is the bug? When exporting data to CSV from a saved search that includes fields from a JSON object array (e.g., obj_field1: [{content: "test1"}, {content: "test2"}]), the specified fields (e.g., obj_field1.content) do not appear in the downloaded CSV file.

How can one reproduce the bug? Steps to reproduce the behavior:

  1. Create an index and upload documents formatted as obj_field1: [{content: "test1"}, {content: "test2"}].
  2. In Discover, include the desired field (e.g., obj_field1.content) and save the search.
  3. Generate the CSV report.
  4. The field (e.g., obj_field1.content) will be missing from the CSV file.

What is the expected behavior? The field (e.g., obj_field1.content) should be included in the CSV file.

What is your host/environment?

dblock commented 1 month ago

[Catch All Triage - 1, 2, 3, 4]