@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.
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +7 -7
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/observability/v-next/span-query.d.ts.map +1 -1
- package/dist/storage/domains/observability/v-next/thread-query.d.ts.map +1 -1
- package/dist/storage/domains/observability/v-next/trace-query.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -7333,6 +7333,7 @@ function isMetadataField(field) {
|
|
|
7333
7333
|
return field.startsWith("metadata.");
|
|
7334
7334
|
}
|
|
7335
7335
|
function compileScalarPredicate(predicate, registry, parameters, allowMetadata = false) {
|
|
7336
|
+
if (predicate.type === "tokens") throw new coreStorage.TraceQueryUnsupportedError("Indexed token search is not supported by this store");
|
|
7336
7337
|
if (predicate.type === "boolean") return predicate.args.map((arg) => `(${compileScalarPredicate(arg, registry, parameters, allowMetadata)})`).join(predicate.operator === "and" ? " AND " : " OR ");
|
|
7337
7338
|
if (predicate.type === "not") return `NOT (${compileScalarPredicate(predicate.arg, registry, parameters, allowMetadata)})`;
|
|
7338
7339
|
const field = isMetadataField(predicate.field) ? (() => {
|
|
@@ -8238,6 +8239,7 @@ function predicateFields$1(predicate, fields = /* @__PURE__ */ new Set()) {
|
|
|
8238
8239
|
if (!predicate) return fields;
|
|
8239
8240
|
if (predicate.type === "boolean") for (const arg of predicate.args) predicateFields$1(arg, fields);
|
|
8240
8241
|
else if (predicate.type === "not") predicateFields$1(predicate.arg, fields);
|
|
8242
|
+
else if (predicate.type === "tokens") return fields;
|
|
8241
8243
|
else fields.add(predicate.field);
|
|
8242
8244
|
return fields;
|
|
8243
8245
|
}
|
|
@@ -8545,6 +8547,7 @@ function predicateFields(predicate, fields = /* @__PURE__ */ new Set()) {
|
|
|
8545
8547
|
if (!predicate) return fields;
|
|
8546
8548
|
if (predicate.type === "boolean") for (const arg of predicate.args) predicateFields(arg, fields);
|
|
8547
8549
|
else if (predicate.type === "not") predicateFields(predicate.arg, fields);
|
|
8550
|
+
else if (predicate.type === "tokens") return fields;
|
|
8548
8551
|
else fields.add(predicate.field);
|
|
8549
8552
|
return fields;
|
|
8550
8553
|
}
|