mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
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:
committed by
Beto Dealmeida
parent
d408e30594
commit
d2967340d9
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user