fix: save columns reference from sqllab save datasets flow (#24248)

This commit is contained in:
Hugh A. Miles II
2023-06-20 13:54:19 -04:00
committed by GitHub
parent fdef9cbc96
commit 93e1db4bd9
37 changed files with 489 additions and 202 deletions

View File

@@ -236,24 +236,24 @@ export const queries = [
columns: [
{
is_dttm: true,
name: 'ds',
column_name: 'ds',
type: 'STRING',
},
{
is_dttm: false,
name: 'gender',
column_name: 'gender',
type: 'STRING',
},
],
selected_columns: [
{
is_dttm: true,
name: 'ds',
column_name: 'ds',
type: 'STRING',
},
{
is_dttm: false,
name: 'gender',
column_name: 'gender',
type: 'STRING',
},
],
@@ -326,7 +326,7 @@ export const queryWithNoQueryLimit = {
columns: [
{
is_dttm: true,
name: 'ds',
column_name: 'ds',
type: 'STRING',
},
{
@@ -338,12 +338,12 @@ export const queryWithNoQueryLimit = {
selected_columns: [
{
is_dttm: true,
name: 'ds',
column_name: 'ds',
type: 'STRING',
},
{
is_dttm: false,
name: 'gender',
column_name: 'gender',
type: 'STRING',
},
],
@@ -364,57 +364,57 @@ export const queryWithBadColumns = {
selected_columns: [
{
is_dttm: true,
name: 'COUNT(*)',
column_name: 'COUNT(*)',
type: 'STRING',
},
{
is_dttm: false,
name: 'this_col_is_ok',
column_name: 'this_col_is_ok',
type: 'STRING',
},
{
is_dttm: false,
name: 'a',
column_name: 'a',
type: 'STRING',
},
{
is_dttm: false,
name: '1',
column_name: '1',
type: 'STRING',
},
{
is_dttm: false,
name: '123',
column_name: '123',
type: 'STRING',
},
{
is_dttm: false,
name: 'CASE WHEN 1=1 THEN 1 ELSE 0 END',
column_name: 'CASE WHEN 1=1 THEN 1 ELSE 0 END',
type: 'STRING',
},
{
is_dttm: true,
name: '_TIMESTAMP',
column_name: '_TIMESTAMP',
type: 'TIMESTAMP',
},
{
is_dttm: true,
name: '__TIME',
column_name: '__TIME',
type: 'TIMESTAMP',
},
{
is_dttm: false,
name: 'my_dupe_col__2',
column_name: 'my_dupe_col__2',
type: 'STRING',
},
{
is_dttm: true,
name: '__timestamp',
column_name: '__timestamp',
type: 'TIMESTAMP',
},
{
is_dttm: true,
name: '__TIMESTAMP',
column_name: '__TIMESTAMP',
type: 'TIMESTAMP',
},
],
@@ -572,31 +572,31 @@ const baseQuery: QueryResponse = {
columns: [
{
is_dttm: true,
name: 'ds',
column_name: 'ds',
type: 'STRING',
},
{
is_dttm: false,
name: 'gender',
column_name: 'gender',
type: 'STRING',
},
],
selected_columns: [
{
is_dttm: true,
name: 'ds',
column_name: 'ds',
type: 'STRING',
},
{
is_dttm: false,
name: 'gender',
column_name: 'gender',
type: 'STRING',
},
],
expanded_columns: [
{
is_dttm: true,
name: 'ds',
column_name: 'ds',
type: 'STRING',
},
],