@mastra/clickhouse 1.30.0-alpha.4 → 1.30.1-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.30.0-alpha.4"
6
+ version: "1.30.1-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.30.0-alpha.4",
2
+ "version": "1.30.1-alpha.0",
3
3
  "package": "@mastra/clickhouse",
4
4
  "exports": {
5
5
  "COLUMN_TYPES": {
package/dist/index.cjs CHANGED
@@ -6685,7 +6685,7 @@ async function listScores(client, args, strategy) {
6685
6685
  const deltaCursorEnabled = deltaPollingSupported(strategy);
6686
6686
  const filter = buildScoresFilterConditions(parsed.filters, "s");
6687
6687
  const pagination = buildPaginationClause(parsed.pagination);
6688
- const orderBy = buildSignalOrderByClause(["timestamp", "score"], parsed.orderBy, "s");
6688
+ const orderBy = `${buildSignalOrderByClause(["timestamp", "score"], parsed.orderBy, "s")}, s.scoreId ${parsed.orderBy?.direction === "ASC" ? "ASC" : "DESC"}`;
6689
6689
  const whereClause = filter.conditions.length ? `WHERE ${filter.conditions.join(" AND ")}` : "";
6690
6690
  if (parsed.mode === "delta") {
6691
6691
  assertDeltaPollingSupported(strategy);