mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
fix: show question mark icon when can not infer datatype (#1001)
This commit is contained in:
parent
3fd75938dc
commit
fc149ced49
@ -23,7 +23,7 @@ export type ColumnTypeLabelProps = {
|
||||
};
|
||||
|
||||
export function ColumnTypeLabel({ type }: ColumnTypeLabelProps) {
|
||||
let stringIcon = '';
|
||||
let stringIcon;
|
||||
if (typeof type !== 'string') {
|
||||
stringIcon = '?';
|
||||
} else if (type === '' || type === 'expression') {
|
||||
@ -38,7 +38,7 @@ export function ColumnTypeLabel({ type }: ColumnTypeLabelProps) {
|
||||
stringIcon = 'T/F';
|
||||
} else if (type.match(/.*time.*/i)) {
|
||||
stringIcon = 'time';
|
||||
} else if (type.match(/unknown/i)) {
|
||||
} else {
|
||||
stringIcon = '?';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user