@mastra/clickhouse 1.21.1 → 1.21.2-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ name: mastra-clickhouse
3
3
  description: Documentation for @mastra/clickhouse. Use when working with @mastra/clickhouse APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/clickhouse"
6
- version: "1.21.1"
6
+ version: "1.21.2-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.21.1",
2
+ "version": "1.21.2-alpha.0",
3
3
  "package": "@mastra/clickhouse",
4
4
  "exports": {},
5
5
  "modules": {}
package/dist/index.cjs CHANGED
@@ -6906,6 +6906,12 @@ function compileClickHouseTraceScope(selection, relationCollections, parameters,
6906
6906
  SELECT * FROM (
6907
6907
  SELECT *
6908
6908
  FROM ${TABLE_TRACE_ROOTS}
6909
+ WHERE traceId IN (
6910
+ SELECT traceId
6911
+ FROM ${TABLE_TRACE_ROOTS}
6912
+ WHERE startedAt >= ${from}
6913
+ AND startedAt < ${to}${tenant}
6914
+ )
6909
6915
  ORDER BY dedupeKey
6910
6916
  LIMIT 1 BY dedupeKey
6911
6917
  )