@thi.ng/column-store 0.13.0 → 0.13.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/query.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/column-store",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "In-memory column store database with customizable column types, extensible query engine, bitfield indexing for query acceleration, JSON serialization with optional RLE compression",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -130,5 +130,5 @@
130
130
  "status": "beta",
131
131
  "year": 2025
132
132
  },
133
- "gitHead": "7b9fc19fe963ac68bfe9d04c63f8a91cc3cfff5c\n"
133
+ "gitHead": "b3bcd5623ec78379cceebc6808d7c7b262dfc168\n"
134
134
  }
package/query.js CHANGED
@@ -118,7 +118,7 @@ class Query {
118
118
  offset: _offset,
119
119
  limit: _limit
120
120
  };
121
- if (!ctx.bitmap) return result;
121
+ if (!ctx.bitmap && this.terms.length) return result;
122
122
  if (this._cmp) {
123
123
  rows = [...ctx.rows()].sort(this._cmp);
124
124
  result.total = rows.length;
@@ -141,7 +141,7 @@ class Query {
141
141
  *[Symbol.iterator]() {
142
142
  const { table, _limit, _offset } = this;
143
143
  const ctx = new QueryCtx(this).exec();
144
- if (!ctx.bitmap) return;
144
+ if (!ctx.bitmap && this.terms.length) return;
145
145
  if (this._cmp) {
146
146
  const rows = [...ctx.rows()].sort(this._cmp);
147
147
  yield* rows.slice(