@mastra/clickhouse 1.30.1-alpha.0 → 1.30.1

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.30.1-alpha.0"
6
+ version: "1.30.1"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.30.1-alpha.0",
2
+ "version": "1.30.1",
3
3
  "package": "@mastra/clickhouse",
4
4
  "exports": {
5
5
  "COLUMN_TYPES": {
@@ -10,12 +10,12 @@
10
10
  "ClickhouseStore": {
11
11
  "types": "dist/storage/index.d.ts",
12
12
  "implementation": "dist/index.js",
13
- "line": 11926
13
+ "line": 11929
14
14
  },
15
15
  "ClickhouseStoreVNext": {
16
16
  "types": "dist/storage/index.d.ts",
17
17
  "implementation": "dist/index.js",
18
- "line": 12042
18
+ "line": 12045
19
19
  },
20
20
  "MemoryStorageClickhouse": {
21
21
  "types": "dist/storage/domains/memory/index.d.ts",
@@ -30,12 +30,12 @@
30
30
  "ObservabilityStorageClickhouseVNext": {
31
31
  "types": "dist/storage/domains/observability/v-next/index.d.ts",
32
32
  "implementation": "dist/index.js",
33
- "line": 10344
33
+ "line": 10347
34
34
  },
35
35
  "ScoresStorageClickhouse": {
36
36
  "types": "dist/storage/domains/scores/index.d.ts",
37
37
  "implementation": "dist/index.js",
38
- "line": 11230
38
+ "line": 11233
39
39
  },
40
40
  "TABLE_DELETION_REQUESTS": {
41
41
  "types": "dist/storage/domains/observability/v-next/ddl.d.ts",
@@ -50,12 +50,12 @@
50
50
  "WorkflowsStorageClickhouse": {
51
51
  "types": "dist/storage/domains/workflows/index.d.ts",
52
52
  "implementation": "dist/index.js",
53
- "line": 11631
53
+ "line": 11634
54
54
  },
55
55
  "applyClickHouseRetention": {
56
56
  "types": "dist/storage/domains/observability/v-next/index.d.ts",
57
57
  "implementation": "dist/index.js",
58
- "line": 10169
58
+ "line": 10172
59
59
  },
60
60
  "markDeletionRequestApplied": {
61
61
  "types": "dist/storage/domains/observability/v-next/deletion-requests.d.ts",
package/dist/index.cjs CHANGED
@@ -7355,6 +7355,7 @@ function isMetadataField(field) {
7355
7355
  return field.startsWith("metadata.");
7356
7356
  }
7357
7357
  function compileScalarPredicate(predicate, registry, parameters, allowMetadata = false) {
7358
+ if (predicate.type === "tokens") throw new _mastra_core_storage.TraceQueryUnsupportedError("Indexed token search is not supported by this store");
7358
7359
  if (predicate.type === "boolean") return predicate.args.map((arg) => `(${compileScalarPredicate(arg, registry, parameters, allowMetadata)})`).join(predicate.operator === "and" ? " AND " : " OR ");
7359
7360
  if (predicate.type === "not") return `NOT (${compileScalarPredicate(predicate.arg, registry, parameters, allowMetadata)})`;
7360
7361
  const field = isMetadataField(predicate.field) ? (() => {
@@ -8260,6 +8261,7 @@ function predicateFields$1(predicate, fields = /* @__PURE__ */ new Set()) {
8260
8261
  if (!predicate) return fields;
8261
8262
  if (predicate.type === "boolean") for (const arg of predicate.args) predicateFields$1(arg, fields);
8262
8263
  else if (predicate.type === "not") predicateFields$1(predicate.arg, fields);
8264
+ else if (predicate.type === "tokens") return fields;
8263
8265
  else fields.add(predicate.field);
8264
8266
  return fields;
8265
8267
  }
@@ -8567,6 +8569,7 @@ function predicateFields(predicate, fields = /* @__PURE__ */ new Set()) {
8567
8569
  if (!predicate) return fields;
8568
8570
  if (predicate.type === "boolean") for (const arg of predicate.args) predicateFields(arg, fields);
8569
8571
  else if (predicate.type === "not") predicateFields(predicate.arg, fields);
8572
+ else if (predicate.type === "tokens") return fields;
8570
8573
  else fields.add(predicate.field);
8571
8574
  return fields;
8572
8575
  }