Date/Timestamp fields remove the 'val' partition option
}
// Filter formulas based on column type
- if (columnDef.dataType === "date" || columnDef.dataType === "timestamp") {
- return _.without(formulas, "val");
- } else {
+ if (columnDef.dataType !== "date" && columnDef.dataType !== "timestamp") {
return _.without(formulas, "year", "month", "day", "hour", "minute");
+ } else {
+ return formulas;
}
};
}]);
