View Presto row and array objects clearly in the data grid (#7625)

* feat: rough check in for Presto rows and arrays

* fix: presto arrays

* fix: return selected and expanded columns

* fix: add helper methods and unit tests

* fix: only allow exploration of selected columns

* fix: address Beto's comments and add more unit tests
This commit is contained in:
Kim Truong
2019-05-31 11:25:07 -07:00
committed by Beto Dealmeida
parent d408e30594
commit d2967340d9
6 changed files with 709 additions and 42 deletions

View File

@@ -223,6 +223,20 @@ export const queries = [
type: 'STRING',
},
],
selected_columns: [
{
is_date: true,
is_dim: false,
name: 'ds',
type: 'STRING',
},
{
is_date: false,
is_dim: true,
name: 'gender',
type: 'STRING',
},
],
data: [{ col1: 0, col2: 1 }, { col1: 2, col2: 3 }],
},
},
@@ -264,7 +278,7 @@ export const queryWithBadColumns = {
...queries[0],
results: {
data: queries[0].results.data,
columns: [
selected_columns: [
{
is_date: true,
is_dim: false,