Skip to content
Snippets Groups Projects
Unverified Commit 6142150e authored by Mahatthana (Kelvin) Nomsawadi's avatar Mahatthana (Kelvin) Nomsawadi Committed by GitHub
Browse files

Fix can't drilldown on null date dimension record (#24587)

parent 98fe6c36
No related branches found
No related tags found
No related merge requests found
......@@ -123,11 +123,18 @@ const fieldRefWithTemporalUnitForColumn = (column, unit) =>
export function drillFilter(query, value, column) {
let filter;
if (isDate(column)) {
filter = [
"=",
fieldRefWithTemporalUnitForColumn(column, column.unit),
parseTimestamp(value, column.unit).format(),
];
if (value == null) {
filter = [
"is-null",
fieldRefWithTemporalUnitForColumn(column, column.unit),
];
} else {
filter = [
"=",
fieldRefWithTemporalUnitForColumn(column, column.unit),
parseTimestamp(value, column.unit).format(),
];
}
} else {
const range = rangeForValue(value, column);
if (range) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment