Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: overwrite numerical type for second filters on observations table (#4412)

Steffen Schmitz7539af3bd98c
diff --git a/packages/shared/src/tableDefinitions/mapObservationsTable.ts b/packages/shared/src/tableDefinitions/mapObservationsTable.ts
index d7d47fa6ed..b6576645df 100644
--- a/packages/shared/src/tableDefinitions/mapObservationsTable.ts
+++ b/packages/shared/src/tableDefinitions/mapObservationsTable.ts
@@ -69,6 +69,8 @@ export const observationsTableUiColumnDefinitions: UiColumnMapping[] = [
clickhouseTableName: "observations",
clickhouseSelect:
"if(isNull(completion_start_time), NULL, date_diff('seconds', start_time, completion_start_time))",
+ // If we use the default of Decimal64(12), we cannot filter for more than ~40min due to an overflow
+ clickhouseTypeOverwrite: "Decimal64(3)",
},
{
uiTableName: "Latency (s)",
@@ -76,6 +78,8 @@ export const observationsTableUiColumnDefinitions: UiColumnMapping[] = [
clickhouseTableName: "observations",
clickhouseSelect:
"if(isNull(end_time), NULL, date_diff('seconds', start_time, end_time))",
+ // If we use the default of Decimal64(12), we cannot filter for more than ~40min due to an overflow
+ clickhouseTypeOverwrite: "Decimal64(3)",
},
{
uiTableName: "Tokens per second",