Skip to content

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

chore: fix join algo settings for exports (#10681)

Max Deichmann03b77af5f77d
diff --git a/worker/src/features/database-read-stream/observation-stream.ts b/worker/src/features/database-read-stream/observation-stream.ts
index af136320d1..0fde838f68 100644
--- a/worker/src/features/database-read-stream/observation-stream.ts
+++ b/worker/src/features/database-read-stream/observation-stream.ts
@@ -90,7 +90,9 @@ export const getObservationStream = async (props: {
} = props;
const clickhouseConfigs = {
request_timeout: 120_000,
- join_algorithm: "partial_merge",
+ clickhouse_settings: {
+ join_algorithm: "partial_merge" as const,
+ },
};
// Filter out trace-level filters since we don't join the traces table for filtering
diff --git a/worker/src/features/database-read-stream/trace-stream.ts b/worker/src/features/database-read-stream/trace-stream.ts
index a59e887420..bbb7caaa74 100644
--- a/worker/src/features/database-read-stream/trace-stream.ts
+++ b/worker/src/features/database-read-stream/trace-stream.ts
@@ -44,7 +44,9 @@ export const getTraceStream = async (props: {
const clickhouseConfigs = {
request_timeout: 120_000,
- join_algorithm: "partial_merge",
+ clickhouse_settings: {
+ join_algorithm: "partial_merge" as const,
+ },
};
// Filter out observation-level filters since we don't join the observations table