fix(Jinja): Emit time grain to table charts even if they don't have a temporal column (#32871)

This commit is contained in:
Vitor Avila
2025-03-28 13:48:49 -03:00
committed by GitHub
parent e0ed652ed8
commit ab22bb1878
4 changed files with 80 additions and 104 deletions

View File

@@ -198,11 +198,6 @@ const buildQuery: BuildQuery<TableChartFormData> = (
(ownState.currentPage ?? 0) * (ownState.pageSize ?? 0);
}
if (!temporalColumn) {
// This query is not using temporal column, so it doesn't need time grain
extras.time_grain_sqla = undefined;
}
let queryObject = {
...baseQueryObject,
columns,