mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
fix(table): preserve time grain aggregation when temporal column casing changes (#37893)
This commit is contained in:
@@ -274,7 +274,7 @@ const config: ControlPanelConfig = {
|
||||
visibility: ({ controls }) => {
|
||||
const dttmLookup = Object.fromEntries(
|
||||
ensureIsArray(controls?.groupby?.options).map(option => [
|
||||
option.column_name,
|
||||
(option.column_name || '').toLowerCase(),
|
||||
option.is_dttm,
|
||||
]),
|
||||
);
|
||||
@@ -285,7 +285,7 @@ const config: ControlPanelConfig = {
|
||||
return true;
|
||||
}
|
||||
if (isPhysicalColumn(selection)) {
|
||||
return !!dttmLookup[selection];
|
||||
return !!dttmLookup[(selection || '').toLowerCase()];
|
||||
}
|
||||
return false;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user