Skip to content
Snippets Groups Projects
Commit bf9ff4c4 authored by Tom Robinson's avatar Tom Robinson
Browse files

Fix issue with SummarizeColumnByTimeDrill

parent 84e373e4
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,6 @@ export default ({ question, clicked }: ClickActionProps): ClickAction[] => {
? [aggregator.short, getFieldRefFromColumn(column)]
: [aggregator.short],
)
.pivot([["datetime-field", ["field-id", dateField], "day"]]),
.pivot([["datetime-field", ["field-id", dateField.id], "day"]]),
}));
};
......@@ -34,12 +34,7 @@ describe("SummarizeColumnByTimeDrill", () => {
source_table: ORDERS_TABLE_ID,
aggregation: [["sum", ["field-id", ORDERS_TOTAL_FIELD_ID]]],
breakout: [
[
"datetime-field",
["field-id", ORDERS_CREATED_DATE_FIELD_ID],
"as",
"day",
],
["datetime-field", ["field-id", ORDERS_CREATED_DATE_FIELD_ID], "day"],
],
});
expect(newCard.display).toEqual("line");
......
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