@gscdump/engine 3.5.0 → 3.6.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/README.md +28 -18
- package/dist/THIRD-PARTY-LICENSES.md +2 -2
- package/dist/adapters/duckdb-node.d.mts +4 -4
- package/dist/adapters/duckdb-node.mjs +103 -77
- package/dist/adapters/filesystem.d.mts +6 -7
- package/dist/adapters/filesystem.mjs +11 -6
- package/dist/adapters/hyparquet.d.mts +9 -10
- package/dist/adapters/hyparquet.mjs +84 -44
- package/dist/adapters/node-harness.d.mts +3 -4
- package/dist/adapters/parquet-attach.d.mts +4 -5
- package/dist/adapters/parquet-attach.mjs +7 -2
- package/dist/adapters/r2-manifest.d.mts +4 -5
- package/dist/adapters/r2.d.mts +2 -3
- package/dist/adapters/snapshot-attach.d.mts +7 -8
- package/dist/adapters/snapshot-attach.mjs +7 -2
- package/dist/analysis-range.d.mts +2 -3
- package/dist/analysis-types.d.mts +4 -5
- package/dist/analyzer/define.d.mts +6 -7
- package/dist/analyzer/dispatch.d.mts +2 -3
- package/dist/analyzer/registry.d.mts +4 -5
- package/dist/analyzer/types.d.mts +11 -12
- package/dist/arrow-utils.d.mts +4 -5
- package/dist/arrow-utils.mjs +10 -0
- package/dist/coerce.d.mts +1 -2
- package/dist/compaction.d.mts +2 -3
- package/dist/drizzle-schema.d.mts +14 -15
- package/dist/duckdb.d.mts +5 -6
- package/dist/duckdb.mjs +9 -5
- package/dist/engine.d.mts +1 -2
- package/dist/entities/empty-types.d.mts +4 -5
- package/dist/entities/indexing-metadata.d.mts +5 -6
- package/dist/entities/inspection.d.mts +9 -10
- package/dist/entities/query-dim.d.mts +7 -7
- package/dist/entities/sitemap-shared.d.mts +26 -27
- package/dist/entities/sitemap-write.d.mts +1 -2
- package/dist/entities/sitemap.d.mts +1 -2
- package/dist/entity-keys.d.mts +28 -29
- package/dist/errors.d.mts +5 -6
- package/dist/iceberg/append-sink.d.mts +2 -3
- package/dist/iceberg/catalog.d.mts +10 -10
- package/dist/iceberg/catalog.mjs +2 -2
- package/dist/iceberg/overwrite-writer.d.mts +17 -18
- package/dist/iceberg/schema.d.mts +16 -16
- package/dist/ingest-accumulator.d.mts +8 -9
- package/dist/ingest.d.mts +15 -12
- package/dist/ingest.mjs +22 -6
- package/dist/layout.d.mts +4 -5
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.9_patch_hash_d26d002aede61ad95dd633d6557b56897cdcbc45dfc3a5d93fa0e9075ad5425f/node_modules/hyparquet-writer/src/datapage.mjs +1 -1
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.9_patch_hash_d26d002aede61ad95dd633d6557b56897cdcbc45dfc3a5d93fa0e9075ad5425f/node_modules/hyparquet-writer/src/indexes.mjs +1 -1
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.9_patch_hash_d26d002aede61ad95dd633d6557b56897cdcbc45dfc3a5d93fa0e9075ad5425f/node_modules/hyparquet-writer/src/metadata.mjs +1 -1
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.9_patch_hash_d26d002aede61ad95dd633d6557b56897cdcbc45dfc3a5d93fa0e9075ad5425f/node_modules/hyparquet-writer/src/types.d.mts +2 -3
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.9_patch_hash_d26d002aede61ad95dd633d6557b56897cdcbc45dfc3a5d93fa0e9075ad5425f/node_modules/hyparquet-writer/types/index.d.mts +2 -3
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/assemble.mjs +3 -144
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/bloom.mjs +3 -58
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/column.mjs +8 -129
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/convert.mjs +3 -118
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/datapage.mjs +6 -144
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/delta.mjs +2 -65
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/encoding.mjs +2 -76
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/filter.mjs +4 -212
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/geoparquet.mjs +1 -24
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/index.mjs +3 -3
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/indexes.mjs +5 -32
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/metadata.mjs +7 -241
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/node.mjs +1 -5
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/plain.mjs +1 -79
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/plan.mjs +6 -375
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/read.mjs +6 -77
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/rowgroup.mjs +7 -175
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/scan.mjs +5 -73
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/schema.mjs +1 -22
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/snappy.mjs +1 -68
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/thrift.mjs +1 -86
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/types.d.mts +2 -28
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/utils.mjs +1 -31
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/variant.mjs +3 -228
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/src/wkb.mjs +1 -94
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/types/index.d.mts +2 -52
- package/dist/node_modules/.pnpm/hyparquet@1.29.2/node_modules/hyparquet/types/node.d.mts +2 -2
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/assemble.mjs +144 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/bloom.mjs +124 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/column.mjs +129 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/constants.mjs +80 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/convert.mjs +118 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/datapage.mjs +144 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/delta.mjs +65 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/encoding.mjs +76 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/filter.mjs +212 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/geoparquet.mjs +24 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/index.mjs +8 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/indexes.mjs +32 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/metadata.mjs +241 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/node.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/plain.mjs +79 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/plan.mjs +375 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/query.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/read.mjs +81 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/rowgroup.mjs +175 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/scan.mjs +74 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/schema.mjs +75 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/snappy.mjs +68 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/thrift.mjs +86 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/types.d.mts +25 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/utils.mjs +32 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/variant.mjs +228 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/wkb.mjs +94 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/src/xxhash.mjs +68 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/types/index.d.mts +58 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/types/node.d.mts +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/types/scan.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.30.0/node_modules/hyparquet/types/utils.d.mts +1 -0
- package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/index.mjs +1 -1
- package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/read.mjs +1 -1
- package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/sql/icebergDataSource.mjs +1 -1
- package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/sql/icebergQuery.mjs +1 -1
- package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/types.d.mts +17 -18
- package/dist/node_modules/.pnpm/icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7/node_modules/icebird/types/create.d.mts +1 -0
- package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/types/index.d.mts +1 -1
- package/dist/node_modules/.pnpm/icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7/node_modules/icebird/types/manifest.d.mts +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7/node_modules/icebird/types/metadata.d.mts +1 -0
- package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/types/read.d.mts +1 -1
- package/dist/node_modules/.pnpm/icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7/node_modules/icebird/types/s3.d.mts +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7/node_modules/icebird/types/sql/icebergDataSource.d.mts +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7/node_modules/icebird/types/sql/icebergQuery.d.mts +2 -0
- package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/types/write/write.d.mts +2 -3
- package/dist/node_modules/.pnpm/squirreling@0.16.4/node_modules/squirreling/src/ast.d.mts +1 -0
- package/dist/parquet-plan.d.mts +5 -6
- package/dist/period/index.d.mts +8 -8
- package/dist/profile.d.mts +3 -3
- package/dist/report/define.d.mts +1 -2
- package/dist/report/hash.d.mts +3 -4
- package/dist/report/registry.d.mts +3 -4
- package/dist/report/types.d.mts +22 -23
- package/dist/resolver/adapter.d.mts +2 -3
- package/dist/resolver/canonical-source.d.mts +1 -2
- package/dist/resolver/compile.d.mts +12 -8
- package/dist/resolver/compile.mjs +7 -3
- package/dist/resolver/datasets.d.mts +9 -9
- package/dist/resolver/extras-overlay.d.mts +2 -3
- package/dist/resolver/filter-utils.d.mts +7 -7
- package/dist/resolver/fragments.d.mts +3 -4
- package/dist/resolver/pg-adapter.d.mts +7 -8
- package/dist/resolver/run-query.d.mts +16 -17
- package/dist/resolver/run-query.mjs +16 -15
- package/dist/resolver/schema-drift.d.mts +2 -3
- package/dist/resolver/types.d.mts +8 -9
- package/dist/rollups/canonical.d.mts +4 -5
- package/dist/rollups/core.d.mts +12 -13
- package/dist/rollups/defaults.d.mts +2 -3
- package/dist/rollups/hourly.d.mts +3 -4
- package/dist/rollups/indexing.d.mts +5 -6
- package/dist/rollups/traffic.d.mts +5 -6
- package/dist/rollups/windows.d.mts +7 -8
- package/dist/schedule.d.mts +6 -7
- package/dist/schema.d.mts +9 -9
- package/dist/scope.d.mts +6 -7
- package/dist/sink.d.mts +9 -10
- package/dist/sinks/in-memory-sink.d.mts +3 -4
- package/dist/snapshot.d.mts +2 -3
- package/dist/source/attached-table.d.mts +4 -5
- package/dist/source/create-sql-query-source.d.mts +2 -3
- package/dist/source/index.d.mts +6 -6
- package/dist/source/source-types.d.mts +7 -8
- package/dist/sql-bind.d.mts +3 -4
- package/dist/sql-fragments.d.mts +5 -6
- package/dist/storage.d.mts +37 -37
- package/dist/sync-config.d.mts +20 -21
- package/dist/vendor/hysnappy-purejs.d.mts +2 -3
- package/dist/vendor/hysnappy-purejs.mjs +1 -1
- package/package.json +12 -10
- package/dist/node_modules/.pnpm/icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7/node_modules/icebird/types/sql/icebergDataSource.d.mts +0 -2
- package/dist/node_modules/.pnpm/icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7/node_modules/icebird/types/sql/icebergQuery.d.mts +0 -2
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7/node_modules/icebird/types/create.d.mts → hyparquet@1.30.0/node_modules/hyparquet/types/indexes.d.mts} +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7/node_modules/icebird → hyparquet@1.30.0/node_modules/hyparquet}/types/metadata.d.mts +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7/node_modules/icebird/types/manifest.d.mts → hyparquet@1.30.0/node_modules/hyparquet/types/query.d.mts} +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7/node_modules/icebird/types/s3.d.mts → hyparquet@1.30.0/node_modules/hyparquet/types/read.d.mts} +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3/node_modules/squirreling/src/ast.d.mts → hyparquet@1.30.0/node_modules/hyparquet/types/snappy.d.mts} +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/avro/avro.metadata.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/avro/avro.read.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/avro/avro.write.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/catalog/file.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/catalog/loadTable.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/catalog/rest.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/create.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/delete.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/fetch.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/json.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/manifest.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/metadata.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/prune.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/puffin/deletion-vector.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/puffin/puffin.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/puffin/roaring.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/s3.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/schema.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/sigv4.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/sql/whereFilter.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/utils.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/write/commit.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/write/conversions.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/write/delete-file.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/write/geospatial.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/write/manifest-list.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/write/manifest.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/write/parquet.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/write/partition.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/write/rewrite.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/write/serde.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/write/snapshot.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/write/sort.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/write/stage-deletion-vector.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/write/stage-position-delete.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/write/stage.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/write/stats.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/write/transform.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/src/write/write.mjs +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/types/catalog/file.d.mts +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/types/catalog/rest.d.mts +0 -0
- /package/dist/node_modules/.pnpm/{icebird@0.8.27_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7 → icebird@0.8.28_patch_hash_651b5cc1b513184638c98e21a0852c4559044ae60f8449fbe9d81a894ea5b4d7}/node_modules/icebird/types/fetch.d.mts +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/backend/batch.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/backend/batchAdapters.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/backend/dataSource.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/execute/accumulator.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/execute/aggregates.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/execute/batchResults.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/execute/batches.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/execute/execute.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/execute/fold.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/execute/join.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/execute/rowScope.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/execute/scanColumn.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/execute/sort.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/execute/streamingAggregate.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/execute/utils.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/execute/window.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/execute/yield.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/expression/alias.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/expression/batch.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/expression/binary.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/expression/date.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/expression/evaluate.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/expression/math.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/expression/regexp.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/expression/scalar.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/expression/strings.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/index.d.mts +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/index.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/parse/expression.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/parse/extractTables.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/parse/functions.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/parse/joins.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/parse/parse.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/parse/primary.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/parse/state.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/parse/tokenize.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/parse/types.d.mts +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/plan/columns.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/plan/plan.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/plan/types.d.mts +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/spatial/bbox.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/spatial/equality.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/spatial/operations.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/spatial/pointRelations.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/spatial/primitives.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/spatial/segments.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/spatial/spatial.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/spatial/wkt.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/types.d.mts +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/validation/aggregates.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/validation/executionErrors.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/validation/functions.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/validation/keywords.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/validation/parseErrors.mjs +0 -0
- /package/dist/node_modules/.pnpm/{squirreling@0.16.3 → squirreling@0.16.4}/node_modules/squirreling/src/validation/tables.mjs +0 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
const MASK = 18446744073709551615n;
|
|
2
|
+
const PRIME1 = 11400714785074694791n;
|
|
3
|
+
const PRIME2 = 14029467366897019727n;
|
|
4
|
+
const PRIME3 = 1609587929392839161n;
|
|
5
|
+
const PRIME4 = 9650029242287828579n;
|
|
6
|
+
const PRIME5 = 2870177450012600261n;
|
|
7
|
+
function rotl64(x, r) {
|
|
8
|
+
return (x << r | x >> 64n - r) & MASK;
|
|
9
|
+
}
|
|
10
|
+
function round(acc, val) {
|
|
11
|
+
acc = acc + val * PRIME2 & MASK;
|
|
12
|
+
acc = rotl64(acc, 31n);
|
|
13
|
+
return acc * PRIME1 & MASK;
|
|
14
|
+
}
|
|
15
|
+
function mergeRound(acc, val) {
|
|
16
|
+
acc ^= round(0n, val);
|
|
17
|
+
return acc * PRIME1 + PRIME4 & MASK;
|
|
18
|
+
}
|
|
19
|
+
function xxhash64(input, seed = 0n) {
|
|
20
|
+
const view = new DataView(input.buffer, input.byteOffset, input.byteLength);
|
|
21
|
+
const len = input.byteLength;
|
|
22
|
+
let offset = 0;
|
|
23
|
+
let h64;
|
|
24
|
+
if (len >= 32) {
|
|
25
|
+
let v1 = seed + PRIME1 + PRIME2 & MASK;
|
|
26
|
+
let v2 = seed + PRIME2 & MASK;
|
|
27
|
+
let v3 = seed;
|
|
28
|
+
let v4 = seed - PRIME1 & MASK;
|
|
29
|
+
while (offset + 32 <= len) {
|
|
30
|
+
v1 = round(v1, view.getBigUint64(offset, true));
|
|
31
|
+
offset += 8;
|
|
32
|
+
v2 = round(v2, view.getBigUint64(offset, true));
|
|
33
|
+
offset += 8;
|
|
34
|
+
v3 = round(v3, view.getBigUint64(offset, true));
|
|
35
|
+
offset += 8;
|
|
36
|
+
v4 = round(v4, view.getBigUint64(offset, true));
|
|
37
|
+
offset += 8;
|
|
38
|
+
}
|
|
39
|
+
h64 = rotl64(v1, 1n) + rotl64(v2, 7n) + rotl64(v3, 12n) + rotl64(v4, 18n) & MASK;
|
|
40
|
+
h64 = mergeRound(h64, v1);
|
|
41
|
+
h64 = mergeRound(h64, v2);
|
|
42
|
+
h64 = mergeRound(h64, v3);
|
|
43
|
+
h64 = mergeRound(h64, v4);
|
|
44
|
+
} else h64 = seed + PRIME5 & MASK;
|
|
45
|
+
h64 = h64 + BigInt(len) & MASK;
|
|
46
|
+
while (offset + 8 <= len) {
|
|
47
|
+
h64 ^= round(0n, view.getBigUint64(offset, true));
|
|
48
|
+
h64 = rotl64(h64, 27n) * PRIME1 + PRIME4 & MASK;
|
|
49
|
+
offset += 8;
|
|
50
|
+
}
|
|
51
|
+
if (offset + 4 <= len) {
|
|
52
|
+
h64 ^= BigInt(view.getUint32(offset, true)) * PRIME1 & MASK;
|
|
53
|
+
h64 = rotl64(h64, 23n) * PRIME2 + PRIME3 & MASK;
|
|
54
|
+
offset += 4;
|
|
55
|
+
}
|
|
56
|
+
while (offset < len) {
|
|
57
|
+
h64 ^= BigInt(view.getUint8(offset)) * PRIME5 & MASK;
|
|
58
|
+
h64 = rotl64(h64, 11n) * PRIME1 & MASK;
|
|
59
|
+
offset += 1;
|
|
60
|
+
}
|
|
61
|
+
h64 ^= h64 >> 33n;
|
|
62
|
+
h64 = h64 * PRIME2 & MASK;
|
|
63
|
+
h64 ^= h64 >> 29n;
|
|
64
|
+
h64 = h64 * PRIME3 & MASK;
|
|
65
|
+
h64 ^= h64 >> 32n;
|
|
66
|
+
return h64;
|
|
67
|
+
}
|
|
68
|
+
export { xxhash64 };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ParquetQueryFilter as ParquetQueryFilter$1 } from "../src/types.mjs";
|
|
2
|
+
import "./indexes.mjs";
|
|
3
|
+
import "./metadata.mjs";
|
|
4
|
+
import "./read.mjs";
|
|
5
|
+
import "./scan.mjs";
|
|
6
|
+
import "./query.mjs";
|
|
7
|
+
import "./snappy.mjs";
|
|
8
|
+
import "./utils.mjs";
|
|
9
|
+
export type ParquetQueryFilter = ParquetQueryFilter$1;
|
|
10
|
+
/**
|
|
11
|
+
* Explicitly export types for use in downstream typescript projects through
|
|
12
|
+
* `import { ParquetReadOptions } from 'hyparquet'` for example.
|
|
13
|
+
*
|
|
14
|
+
* @template {any} T
|
|
15
|
+
* @typedef {import('../src/types.d.ts').Awaitable<T>} Awaitable<T>
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* @typedef {import('../src/types.d.ts').AsyncBuffer} AsyncBuffer
|
|
19
|
+
* @typedef {import('../src/types.d.ts').AsyncRowGroup} AsyncRowGroup
|
|
20
|
+
* @typedef {import('../src/types.d.ts').DataReader} DataReader
|
|
21
|
+
* @typedef {import('../src/types.d.ts').FileMetaData} FileMetaData
|
|
22
|
+
* @typedef {import('../src/types.d.ts').SchemaTree} SchemaTree
|
|
23
|
+
* @typedef {import('../src/types.d.ts').SchemaElement} SchemaElement
|
|
24
|
+
* @typedef {import('../src/types.d.ts').ParquetType} ParquetType
|
|
25
|
+
* @typedef {import('../src/types.d.ts').FieldRepetitionType} FieldRepetitionType
|
|
26
|
+
* @typedef {import('../src/types.d.ts').ConvertedType} ConvertedType
|
|
27
|
+
* @typedef {import('../src/types.d.ts').TimeUnit} TimeUnit
|
|
28
|
+
* @typedef {import('../src/types.d.ts').LogicalType} LogicalType
|
|
29
|
+
* @typedef {import('../src/types.d.ts').RowGroup} RowGroup
|
|
30
|
+
* @typedef {import('../src/types.d.ts').ColumnChunk} ColumnChunk
|
|
31
|
+
* @typedef {import('../src/types.d.ts').ColumnMetaData} ColumnMetaData
|
|
32
|
+
* @typedef {import('../src/types.d.ts').Encoding} Encoding
|
|
33
|
+
* @typedef {import('../src/types.d.ts').CompressionCodec} CompressionCodec
|
|
34
|
+
* @typedef {import('../src/types.d.ts').Compressors} Compressors
|
|
35
|
+
* @typedef {import('../src/types.d.ts').KeyValue} KeyValue
|
|
36
|
+
* @typedef {import('../src/types.d.ts').Statistics} Statistics
|
|
37
|
+
* @typedef {import('../src/types.d.ts').GeospatialStatistics} GeospatialStatistics
|
|
38
|
+
* @typedef {import('../src/types.d.ts').BoundingBox} BoundingBox
|
|
39
|
+
* @typedef {import('../src/types.d.ts').PageType} PageType
|
|
40
|
+
* @typedef {import('../src/types.d.ts').PageHeader} PageHeader
|
|
41
|
+
* @typedef {import('../src/types.d.ts').DataPageHeader} DataPageHeader
|
|
42
|
+
* @typedef {import('../src/types.d.ts').DictionaryPageHeader} DictionaryPageHeader
|
|
43
|
+
* @typedef {import('../src/types.d.ts').DecodedArray} DecodedArray
|
|
44
|
+
* @typedef {import('../src/types.d.ts').OffsetIndex} OffsetIndex
|
|
45
|
+
* @typedef {import('../src/types.d.ts').ColumnIndex} ColumnIndex
|
|
46
|
+
* @typedef {import('../src/types.d.ts').BoundaryOrder} BoundaryOrder
|
|
47
|
+
* @typedef {import('../src/types.d.ts').ColumnData} ColumnData
|
|
48
|
+
* @typedef {import('../src/types.d.ts').SubColumnData} SubColumnData
|
|
49
|
+
* @typedef {import('../src/types.d.ts').ParquetReadOptions} ParquetReadOptions
|
|
50
|
+
* @typedef {import('../src/types.d.ts').ParquetRow} ParquetRow
|
|
51
|
+
* @typedef {import('../src/types.d.ts').ParquetRowRange} ParquetRowRange
|
|
52
|
+
* @typedef {import('../src/types.d.ts').ParquetScan} ParquetScan
|
|
53
|
+
* @typedef {import('../src/types.d.ts').ParquetScanColumnOptions} ParquetScanColumnOptions
|
|
54
|
+
* @typedef {import('../src/types.d.ts').ParquetScanOptions} ParquetScanOptions
|
|
55
|
+
* @typedef {import('../src/types.d.ts').MetadataOptions} MetadataOptions
|
|
56
|
+
* @typedef {import('../src/types.d.ts').ParquetParsers} ParquetParsers
|
|
57
|
+
* @typedef {import('../src/types.d.ts').ParquetQueryFilter} ParquetQueryFilter
|
|
58
|
+
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../src/types.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../src/types.mjs";
|
|
@@ -3,7 +3,7 @@ import "./metadata.mjs";
|
|
|
3
3
|
import "./catalog/rest.mjs";
|
|
4
4
|
import "./create.mjs";
|
|
5
5
|
import "./manifest.mjs";
|
|
6
|
-
import "../../../../squirreling@0.16.
|
|
6
|
+
import "../../../../squirreling@0.16.4/node_modules/squirreling/src/index.mjs";
|
|
7
7
|
import "./read.mjs";
|
|
8
8
|
import { icebergCreateTable } from "./write/write.mjs";
|
|
9
9
|
import "./catalog/file.mjs";
|
|
@@ -8,5 +8,5 @@ import "./delete.mjs";
|
|
|
8
8
|
import "./fetch.mjs";
|
|
9
9
|
import "./metadata.mjs";
|
|
10
10
|
import "./manifest.mjs";
|
|
11
|
-
import "../../../../squirreling@0.16.
|
|
11
|
+
import "../../../../squirreling@0.16.4/node_modules/squirreling/src/index.mjs";
|
|
12
12
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../fetch.mjs";
|
|
2
2
|
import "../metadata.mjs";
|
|
3
3
|
import "../manifest.mjs";
|
|
4
|
-
import "../../../../../squirreling@0.16.
|
|
4
|
+
import "../../../../../squirreling@0.16.4/node_modules/squirreling/src/index.mjs";
|
|
5
5
|
import "../read.mjs";
|
|
6
6
|
import "../prune.mjs";
|
|
7
7
|
import "./whereFilter.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../fetch.mjs";
|
|
2
2
|
import "../catalog/loadTable.mjs";
|
|
3
|
-
import "../../../../../squirreling@0.16.
|
|
3
|
+
import "../../../../../squirreling@0.16.4/node_modules/squirreling/src/index.mjs";
|
|
4
4
|
import "./icebergDataSource.mjs";
|
|
5
5
|
export {};
|
|
@@ -2,7 +2,7 @@ import { AsyncBuffer } from "../../../../hyparquet@1.29.2/node_modules/hyparquet
|
|
|
2
2
|
import "../../../../hyparquet@1.29.2/node_modules/hyparquet/types/node.mjs";
|
|
3
3
|
import { Writer } from "../../../../hyparquet-writer@0.16.9_patch_hash_d26d002aede61ad95dd633d6557b56897cdcbc45dfc3a5d93fa0e9075ad5425f/node_modules/hyparquet-writer/types/index.mjs";
|
|
4
4
|
import "../../../../hyparquet-writer@0.16.9_patch_hash_d26d002aede61ad95dd633d6557b56897cdcbc45dfc3a5d93fa0e9075ad5425f/node_modules/hyparquet-writer/types/node.mjs";
|
|
5
|
-
interface WriterOptions {
|
|
5
|
+
export interface WriterOptions {
|
|
6
6
|
/**
|
|
7
7
|
* If `'*'`, the writer must create the object only if it does not already
|
|
8
8
|
* exist (S3 conditional write: `If-None-Match: *`). On collision the
|
|
@@ -12,14 +12,14 @@ interface WriterOptions {
|
|
|
12
12
|
*/
|
|
13
13
|
ifNoneMatch?: '*';
|
|
14
14
|
}
|
|
15
|
-
interface Resolver {
|
|
15
|
+
export interface Resolver {
|
|
16
16
|
reader: (path: string, byteLength?: number) => AsyncBuffer | Promise<AsyncBuffer>;
|
|
17
17
|
writer?: (path: string, options?: WriterOptions) => Writer;
|
|
18
18
|
deleter?: (path: string) => Promise<void>;
|
|
19
19
|
}
|
|
20
|
-
type Lister = (path: string) => Promise<string[]>;
|
|
20
|
+
export type Lister = (path: string) => Promise<string[]>;
|
|
21
21
|
/** Catalogs */
|
|
22
|
-
interface RestCatalogContext {
|
|
22
|
+
export interface RestCatalogContext {
|
|
23
23
|
type: 'rest';
|
|
24
24
|
url: string;
|
|
25
25
|
prefix: string;
|
|
@@ -29,7 +29,7 @@ interface RestCatalogContext {
|
|
|
29
29
|
/** Optional per-request auth hook (e.g. SigV4 signing). Called after merging requestInit. */
|
|
30
30
|
signRequest?: (url: string, init?: RequestInit) => Promise<RequestInit>;
|
|
31
31
|
}
|
|
32
|
-
interface FileCatalog {
|
|
32
|
+
export interface FileCatalog {
|
|
33
33
|
type: 'file';
|
|
34
34
|
resolver: Resolver;
|
|
35
35
|
lister?: Lister;
|
|
@@ -43,8 +43,8 @@ interface FileCatalog {
|
|
|
43
43
|
*/
|
|
44
44
|
conditionalCommits?: boolean;
|
|
45
45
|
}
|
|
46
|
-
type Catalog = RestCatalogContext | FileCatalog;
|
|
47
|
-
interface TableMetadata {
|
|
46
|
+
export type Catalog = RestCatalogContext | FileCatalog;
|
|
47
|
+
export interface TableMetadata {
|
|
48
48
|
'format-version': number;
|
|
49
49
|
'table-uuid': string;
|
|
50
50
|
location: string;
|
|
@@ -69,13 +69,13 @@ interface TableMetadata {
|
|
|
69
69
|
'next-row-id'?: number | bigint; // required in V3
|
|
70
70
|
'encryption-keys'?: EncryptionKey[]; // V3
|
|
71
71
|
}
|
|
72
|
-
interface Schema {
|
|
72
|
+
export interface Schema {
|
|
73
73
|
type: 'struct';
|
|
74
74
|
'schema-id': number;
|
|
75
75
|
'identifier-field-ids'?: number[];
|
|
76
76
|
fields: Field[];
|
|
77
77
|
}
|
|
78
|
-
interface Field {
|
|
78
|
+
export interface Field {
|
|
79
79
|
id: number;
|
|
80
80
|
name: string;
|
|
81
81
|
required: boolean;
|
|
@@ -84,8 +84,8 @@ interface Field {
|
|
|
84
84
|
'initial-default'?: any;
|
|
85
85
|
'write-default'?: any;
|
|
86
86
|
}
|
|
87
|
-
type IcebergType = 'unknown' | 'boolean' | 'int' | 'long' | 'float' | 'double' | 'date' | 'time' | 'timestamp' | 'timestamptz' | 'timestamp_ns' | 'timestamptz_ns' | 'string' | 'uuid' | `fixed[${number}]` | 'binary' | `decimal(${number},${number})` | `decimal(${number}, ${number})` | 'variant' | 'geometry' | `geometry(${string})` | 'geography' | `geography(${string})` | IcebergNestedType;
|
|
88
|
-
type IcebergNestedType = Schema | {
|
|
87
|
+
export type IcebergType = 'unknown' | 'boolean' | 'int' | 'long' | 'float' | 'double' | 'date' | 'time' | 'timestamp' | 'timestamptz' | 'timestamp_ns' | 'timestamptz_ns' | 'string' | 'uuid' | `fixed[${number}]` | 'binary' | `decimal(${number},${number})` | `decimal(${number}, ${number})` | 'variant' | 'geometry' | `geometry(${string})` | 'geography' | `geography(${string})` | IcebergNestedType;
|
|
88
|
+
export type IcebergNestedType = Schema | {
|
|
89
89
|
type: 'list';
|
|
90
90
|
'element-id': number;
|
|
91
91
|
'element-required': boolean;
|
|
@@ -98,7 +98,7 @@ type IcebergNestedType = Schema | {
|
|
|
98
98
|
'value-required': boolean;
|
|
99
99
|
value: IcebergType;
|
|
100
100
|
};
|
|
101
|
-
interface PartitionSpec {
|
|
101
|
+
export interface PartitionSpec {
|
|
102
102
|
'spec-id': number;
|
|
103
103
|
fields: PartitionField[];
|
|
104
104
|
}
|
|
@@ -109,13 +109,13 @@ interface PartitionField {
|
|
|
109
109
|
name: string;
|
|
110
110
|
transform: PartitionTransform;
|
|
111
111
|
}
|
|
112
|
-
type PartitionTransform = 'identity' | `bucket[${number}]` | `truncate[${number}]` | 'year' | 'month' | 'day' | 'hour' | 'void' | string;
|
|
112
|
+
export type PartitionTransform = 'identity' | `bucket[${number}]` | `truncate[${number}]` | 'year' | 'month' | 'day' | 'hour' | 'void' | string;
|
|
113
113
|
interface PartitionStatistics {
|
|
114
114
|
'snapshot-id': bigint;
|
|
115
115
|
'statistics-path': string;
|
|
116
116
|
'file-size-in-bytes': bigint;
|
|
117
117
|
}
|
|
118
|
-
interface SortOrder {
|
|
118
|
+
export interface SortOrder {
|
|
119
119
|
'order-id': number;
|
|
120
120
|
'fields': SortField[];
|
|
121
121
|
}
|
|
@@ -126,7 +126,7 @@ interface SortField {
|
|
|
126
126
|
'direction': 'asc' | 'desc';
|
|
127
127
|
'null-order': 'nulls-first' | 'nulls-last';
|
|
128
128
|
}
|
|
129
|
-
interface Snapshot {
|
|
129
|
+
export interface Snapshot {
|
|
130
130
|
'snapshot-id': number | bigint;
|
|
131
131
|
'parent-snapshot-id'?: number | bigint;
|
|
132
132
|
'sequence-number': number;
|
|
@@ -174,7 +174,7 @@ interface SnapshotLog {
|
|
|
174
174
|
'timestamp-ms': number;
|
|
175
175
|
'snapshot-id': number | bigint;
|
|
176
176
|
}
|
|
177
|
-
interface SnapshotRef {
|
|
177
|
+
export interface SnapshotRef {
|
|
178
178
|
'snapshot-id': number | bigint;
|
|
179
179
|
type: 'branch' | 'tag';
|
|
180
180
|
'min-snapshots-to-keep'?: number;
|
|
@@ -188,5 +188,4 @@ interface EncryptionKey {
|
|
|
188
188
|
interface MetadataLog {
|
|
189
189
|
'timestamp-ms': number;
|
|
190
190
|
'metadata-file': string;
|
|
191
|
-
}
|
|
192
|
-
export { Catalog, Field, FileCatalog, IcebergNestedType, IcebergType, Lister, PartitionSpec, PartitionTransform, Resolver, RestCatalogContext, Schema, Snapshot, SnapshotRef, SortOrder, TableMetadata, WriterOptions };
|
|
191
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../src/types.mjs";
|
|
@@ -4,7 +4,7 @@ import "./catalog/file.mjs";
|
|
|
4
4
|
import "./catalog/rest.mjs";
|
|
5
5
|
import "./fetch.mjs";
|
|
6
6
|
import "./s3.mjs";
|
|
7
|
-
import "../../../../squirreling@0.16.
|
|
7
|
+
import "../../../../squirreling@0.16.4/node_modules/squirreling/src/index.mjs";
|
|
8
8
|
import "./read.mjs";
|
|
9
9
|
import "./metadata.mjs";
|
|
10
10
|
import "./manifest.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../src/types.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../src/types.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../src/types.mjs";
|
|
@@ -17,7 +17,7 @@ import { Catalog, PartitionSpec, Schema, SortOrder, TableMetadata } from "../../
|
|
|
17
17
|
* @param {boolean} [options.stageCreate] - REST catalog only.
|
|
18
18
|
* @returns {Promise<TableMetadata>}
|
|
19
19
|
*/
|
|
20
|
-
declare function icebergCreateTable({ catalog, namespace, table, tableUrl, schema, partitionSpec, sortOrder, properties, formatVersion, stageCreate }: {
|
|
20
|
+
export declare function icebergCreateTable({ catalog, namespace, table, tableUrl, schema, partitionSpec, sortOrder, properties, formatVersion, stageCreate }: {
|
|
21
21
|
catalog: Catalog;
|
|
22
22
|
namespace?: string | string[];
|
|
23
23
|
table?: string;
|
|
@@ -28,5 +28,4 @@ declare function icebergCreateTable({ catalog, namespace, table, tableUrl, schem
|
|
|
28
28
|
properties?: Record<string, string>;
|
|
29
29
|
formatVersion?: 2 | 3;
|
|
30
30
|
stageCreate?: boolean;
|
|
31
|
-
}): Promise<TableMetadata>;
|
|
32
|
-
export { icebergCreateTable };
|
|
31
|
+
}): Promise<TableMetadata>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
package/dist/parquet-plan.d.mts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { TableName } from "./storage.mjs";
|
|
2
2
|
import { LogicalQueryPlan } from "gscdump/query/plan";
|
|
3
3
|
import { BuilderState } from "gscdump/query";
|
|
4
|
-
interface ResolvedQuery {
|
|
4
|
+
export interface ResolvedQuery {
|
|
5
5
|
sql: string;
|
|
6
6
|
params: unknown[];
|
|
7
7
|
partitions: string[];
|
|
8
8
|
table: TableName;
|
|
9
9
|
filesPlaceholder: string;
|
|
10
10
|
}
|
|
11
|
-
declare const FILES_PLACEHOLDER = "{{FILES}}";
|
|
12
|
-
declare function compileLogicalQueryPlan(plan: LogicalQueryPlan, table?: TableName): ResolvedQuery;
|
|
13
|
-
declare function resolveParquetSQL(state: BuilderState, table?: TableName): ResolvedQuery;
|
|
14
|
-
declare function substituteNamedFiles(sql: string, sets: Record<string, string[]>): string;
|
|
15
|
-
export { FILES_PLACEHOLDER, ResolvedQuery, compileLogicalQueryPlan, resolveParquetSQL, substituteNamedFiles };
|
|
11
|
+
export declare const FILES_PLACEHOLDER = "{{FILES}}";
|
|
12
|
+
export declare function compileLogicalQueryPlan(plan: LogicalQueryPlan, table?: TableName): ResolvedQuery;
|
|
13
|
+
export declare function resolveParquetSQL(state: BuilderState, table?: TableName): ResolvedQuery;
|
|
14
|
+
export declare function substituteNamedFiles(sql: string, sets: Record<string, string[]>): string;
|
package/dist/period/index.d.mts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { AnalysisParams } from "../analysis-types.mjs";
|
|
2
2
|
import { ComparisonMode, ResolveWindowOptions, ResolvedWindow, WindowPreset, resolveWindow } from "gscdump/dates";
|
|
3
|
-
interface AnalysisPeriod {
|
|
3
|
+
export interface AnalysisPeriod {
|
|
4
4
|
startDate: string;
|
|
5
5
|
endDate: string;
|
|
6
6
|
}
|
|
7
|
-
interface ComparisonPeriod {
|
|
7
|
+
export interface ComparisonPeriod {
|
|
8
8
|
current: AnalysisPeriod;
|
|
9
9
|
previous: AnalysisPeriod;
|
|
10
10
|
}
|
|
11
|
-
declare function defaultEndDate(): string;
|
|
12
|
-
declare function periodOf(params: AnalysisParams): AnalysisPeriod;
|
|
13
|
-
declare function comparisonOf(params: AnalysisParams): ComparisonPeriod;
|
|
14
|
-
interface PadTimeseriesOptions<T> {
|
|
11
|
+
export declare function defaultEndDate(): string;
|
|
12
|
+
export declare function periodOf(params: AnalysisParams): AnalysisPeriod;
|
|
13
|
+
export declare function comparisonOf(params: AnalysisParams): ComparisonPeriod;
|
|
14
|
+
export interface PadTimeseriesOptions<T> {
|
|
15
15
|
/** ISO date (YYYY-MM-DD), inclusive lower bound. */
|
|
16
16
|
startDate: string;
|
|
17
17
|
/** ISO date (YYYY-MM-DD), inclusive upper bound. */
|
|
@@ -31,5 +31,5 @@ type DateRowShape = Record<string, unknown> & {
|
|
|
31
31
|
* Pad rows so every calendar day in `[startDate, endDate]` appears at least
|
|
32
32
|
* once. Existing dates keep all their rows (grouped timeseries safe).
|
|
33
33
|
*/
|
|
34
|
-
declare function padTimeseries<T extends DateRowShape = DateRowShape>(rows: readonly T[], options: PadTimeseriesOptions<T>): T[];
|
|
35
|
-
export {
|
|
34
|
+
export declare function padTimeseries<T extends DateRowShape = DateRowShape>(rows: readonly T[], options: PadTimeseriesOptions<T>): T[];
|
|
35
|
+
export { type ComparisonMode, type ResolveWindowOptions, type ResolvedWindow, type WindowPreset, resolveWindow };
|
package/dist/profile.d.mts
CHANGED
|
@@ -8,14 +8,14 @@ import { QueryProfiler, QuerySpan } from "./storage.mjs";
|
|
|
8
8
|
* counts — land on the same span). `now` is injectable for deterministic
|
|
9
9
|
* tests; it defaults to `Date.now`.
|
|
10
10
|
*/
|
|
11
|
-
declare function createQueryProfiler(sink: (span: QuerySpan) => void, now?: () => number): QueryProfiler;
|
|
11
|
+
export declare function createQueryProfiler(sink: (span: QuerySpan) => void, now?: () => number): QueryProfiler;
|
|
12
12
|
/**
|
|
13
13
|
* A profiler that accumulates closed spans into an array — for tests, the CLI
|
|
14
14
|
* `query` command, or any ad-hoc "where did the time go" probe. The returned
|
|
15
15
|
* `spans` array is filled as spans close, in completion order.
|
|
16
16
|
*/
|
|
17
|
-
declare function collectSpans(now?: () => number): {
|
|
17
|
+
export declare function collectSpans(now?: () => number): {
|
|
18
18
|
profiler: QueryProfiler;
|
|
19
19
|
spans: QuerySpan[];
|
|
20
20
|
};
|
|
21
|
-
export {
|
|
21
|
+
export type { QueryProfiler, QuerySpan };
|
package/dist/report/define.d.mts
CHANGED
|
@@ -4,5 +4,4 @@ import { DefineReportOptions, DefinedReport, ReportParams } from "./types.mjs";
|
|
|
4
4
|
* fills default `argsSpec`. No runtime behaviour — `runReport` consumes
|
|
5
5
|
* the returned object.
|
|
6
6
|
*/
|
|
7
|
-
declare function defineReport<P extends ReportParams = ReportParams>(opts: DefineReportOptions<P>): DefinedReport<P>;
|
|
8
|
-
export { defineReport };
|
|
7
|
+
export declare function defineReport<P extends ReportParams = ReportParams>(opts: DefineReportOptions<P>): DefinedReport<P>;
|
package/dist/report/hash.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ResolvedWindow } from "../period/index.mjs";
|
|
2
2
|
import { ReportParams } from "./types.mjs";
|
|
3
|
-
interface InputHashSeeds {
|
|
3
|
+
export interface InputHashSeeds {
|
|
4
4
|
id: string;
|
|
5
5
|
site: string;
|
|
6
6
|
window: ResolvedWindow;
|
|
@@ -8,6 +8,5 @@ interface InputHashSeeds {
|
|
|
8
8
|
registryVersion: string;
|
|
9
9
|
}
|
|
10
10
|
/** Stable JSON: sorts object keys at every level. Arrays preserve order. */
|
|
11
|
-
declare function canonicalize(value: unknown): unknown;
|
|
12
|
-
declare function computeInputHash(seeds: InputHashSeeds): Promise<string>;
|
|
13
|
-
export { InputHashSeeds, canonicalize, computeInputHash };
|
|
11
|
+
export declare function canonicalize(value: unknown): unknown;
|
|
12
|
+
export declare function computeInputHash(seeds: InputHashSeeds): Promise<string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefinedReport, ReportParams } from "./types.mjs";
|
|
2
|
-
interface ReportRegistryInit {
|
|
2
|
+
export interface ReportRegistryInit {
|
|
3
3
|
reports?: readonly DefinedReport<ReportParams>[];
|
|
4
4
|
/**
|
|
5
5
|
* Opaque version string. Used as the `registryVersion` input to
|
|
@@ -8,11 +8,10 @@ interface ReportRegistryInit {
|
|
|
8
8
|
*/
|
|
9
9
|
version?: string;
|
|
10
10
|
}
|
|
11
|
-
interface ReportRegistry {
|
|
11
|
+
export interface ReportRegistry {
|
|
12
12
|
version: string;
|
|
13
13
|
listReportIds: () => readonly string[];
|
|
14
14
|
getReport: (id: string) => DefinedReport<ReportParams> | undefined;
|
|
15
15
|
listReports: () => readonly DefinedReport<ReportParams>[];
|
|
16
16
|
}
|
|
17
|
-
declare function createReportRegistry(init?: ReportRegistryInit): ReportRegistry;
|
|
18
|
-
export { ReportRegistry, ReportRegistryInit, createReportRegistry };
|
|
17
|
+
export declare function createReportRegistry(init?: ReportRegistryInit): ReportRegistry;
|
package/dist/report/types.d.mts
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
import { AnalysisParams, AnalysisResult } from "../analysis-types.mjs";
|
|
2
2
|
import { ComparisonMode, ResolvedWindow, WindowPreset } from "../period/index.mjs";
|
|
3
|
-
type ReportStepStatus = 'pending' | 'running' | 'done' | 'skipped' | 'error';
|
|
3
|
+
export type ReportStepStatus = 'pending' | 'running' | 'done' | 'skipped' | 'error';
|
|
4
4
|
/**
|
|
5
5
|
* `unknown` is not a rung on the info→high ladder: it means the section's
|
|
6
6
|
* backing analyzer(s) failed, so no severity could be assessed. The report
|
|
7
7
|
* runtime is the only writer — a report's `reduce` never returns it. See
|
|
8
8
|
* `ReportPlanStep.feeds`.
|
|
9
9
|
*/
|
|
10
|
-
type ReportSeverity = 'info' | 'low' | 'medium' | 'high' | 'unknown';
|
|
11
|
-
type ReportEntityKind = 'page' | 'query';
|
|
12
|
-
type ReportCoverage = 'full' | 'partial';
|
|
10
|
+
export type ReportSeverity = 'info' | 'low' | 'medium' | 'high' | 'unknown';
|
|
11
|
+
export type ReportEntityKind = 'page' | 'query';
|
|
12
|
+
export type ReportCoverage = 'full' | 'partial';
|
|
13
13
|
/** Citty-shaped arg spec, kept structural so engine doesn't pull citty in. */
|
|
14
|
-
interface ReportArgDef {
|
|
14
|
+
export interface ReportArgDef {
|
|
15
15
|
type: 'string' | 'boolean' | 'number';
|
|
16
16
|
description?: string;
|
|
17
17
|
default?: string | boolean | number;
|
|
18
18
|
required?: boolean;
|
|
19
19
|
alias?: string;
|
|
20
20
|
}
|
|
21
|
-
type ReportArgsSpec = Record<string, ReportArgDef>;
|
|
22
|
-
interface ReportEntity {
|
|
21
|
+
export type ReportArgsSpec = Record<string, ReportArgDef>;
|
|
22
|
+
export interface ReportEntity {
|
|
23
23
|
kind: ReportEntityKind;
|
|
24
24
|
value: string;
|
|
25
25
|
}
|
|
26
|
-
interface ReportFindingDelta {
|
|
26
|
+
export interface ReportFindingDelta {
|
|
27
27
|
metric: string;
|
|
28
28
|
prior: number;
|
|
29
29
|
current: number;
|
|
30
30
|
pct: number;
|
|
31
31
|
}
|
|
32
|
-
interface ReportFinding {
|
|
32
|
+
export interface ReportFinding {
|
|
33
33
|
entity: ReportEntity;
|
|
34
34
|
metrics: Record<string, number>;
|
|
35
35
|
delta?: ReportFindingDelta;
|
|
36
36
|
why?: string;
|
|
37
37
|
}
|
|
38
|
-
interface ReportSectionSummary {
|
|
38
|
+
export interface ReportSectionSummary {
|
|
39
39
|
delta?: number;
|
|
40
40
|
direction?: 'up' | 'down' | 'flat';
|
|
41
41
|
magnitudeLabel?: string;
|
|
42
42
|
}
|
|
43
|
-
interface ReportSectionArtifact {
|
|
43
|
+
export interface ReportSectionArtifact {
|
|
44
44
|
analyzer: string;
|
|
45
45
|
params: AnalysisParams;
|
|
46
46
|
}
|
|
47
|
-
interface ReportSection {
|
|
47
|
+
export interface ReportSection {
|
|
48
48
|
id: string;
|
|
49
49
|
title: string;
|
|
50
50
|
severity: ReportSeverity;
|
|
@@ -58,7 +58,7 @@ interface ReportSection {
|
|
|
58
58
|
coverage: ReportCoverage;
|
|
59
59
|
artifact?: ReportSectionArtifact;
|
|
60
60
|
}
|
|
61
|
-
interface ReportPlanStep {
|
|
61
|
+
export interface ReportPlanStep {
|
|
62
62
|
/** Stable identifier within the report (e.g. `movers`, `decay-current`). */
|
|
63
63
|
key: string;
|
|
64
64
|
/** Analyzer id (or future: nested report id). Open string by design. */
|
|
@@ -85,19 +85,19 @@ interface ReportPlanStep {
|
|
|
85
85
|
*/
|
|
86
86
|
feeds?: readonly string[];
|
|
87
87
|
}
|
|
88
|
-
interface ReportStepStateMeta {
|
|
88
|
+
export interface ReportStepStateMeta {
|
|
89
89
|
key: string;
|
|
90
90
|
type: string;
|
|
91
91
|
status: ReportStepStatus;
|
|
92
92
|
error?: string;
|
|
93
93
|
}
|
|
94
|
-
interface ReportResultMeta {
|
|
94
|
+
export interface ReportResultMeta {
|
|
95
95
|
durationMs: number;
|
|
96
96
|
rowsScanned: number;
|
|
97
97
|
degraded: boolean;
|
|
98
98
|
steps: ReportStepStateMeta[];
|
|
99
99
|
}
|
|
100
|
-
interface ReportResult {
|
|
100
|
+
export interface ReportResult {
|
|
101
101
|
id: string;
|
|
102
102
|
site: string;
|
|
103
103
|
/** sha256(id|site|window|paramsCanonical|registryVersion). Stable. */
|
|
@@ -113,8 +113,8 @@ interface ReportResult {
|
|
|
113
113
|
* Constraint is `object` so report authors can use plain interfaces without
|
|
114
114
|
* needing an index signature.
|
|
115
115
|
*/
|
|
116
|
-
type ReportParams = object;
|
|
117
|
-
interface ReportContext<P extends ReportParams = ReportParams> {
|
|
116
|
+
export type ReportParams = object;
|
|
117
|
+
export interface ReportContext<P extends ReportParams = ReportParams> {
|
|
118
118
|
/** Resolved site URL (e.g. `https://example.com/`). */
|
|
119
119
|
site: string;
|
|
120
120
|
/** Already-resolved window — runtime calls `resolveWindow` once before plan(). */
|
|
@@ -126,10 +126,10 @@ interface ReportContext<P extends ReportParams = ReportParams> {
|
|
|
126
126
|
/**
|
|
127
127
|
* Reduce step results → sections. Runtime injects `meta` post-reduce.
|
|
128
128
|
*/
|
|
129
|
-
type ReportReducer<P extends ReportParams = ReportParams> = (results: Record<string, AnalysisResult>, ctx: ReportContext<P>) => Omit<ReportResult, 'meta' | 'inputHash' | 'generatedAt' | 'site' | 'window' | 'id'> & {
|
|
129
|
+
export type ReportReducer<P extends ReportParams = ReportParams> = (results: Record<string, AnalysisResult>, ctx: ReportContext<P>) => Omit<ReportResult, 'meta' | 'inputHash' | 'generatedAt' | 'site' | 'window' | 'id'> & {
|
|
130
130
|
sections: ReportSection[];
|
|
131
131
|
};
|
|
132
|
-
interface DefinedReport<P extends ReportParams = ReportParams> {
|
|
132
|
+
export interface DefinedReport<P extends ReportParams = ReportParams> {
|
|
133
133
|
id: string;
|
|
134
134
|
description: string;
|
|
135
135
|
defaultPeriod: WindowPreset;
|
|
@@ -139,7 +139,7 @@ interface DefinedReport<P extends ReportParams = ReportParams> {
|
|
|
139
139
|
plan: (params: P, window: ResolvedWindow) => readonly ReportPlanStep[];
|
|
140
140
|
reduce: ReportReducer<P>;
|
|
141
141
|
}
|
|
142
|
-
interface DefineReportOptions<P extends ReportParams = ReportParams> {
|
|
142
|
+
export interface DefineReportOptions<P extends ReportParams = ReportParams> {
|
|
143
143
|
id: string;
|
|
144
144
|
description: string;
|
|
145
145
|
defaultPeriod: WindowPreset;
|
|
@@ -147,5 +147,4 @@ interface DefineReportOptions<P extends ReportParams = ReportParams> {
|
|
|
147
147
|
argsSpec?: ReportArgsSpec;
|
|
148
148
|
plan: (params: P, window: ResolvedWindow) => readonly ReportPlanStep[];
|
|
149
149
|
reduce: ReportReducer<P>;
|
|
150
|
-
}
|
|
151
|
-
export { DefineReportOptions, DefinedReport, ReportArgDef, ReportArgsSpec, ReportContext, ReportCoverage, ReportEntity, ReportEntityKind, ReportFinding, ReportFindingDelta, ReportParams, ReportPlanStep, ReportReducer, ReportResult, ReportResultMeta, ReportSection, ReportSectionArtifact, ReportSectionSummary, ReportSeverity, ReportStepStateMeta, ReportStepStatus };
|
|
150
|
+
}
|
|
@@ -2,12 +2,11 @@ import { ResolverAdapter } from "./types.mjs";
|
|
|
2
2
|
import { SqlFragmentsConfig } from "./fragments.mjs";
|
|
3
3
|
import { PlannerCapabilities } from "gscdump/query/plan";
|
|
4
4
|
import { SQL } from "drizzle-orm";
|
|
5
|
-
interface CreateResolverAdapterConfig<TableKey extends string> extends SqlFragmentsConfig<TableKey> {
|
|
5
|
+
export interface CreateResolverAdapterConfig<TableKey extends string> extends SqlFragmentsConfig<TableKey> {
|
|
6
6
|
compile: (query: SQL) => {
|
|
7
7
|
sql: string;
|
|
8
8
|
params: unknown[];
|
|
9
9
|
};
|
|
10
10
|
capabilities: PlannerCapabilities;
|
|
11
11
|
}
|
|
12
|
-
declare function createResolverAdapter<TableKey extends string>(config: CreateResolverAdapterConfig<TableKey>): ResolverAdapter<TableKey>;
|
|
13
|
-
export { CreateResolverAdapterConfig, createResolverAdapter };
|
|
12
|
+
export declare function createResolverAdapter<TableKey extends string>(config: CreateResolverAdapterConfig<TableKey>): ResolverAdapter<TableKey>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PlannerCapabilities } from "gscdump/query/plan";
|
|
2
2
|
import { BuilderState } from "gscdump/query";
|
|
3
3
|
/** State-level convenience: build the plan then gate. */
|
|
4
|
-
declare function canonicalRollupCovers(state: BuilderState, capabilities: PlannerCapabilities): boolean;
|
|
5
|
-
export { canonicalRollupCovers };
|
|
4
|
+
export declare function canonicalRollupCovers(state: BuilderState, capabilities: PlannerCapabilities): boolean;
|