mirror of
https://github.com/apache/superset.git
synced 2026-04-24 18:44:53 +00:00
fix: raise error in sqllab when using reserved column name (#9859)
This commit is contained in:
@@ -101,6 +101,7 @@ describe('ExploreResultsButton', () => {
|
||||
'1',
|
||||
'123',
|
||||
'CASE WHEN 1=1 THEN 1 ELSE 0 END',
|
||||
'__TIMESTAMP',
|
||||
]);
|
||||
|
||||
const msgWrapper = shallow(wrapper.instance().renderInvalidColumnMessage());
|
||||
|
||||
@@ -315,6 +315,16 @@ export const queryWithBadColumns = {
|
||||
name: 'CASE WHEN 1=1 THEN 1 ELSE 0 END',
|
||||
type: 'STRING',
|
||||
},
|
||||
{
|
||||
is_date: true,
|
||||
name: '_TIMESTAMP',
|
||||
type: 'TIMESTAMP',
|
||||
},
|
||||
{
|
||||
is_date: true,
|
||||
name: '__TIMESTAMP',
|
||||
type: 'TIMESTAMP',
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user