feat: add support for DateTime64 type in value parsing for improved data handling

This commit is contained in:
Nawaz Dhandala
2026-04-01 11:27:04 +01:00
parent ac39602ef6
commit 213c755f97

View File

@@ -208,6 +208,12 @@ export default class StatementGenerator<TBaseModel extends AnalyticsBaseModel> {
)}')`;
}
if (column.type === TableColumnType.DateTime64 && value instanceof Date) {
value = `parseDateTimeBestEffortOrNull('${OneUptimeDate.toClickhouseDateTime64(
value as Date,
)}')`;
}
if (column.type === TableColumnType.Number) {
if (typeof value === "string") {
value = parseInt(value);