@mastra/clickhouse 1.30.0-alpha.3 → 1.30.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.
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +7 -7
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/observability/v-next/index.d.ts +1 -1
- package/dist/storage/domains/observability/v-next/index.d.ts.map +1 -1
- package/dist/storage/domains/observability/v-next/span-query.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -8217,9 +8217,10 @@ function afterCursor$1(plan, parameters) {
|
|
|
8217
8217
|
if (cursor.sortValue === null) equal.push(`isNull(${field})`);
|
|
8218
8218
|
else {
|
|
8219
8219
|
const numeric = typeof cursor.sortValue === "number";
|
|
8220
|
-
const
|
|
8220
|
+
const stringSort = plan.orderBy.field === "model" || plan.orderBy.field === "provider";
|
|
8221
|
+
const value = parameters.add(cursor.sortValue, stringSort ? "String" : numeric ? "Float64" : "DateTime64(3, 'UTC')");
|
|
8221
8222
|
terms.push(`${field} ${plan.orderBy.direction === "asc" ? ">" : "<"} ${value}`);
|
|
8222
|
-
if (numeric) terms.push(`isNull(${field})`);
|
|
8223
|
+
if (numeric || stringSort) terms.push(`isNull(${field})`);
|
|
8223
8224
|
equal.push(`${field} = ${value}`);
|
|
8224
8225
|
}
|
|
8225
8226
|
for (const key of identityFields) {
|
|
@@ -8487,6 +8488,8 @@ async function querySpans(client, plan, timeoutMs) {
|
|
|
8487
8488
|
return [{
|
|
8488
8489
|
...metadata,
|
|
8489
8490
|
...identity,
|
|
8491
|
+
model: row.model,
|
|
8492
|
+
provider: row.provider,
|
|
8490
8493
|
durationMs: Number(row.durationMs),
|
|
8491
8494
|
...timeToFirstChunkSupported && { timeToFirstChunkMs: timeToFirstChunkMs == null ? null : Number(timeToFirstChunkMs) },
|
|
8492
8495
|
...timeToFirstTokenSupported && { timeToFirstTokenMs: timeToFirstTokenMs == null ? null : Number(timeToFirstTokenMs) },
|
|
@@ -10043,6 +10046,7 @@ const spanQueryFeatures = typeof coreStorage.planSpanQuery === "function" ? [
|
|
|
10043
10046
|
"span-query",
|
|
10044
10047
|
"span-query-context-fields",
|
|
10045
10048
|
...coreStorage.SPAN_QUERY_ORDER_FIELDS?.includes("durationMs") ? ["span-query-duration-sort"] : [],
|
|
10049
|
+
...coreStorage.SPAN_QUERY_ORDER_FIELDS?.includes("model") && coreStorage.SPAN_QUERY_ORDER_FIELDS?.includes("provider") ? ["span-query-model-provider-sort"] : [],
|
|
10046
10050
|
..."model" in (coreStorage.SPAN_QUERY_FIELD_REGISTRY ?? {}) ? ["span-query-model-fields"] : []
|
|
10047
10051
|
] : [];
|
|
10048
10052
|
const spanAggregateFeatures = typeof coreStorage.planSpanAggregate === "function" ? ["span-aggregate", ..."model" in (coreStorage.SPAN_AGGREGATE_DIMENSION_REGISTRY ?? {}) ? ["span-aggregate-model-dimensions"] : []] : [];
|