betodealmeida opened a new pull request #10456: URL: https://github.com/apache/incubator-superset/pull/10456
### SUMMARY <!--- Describe the change below, including rationale and design decisions --> When [serializing nested types we convert them to string](https://github.com/apache/incubator-superset/blob/0017b61f51b83a19c03b698f83bdeeeb0ec5685d/superset/result_set.py#L119-L124), which breaks the `expand_data` in Presto. I added a check in `expand_data` so that when the data associated with a nested column (types `ARRAY` and `ROW`) is a string, it gets deserialized back into the original data. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF <!--- Skip this if not applicable --> A Presto query selecting an `ARRAY` and a `ROW` without the `PRESTO_EXPAND_DATA` feature flag:  With the feature enabled, data should be displayed similar to how BigQuery does, with arrays expanded into multiple lines, and rows expanded into multiple columns. This is currently broken:  This PR fixes the problem, and the data gets expanded correctly:  ### TEST PLAN <!--- What steps should be taken to verify the changes --> Tested with a simple query (see above), and added a unit test covering the problem. ### ADDITIONAL INFORMATION <!--- Check any relevant boxes with "x" --> <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue --> - [ ] Has associated issue: - [ ] Changes UI - [ ] Requires DB Migration. - [ ] Confirm DB Migration upgrade and downgrade tested. - [ ] Introduces new feature or API - [ ] Removes existing feature or API ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
