fix(table): preserve time grain aggregation when temporal column casing changes (#37893)

This commit is contained in:
Vanessa Giannoni
2026-02-19 21:46:39 -03:00
committed by GitHub
parent 5278deaf63
commit f4acce5727
2 changed files with 79 additions and 2 deletions

View File

@@ -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;
})