@luma.gl/graph 10.0.0-alpha.9 → 10.0.0-beta.2
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/LICENSE +4 -4
- package/THIRD-PARTY-NOTICES.md +19 -0
- package/dist/arrow/arrow-colors.cjs +99 -18
- package/dist/arrow/arrow-colors.d.ts +27 -10
- package/dist/arrow/arrow-colors.d.ts.map +1 -1
- package/dist/arrow/arrow-colors.js +107 -24
- package/dist/arrow/arrow-colors.js.map +1 -1
- package/dist/arrow/arrow-utils/arrow-paths.cjs +4 -3
- package/dist/arrow/arrow-utils/arrow-paths.d.ts.map +1 -1
- package/dist/arrow/arrow-utils/arrow-paths.js +5 -4
- package/dist/arrow/arrow-utils/arrow-paths.js.map +1 -1
- package/dist/arrow/cpu/arrow-coordinate-projection.cjs +30 -0
- package/dist/arrow/cpu/arrow-coordinate-projection.d.ts +5 -0
- package/dist/arrow/cpu/arrow-coordinate-projection.d.ts.map +1 -0
- package/dist/arrow/cpu/arrow-coordinate-projection.js +9 -0
- package/dist/arrow/cpu/arrow-coordinate-projection.js.map +1 -0
- package/dist/arrow/cpu/arrow-cpu-pipelines.cjs +31 -0
- package/dist/arrow/cpu/arrow-cpu-pipelines.d.ts +2 -0
- package/dist/arrow/cpu/arrow-cpu-pipelines.d.ts.map +1 -0
- package/dist/arrow/cpu/arrow-cpu-pipelines.js +5 -0
- package/dist/arrow/cpu/arrow-cpu-pipelines.js.map +1 -0
- package/dist/arrow/cpu/arrow-cpu-vector-adapters.cjs +99 -0
- package/dist/arrow/cpu/arrow-cpu-vector-adapters.d.ts +9 -0
- package/dist/arrow/cpu/arrow-cpu-vector-adapters.d.ts.map +1 -0
- package/dist/arrow/cpu/arrow-cpu-vector-adapters.js +100 -0
- package/dist/arrow/cpu/arrow-cpu-vector-adapters.js.map +1 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.cjs +9 -371
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.d.ts +8 -28
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.d.ts.map +1 -1
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.js +4 -381
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.js.map +1 -1
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.cjs +11 -11
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.d.ts +2 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.d.ts.map +1 -1
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.js +4 -4
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.js.map +1 -1
- package/dist/arrow/geoarrow/arrow-polygon-tessellation.cjs +2 -2
- package/dist/arrow/geoarrow/arrow-polygon-tessellation.js +1 -1
- package/dist/arrow/geoarrow/arrow-polygon-tessellation.js.map +1 -1
- package/dist/arrow/gpu/arrow-column-gpu-vector.cjs +27 -8
- package/dist/arrow/gpu/arrow-column-gpu-vector.d.ts +11 -1
- package/dist/arrow/gpu/arrow-column-gpu-vector.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-column-gpu-vector.js +33 -8
- package/dist/arrow/gpu/arrow-column-gpu-vector.js.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-table-conversion.cjs +68 -3
- package/dist/arrow/gpu/arrow-gpu-table-conversion.d.ts +9 -2
- package/dist/arrow/gpu/arrow-gpu-table-conversion.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-table-conversion.js +76 -3
- package/dist/arrow/gpu/arrow-gpu-table-conversion.js.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-vector-adapters.cjs +8 -6
- package/dist/arrow/gpu/arrow-gpu-vector-adapters.d.ts +1 -0
- package/dist/arrow/gpu/arrow-gpu-vector-adapters.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-vector-adapters.js +17 -7
- package/dist/arrow/gpu/arrow-gpu-vector-adapters.js.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.cjs +35 -5
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.d.ts +6 -1
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.js +40 -5
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.js.map +1 -1
- package/dist/arrow/index.cjs +19 -2
- package/dist/arrow/index.cjs.map +3 -3
- package/dist/arrow/index.d.ts +5 -2
- package/dist/arrow/index.d.ts.map +1 -1
- package/dist/arrow/index.js +4 -1
- package/dist/arrow/index.js.map +1 -1
- package/dist/arrow/internal.cjs.map +2 -2
- package/dist/dist.dev.js +3820 -1646
- package/dist/dist.min.js +450 -136
- package/dist/experimental/index.cjs.map +1 -1
- package/dist/experimental/simulation/index.cjs.map +1 -1
- package/dist/experimental-models.cjs +21 -0
- package/dist/experimental-models.d.ts +2 -0
- package/dist/experimental-models.d.ts.map +1 -0
- package/dist/experimental-models.js +5 -0
- package/dist/experimental-models.js.map +1 -0
- package/dist/experimental-simulation.cjs +21 -0
- package/dist/experimental-simulation.d.ts +2 -0
- package/dist/experimental-simulation.d.ts.map +1 -0
- package/dist/experimental-simulation.js +5 -0
- package/dist/experimental-simulation.js.map +1 -0
- package/dist/geospatial/gpu-point-spatial-query.cjs +2 -15
- package/dist/geospatial/gpu-point-spatial-query.d.ts.map +1 -1
- package/dist/geospatial/gpu-point-spatial-query.js +2 -15
- package/dist/geospatial/gpu-point-spatial-query.js.map +1 -1
- package/dist/geospatial/index.cjs.map +2 -2
- package/dist/gpu-a5/index.cjs.map +1 -1
- package/dist/gpu-core/compiled-gpu-graph.cjs +47 -0
- package/dist/gpu-core/compiled-gpu-graph.d.ts +5 -0
- package/dist/gpu-core/compiled-gpu-graph.d.ts.map +1 -1
- package/dist/gpu-core/compiled-gpu-graph.js +54 -1
- package/dist/gpu-core/compiled-gpu-graph.js.map +1 -1
- package/dist/gpu-core/gpu-command-graph-compiler.cjs +11 -2
- package/dist/gpu-core/gpu-command-graph-compiler.d.ts +2 -1
- package/dist/gpu-core/gpu-command-graph-compiler.d.ts.map +1 -1
- package/dist/gpu-core/gpu-command-graph-compiler.js +13 -2
- package/dist/gpu-core/gpu-command-graph-compiler.js.map +1 -1
- package/dist/gpu-core/gpu-command-graph-types.d.ts +16 -1
- package/dist/gpu-core/gpu-command-graph-types.d.ts.map +1 -1
- package/dist/gpu-core/gpu-command-graph-types.js.map +1 -1
- package/dist/gpu-core/gpu-command-graph.cjs +34 -11
- package/dist/gpu-core/gpu-command-graph.d.ts +17 -8
- package/dist/gpu-core/gpu-command-graph.d.ts.map +1 -1
- package/dist/gpu-core/gpu-command-graph.js +39 -11
- package/dist/gpu-core/gpu-command-graph.js.map +1 -1
- package/dist/gpu-core/gpu-cpu-execution.cjs +279 -0
- package/dist/gpu-core/gpu-cpu-execution.d.ts +22 -0
- package/dist/gpu-core/gpu-cpu-execution.d.ts.map +1 -0
- package/dist/gpu-core/gpu-cpu-execution.js +294 -0
- package/dist/gpu-core/gpu-cpu-execution.js.map +1 -0
- package/dist/gpu-core/gpu-cpu-operation.cjs +54 -0
- package/dist/gpu-core/gpu-cpu-operation.d.ts +40 -0
- package/dist/gpu-core/gpu-cpu-operation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-cpu-operation.js +35 -0
- package/dist/gpu-core/gpu-cpu-operation.js.map +1 -0
- package/dist/gpu-core/gpu-dispatch-utils.cjs +7 -3
- package/dist/gpu-core/gpu-dispatch-utils.d.ts +2 -0
- package/dist/gpu-core/gpu-dispatch-utils.d.ts.map +1 -1
- package/dist/gpu-core/gpu-dispatch-utils.js +4 -1
- package/dist/gpu-core/gpu-dispatch-utils.js.map +1 -1
- package/dist/gpu-core/gpu-expression-operation.cjs +2 -2
- package/dist/gpu-core/gpu-expression-operation.d.ts +1 -1
- package/dist/gpu-core/gpu-expression-operation.d.ts.map +1 -1
- package/dist/gpu-core/gpu-expression-operation.js +1 -1
- package/dist/gpu-core/gpu-expression-operation.js.map +1 -1
- package/dist/gpu-core/gpu-expression-plan.cjs +5 -1
- package/dist/gpu-core/gpu-expression-plan.d.ts +3 -2
- package/dist/gpu-core/gpu-expression-plan.d.ts.map +1 -1
- package/dist/gpu-core/gpu-expression-plan.js +7 -1
- package/dist/gpu-core/gpu-expression-plan.js.map +1 -1
- package/dist/gpu-core/gpu-graph-compiler.cjs +48 -0
- package/dist/gpu-core/gpu-graph-compiler.d.ts +1 -0
- package/dist/gpu-core/gpu-graph-compiler.d.ts.map +1 -1
- package/dist/gpu-core/gpu-graph-compiler.js +50 -0
- package/dist/gpu-core/gpu-graph-compiler.js.map +1 -1
- package/dist/gpu-core/gpu-graph.d.ts +2 -2
- package/dist/gpu-core/gpu-graph.d.ts.map +1 -1
- package/dist/gpu-core/gpu-graph.js.map +1 -1
- package/dist/gpu-core/gpu-grid-aggregation.cjs +2 -5
- package/dist/gpu-core/gpu-grid-aggregation.d.ts.map +1 -1
- package/dist/gpu-core/gpu-grid-aggregation.js +2 -5
- package/dist/gpu-core/gpu-grid-aggregation.js.map +1 -1
- package/dist/gpu-core/gpu-grid-binning.cjs +2 -5
- package/dist/gpu-core/gpu-grid-binning.d.ts.map +1 -1
- package/dist/gpu-core/gpu-grid-binning.js +2 -5
- package/dist/gpu-core/gpu-grid-binning.js.map +1 -1
- package/dist/gpu-core/gpu-grid-coordinate.cjs +41 -0
- package/dist/gpu-core/gpu-grid-coordinate.d.ts +7 -0
- package/dist/gpu-core/gpu-grid-coordinate.d.ts.map +1 -0
- package/dist/gpu-core/gpu-grid-coordinate.js +24 -0
- package/dist/gpu-core/gpu-grid-coordinate.js.map +1 -0
- package/dist/gpu-core/gpu-grid-index-internals.cjs +2 -15
- package/dist/gpu-core/gpu-grid-index-internals.d.ts.map +1 -1
- package/dist/gpu-core/gpu-grid-index-internals.js +2 -15
- package/dist/gpu-core/gpu-grid-index-internals.js.map +1 -1
- package/dist/gpu-core/gpu-grid-index-query.cjs +2 -16
- package/dist/gpu-core/gpu-grid-index-query.d.ts.map +1 -1
- package/dist/gpu-core/gpu-grid-index-query.js +2 -16
- package/dist/gpu-core/gpu-grid-index-query.js.map +1 -1
- package/dist/gpu-core/gpu-group-aggregation.cjs +7 -15
- package/dist/gpu-core/gpu-group-aggregation.d.ts.map +1 -1
- package/dist/gpu-core/gpu-group-aggregation.js +7 -18
- package/dist/gpu-core/gpu-group-aggregation.js.map +1 -1
- package/dist/gpu-core/gpu-operation.d.ts +4 -4
- package/dist/gpu-core/gpu-operation.d.ts.map +1 -1
- package/dist/gpu-core/gpu-operation.js.map +1 -1
- package/dist/gpu-core/gpu-reduction.cjs +6 -14
- package/dist/gpu-core/gpu-reduction.d.ts.map +1 -1
- package/dist/gpu-core/gpu-reduction.js +6 -15
- package/dist/gpu-core/gpu-reduction.js.map +1 -1
- package/dist/gpu-core/gpu-render-operation.cjs +39 -0
- package/dist/gpu-core/gpu-render-operation.d.ts +21 -0
- package/dist/gpu-core/gpu-render-operation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-render-operation.js +22 -0
- package/dist/gpu-core/gpu-render-operation.js.map +1 -0
- package/dist/gpu-core/gpu-scan.cjs +46 -32
- package/dist/gpu-core/gpu-scan.d.ts.map +1 -1
- package/dist/gpu-core/gpu-scan.js +56 -44
- package/dist/gpu-core/gpu-scan.js.map +1 -1
- package/dist/gpu-core/gpu-segmented-reduction.cjs +12 -9
- package/dist/gpu-core/gpu-segmented-reduction.d.ts +1 -1
- package/dist/gpu-core/gpu-segmented-reduction.d.ts.map +1 -1
- package/dist/gpu-core/gpu-segmented-reduction.js +12 -9
- package/dist/gpu-core/gpu-segmented-reduction.js.map +1 -1
- package/dist/gpu-core/gpu-segmented-scan.cjs +73 -16
- package/dist/gpu-core/gpu-segmented-scan.d.ts.map +1 -1
- package/dist/gpu-core/gpu-segmented-scan.js +73 -16
- package/dist/gpu-core/gpu-segmented-scan.js.map +1 -1
- package/dist/gpu-core/gpu-semantic-aggregation-operation.cjs +112 -0
- package/dist/gpu-core/gpu-semantic-aggregation-operation.d.ts +71 -0
- package/dist/gpu-core/gpu-semantic-aggregation-operation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-semantic-aggregation-operation.js +92 -0
- package/dist/gpu-core/gpu-semantic-aggregation-operation.js.map +1 -0
- package/dist/gpu-core/gpu-shader-pass-kernel.cjs +267 -0
- package/dist/gpu-core/gpu-shader-pass-kernel.d.ts +29 -0
- package/dist/gpu-core/gpu-shader-pass-kernel.d.ts.map +1 -0
- package/dist/gpu-core/gpu-shader-pass-kernel.js +260 -0
- package/dist/gpu-core/gpu-shader-pass-kernel.js.map +1 -0
- package/dist/gpu-core/gpu-shader-pass-operation.cjs +85 -0
- package/dist/gpu-core/gpu-shader-pass-operation.d.ts +32 -0
- package/dist/gpu-core/gpu-shader-pass-operation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-shader-pass-operation.js +74 -0
- package/dist/gpu-core/gpu-shader-pass-operation.js.map +1 -0
- package/dist/gpu-core/gpu-texture-plan.d.ts +3 -2
- package/dist/gpu-core/gpu-texture-plan.d.ts.map +1 -1
- package/dist/gpu-core/gpu-texture-plan.js.map +1 -1
- package/dist/gpu-core/index.cjs +32 -0
- package/dist/gpu-core/index.cjs.map +3 -3
- package/dist/gpu-core/index.d.ts +21 -1
- package/dist/gpu-core/index.d.ts.map +1 -1
- package/dist/gpu-core/index.js +10 -0
- package/dist/gpu-core/index.js.map +1 -1
- package/dist/gpu-data/color-conversion.cjs +105 -0
- package/dist/gpu-data/color-conversion.d.ts +30 -0
- package/dist/gpu-data/color-conversion.d.ts.map +1 -0
- package/dist/gpu-data/color-conversion.js +109 -0
- package/dist/gpu-data/color-conversion.js.map +1 -0
- package/dist/gpu-data/cpu-data.cjs +60 -0
- package/dist/gpu-data/cpu-data.d.ts +28 -0
- package/dist/gpu-data/cpu-data.d.ts.map +1 -0
- package/dist/gpu-data/cpu-data.js +41 -0
- package/dist/gpu-data/cpu-data.js.map +1 -0
- package/dist/gpu-data/cpu-gpu-vector-transfer.cjs +98 -0
- package/dist/gpu-data/cpu-gpu-vector-transfer.d.ts +9 -0
- package/dist/gpu-data/cpu-gpu-vector-transfer.d.ts.map +1 -0
- package/dist/gpu-data/cpu-gpu-vector-transfer.js +85 -0
- package/dist/gpu-data/cpu-gpu-vector-transfer.js.map +1 -0
- package/dist/gpu-data/cpu-vector.cjs +42 -0
- package/dist/gpu-data/cpu-vector.d.ts +17 -0
- package/dist/gpu-data/cpu-vector.d.ts.map +1 -0
- package/dist/gpu-data/cpu-vector.js +21 -0
- package/dist/gpu-data/cpu-vector.js.map +1 -0
- package/dist/gpu-data/gpu-data-buffer-props.cjs +41 -0
- package/dist/gpu-data/gpu-data-buffer-props.d.ts +5 -0
- package/dist/gpu-data/gpu-data-buffer-props.d.ts.map +1 -0
- package/dist/gpu-data/gpu-data-buffer-props.js +19 -0
- package/dist/gpu-data/gpu-data-buffer-props.js.map +1 -0
- package/dist/gpu-data/gpu-vector-wgsl-layout.cjs +50 -0
- package/dist/gpu-data/gpu-vector-wgsl-layout.d.ts +41 -0
- package/dist/gpu-data/gpu-vector-wgsl-layout.d.ts.map +1 -0
- package/dist/gpu-data/gpu-vector-wgsl-layout.js +45 -0
- package/dist/gpu-data/gpu-vector-wgsl-layout.js.map +1 -0
- package/dist/gpu-data/index.cjs +21 -2
- package/dist/gpu-data/index.cjs.map +3 -3
- package/dist/gpu-data/index.d.ts +6 -0
- package/dist/gpu-data/index.d.ts.map +1 -1
- package/dist/gpu-data/index.js +5 -0
- package/dist/gpu-data/index.js.map +1 -1
- package/dist/gpu-dataframe/gpu-data-frame-query.cjs +8 -19
- package/dist/gpu-dataframe/gpu-data-frame-query.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-data-frame-query.js +14 -26
- package/dist/gpu-dataframe/gpu-data-frame-query.js.map +1 -1
- package/dist/gpu-dataframe/gpu-expression-shader.cjs +87 -5
- package/dist/gpu-dataframe/gpu-expression-shader.d.ts +2 -1
- package/dist/gpu-dataframe/gpu-expression-shader.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-expression-shader.js +101 -5
- package/dist/gpu-dataframe/gpu-expression-shader.js.map +1 -1
- package/dist/gpu-dataframe/gpu-expression.cjs +177 -2
- package/dist/gpu-dataframe/gpu-expression.d.ts +60 -2
- package/dist/gpu-dataframe/gpu-expression.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-expression.js +187 -0
- package/dist/gpu-dataframe/gpu-expression.js.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.cjs +0 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.js +0 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-query.cjs +2 -2
- package/dist/gpu-dataframe/gpu-global-aggregation-query.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-query.js +5 -3
- package/dist/gpu-dataframe/gpu-global-aggregation-query.js.map +1 -1
- package/dist/gpu-dataframe/gpu-global-sort-compiler.cjs +23 -11
- package/dist/gpu-dataframe/gpu-global-sort-compiler.d.ts +1 -1
- package/dist/gpu-dataframe/gpu-global-sort-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-global-sort-compiler.js +24 -12
- package/dist/gpu-dataframe/gpu-global-sort-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.cjs +0 -1
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.js +0 -1
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-group-by-query.cjs +2 -2
- package/dist/gpu-dataframe/gpu-group-by-query.js +5 -3
- package/dist/gpu-dataframe/gpu-group-by-query.js.map +1 -1
- package/dist/gpu-dataframe/gpu-histogram-compiler.cjs +0 -1
- package/dist/gpu-dataframe/gpu-histogram-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-histogram-compiler.js +0 -1
- package/dist/gpu-dataframe/gpu-histogram-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-join-compiler.cjs +0 -2
- package/dist/gpu-dataframe/gpu-join-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-join-compiler.js +0 -2
- package/dist/gpu-dataframe/gpu-join-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-query-compiler.cjs +3 -1
- package/dist/gpu-dataframe/gpu-query-compiler.d.ts +0 -1
- package/dist/gpu-dataframe/gpu-query-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-query-compiler.js +3 -1
- package/dist/gpu-dataframe/gpu-query-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-sort-compiler.cjs +0 -1
- package/dist/gpu-dataframe/gpu-sort-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-sort-compiler.js +0 -1
- package/dist/gpu-dataframe/gpu-sort-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-sort-query.cjs +13 -5
- package/dist/gpu-dataframe/gpu-sort-query.d.ts +4 -1
- package/dist/gpu-dataframe/gpu-sort-query.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-sort-query.js +14 -5
- package/dist/gpu-dataframe/gpu-sort-query.js.map +1 -1
- package/dist/gpu-dataframe/index.cjs +20 -2
- package/dist/gpu-dataframe/index.cjs.map +3 -3
- package/dist/gpu-dataframe/index.d.ts +6 -2
- package/dist/gpu-dataframe/index.d.ts.map +1 -1
- package/dist/gpu-dataframe/index.js +3 -1
- package/dist/gpu-dataframe/index.js.map +1 -1
- package/dist/gpu-dataframe/portable-expression.cjs +167 -0
- package/dist/gpu-dataframe/portable-expression.d.ts +21 -0
- package/dist/gpu-dataframe/portable-expression.d.ts.map +1 -0
- package/dist/gpu-dataframe/portable-expression.js +162 -0
- package/dist/gpu-dataframe/portable-expression.js.map +1 -0
- package/dist/gpu-dggs/benchmarks.cjs.map +1 -1
- package/dist/gpu-dggs/index.cjs.map +1 -1
- package/dist/gpu-dggs-benchmarks.cjs +21 -0
- package/dist/gpu-dggs-benchmarks.d.ts +2 -0
- package/dist/gpu-dggs-benchmarks.d.ts.map +1 -0
- package/dist/gpu-dggs-benchmarks.js +5 -0
- package/dist/gpu-dggs-benchmarks.js.map +1 -0
- package/dist/gpu-geometry/index.cjs.map +1 -1
- package/dist/gpu-graph/index.cjs +8 -0
- package/dist/gpu-graph/index.cjs.map +3 -3
- package/dist/gpu-graph/index.d.ts +4 -0
- package/dist/gpu-graph/index.d.ts.map +1 -1
- package/dist/gpu-graph/index.js +2 -0
- package/dist/gpu-graph/index.js.map +1 -1
- package/dist/gpu-graph-algorithms/benchmarks.cjs.map +2 -2
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.cjs +2 -15
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.d.ts.map +1 -1
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.js +2 -15
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.js.map +1 -1
- package/dist/gpu-graph-algorithms/index.cjs.map +2 -2
- package/dist/gpu-graph-algorithms-benchmarks.cjs +21 -0
- package/dist/gpu-graph-algorithms-benchmarks.d.ts +2 -0
- package/dist/gpu-graph-algorithms-benchmarks.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms-benchmarks.js +5 -0
- package/dist/gpu-graph-algorithms-benchmarks.js.map +1 -0
- package/dist/gpu-h3/index.cjs.map +1 -1
- package/dist/gpu-physics/gpu-physics-ensemble-terrain.cjs +116 -0
- package/dist/gpu-physics/gpu-physics-ensemble-terrain.d.ts +42 -0
- package/dist/gpu-physics/gpu-physics-ensemble-terrain.d.ts.map +1 -0
- package/dist/gpu-physics/gpu-physics-ensemble-terrain.js +90 -0
- package/dist/gpu-physics/gpu-physics-ensemble-terrain.js.map +1 -0
- package/dist/gpu-physics/gpu-physics-ensemble.cjs +97 -5
- package/dist/gpu-physics/gpu-physics-ensemble.d.ts +31 -2
- package/dist/gpu-physics/gpu-physics-ensemble.d.ts.map +1 -1
- package/dist/gpu-physics/gpu-physics-ensemble.js +99 -3
- package/dist/gpu-physics/gpu-physics-ensemble.js.map +1 -1
- package/dist/gpu-physics/gpu-rigid-body-world.cjs +568 -77
- package/dist/gpu-physics/gpu-rigid-body-world.d.ts +86 -0
- package/dist/gpu-physics/gpu-rigid-body-world.d.ts.map +1 -1
- package/dist/gpu-physics/gpu-rigid-body-world.js +617 -76
- package/dist/gpu-physics/gpu-rigid-body-world.js.map +1 -1
- package/dist/gpu-physics/index.cjs +23 -2
- package/dist/gpu-physics/index.cjs.map +3 -3
- package/dist/gpu-physics/index.d.ts +9 -2
- package/dist/gpu-physics/index.d.ts.map +1 -1
- package/dist/gpu-physics/index.js +6 -1
- package/dist/gpu-physics/index.js.map +1 -1
- package/dist/gpu-physics/rigid-body-bounds-shaders.cjs +21 -8
- package/dist/gpu-physics/rigid-body-bounds-shaders.d.ts +2 -1
- package/dist/gpu-physics/rigid-body-bounds-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-bounds-shaders.js +15 -1
- package/dist/gpu-physics/rigid-body-bounds-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-convex-shaders.cjs +3 -2
- package/dist/gpu-physics/rigid-body-convex-shaders.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-convex-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-convex-shaders.js +3 -2
- package/dist/gpu-physics/rigid-body-convex-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-reset.cjs +36 -7
- package/dist/gpu-physics/rigid-body-ensemble-reset.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-reset.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-reset.js +42 -7
- package/dist/gpu-physics/rigid-body-ensemble-reset.js.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.cjs +23 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.d.ts +4 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.js +25 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.js.map +1 -1
- package/dist/gpu-physics/rigid-body-geometry.cjs +41 -4
- package/dist/gpu-physics/rigid-body-geometry.d.ts +10 -1
- package/dist/gpu-physics/rigid-body-geometry.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-geometry.js +44 -3
- package/dist/gpu-physics/rigid-body-geometry.js.map +1 -1
- package/dist/gpu-physics/rigid-body-height-field-shader.cjs +80 -0
- package/dist/gpu-physics/rigid-body-height-field-shader.d.ts +3 -0
- package/dist/gpu-physics/rigid-body-height-field-shader.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-height-field-shader.js +56 -0
- package/dist/gpu-physics/rigid-body-height-field-shader.js.map +1 -0
- package/dist/gpu-physics/rigid-body-height-field.cjs +166 -0
- package/dist/gpu-physics/rigid-body-height-field.d.ts +55 -0
- package/dist/gpu-physics/rigid-body-height-field.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-height-field.js +184 -0
- package/dist/gpu-physics/rigid-body-height-field.js.map +1 -0
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.cjs +4 -2
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.js +4 -2
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-mesh.cjs +72 -17
- package/dist/gpu-physics/rigid-body-mesh.d.ts +3 -0
- package/dist/gpu-physics/rigid-body-mesh.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-mesh.js +76 -20
- package/dist/gpu-physics/rigid-body-mesh.js.map +1 -1
- package/dist/gpu-physics/rigid-body-parallel-shaders.cjs +24 -9
- package/dist/gpu-physics/rigid-body-parallel-shaders.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-parallel-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-parallel-shaders.js +28 -9
- package/dist/gpu-physics/rigid-body-parallel-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-properties.cjs +4 -4
- package/dist/gpu-physics/rigid-body-properties.d.ts +6 -0
- package/dist/gpu-physics/rigid-body-properties.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-properties.js +1 -1
- package/dist/gpu-physics/rigid-body-properties.js.map +1 -1
- package/dist/gpu-physics/rigid-body-publication.cjs +2 -2
- package/dist/gpu-physics/rigid-body-publication.js +1 -1
- package/dist/gpu-physics/rigid-body-publication.js.map +1 -1
- package/dist/gpu-physics/rigid-body-query-geometry.cjs +22 -4
- package/dist/gpu-physics/rigid-body-query-geometry.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-query-geometry.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-query-geometry.js +22 -4
- package/dist/gpu-physics/rigid-body-query-geometry.js.map +1 -1
- package/dist/gpu-physics/rigid-body-shaders.cjs +12 -6
- package/dist/gpu-physics/rigid-body-shaders.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-shaders.js +15 -7
- package/dist/gpu-physics/rigid-body-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-shape-properties.cjs +2 -0
- package/dist/gpu-physics/rigid-body-shape-properties.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-shape-properties.js +2 -0
- package/dist/gpu-physics/rigid-body-shape-properties.js.map +1 -1
- package/dist/gpu-physics/rigid-body-terrain-atlas.cjs +287 -0
- package/dist/gpu-physics/rigid-body-terrain-atlas.d.ts +87 -0
- package/dist/gpu-physics/rigid-body-terrain-atlas.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-atlas.js +275 -0
- package/dist/gpu-physics/rigid-body-terrain-atlas.js.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-lod.cjs +240 -0
- package/dist/gpu-physics/rigid-body-terrain-lod.d.ts +76 -0
- package/dist/gpu-physics/rigid-body-terrain-lod.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-lod.js +247 -0
- package/dist/gpu-physics/rigid-body-terrain-lod.js.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-stitch.cjs +215 -0
- package/dist/gpu-physics/rigid-body-terrain-stitch.d.ts +25 -0
- package/dist/gpu-physics/rigid-body-terrain-stitch.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-stitch.js +218 -0
- package/dist/gpu-physics/rigid-body-terrain-stitch.js.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-stream.cjs +263 -0
- package/dist/gpu-physics/rigid-body-terrain-stream.d.ts +97 -0
- package/dist/gpu-physics/rigid-body-terrain-stream.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-stream.js +250 -0
- package/dist/gpu-physics/rigid-body-terrain-stream.js.map +1 -0
- package/dist/gpu-physics/rigid-body-triggers.cjs +1 -0
- package/dist/gpu-physics/rigid-body-triggers.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-triggers.js +1 -0
- package/dist/gpu-physics/rigid-body-triggers.js.map +1 -1
- package/dist/gpu-physics/rigid-body-vehicle.cjs +145 -0
- package/dist/gpu-physics/rigid-body-vehicle.d.ts +47 -0
- package/dist/gpu-physics/rigid-body-vehicle.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-vehicle.js +119 -0
- package/dist/gpu-physics/rigid-body-vehicle.js.map +1 -0
- package/dist/gpu-pointcloud/index.cjs.map +1 -1
- package/dist/gpu-project/benchmarks.cjs.map +2 -2
- package/dist/gpu-project/coordinate-projection-graph.cjs +59 -0
- package/dist/gpu-project/coordinate-projection-graph.d.ts +23 -0
- package/dist/gpu-project/coordinate-projection-graph.d.ts.map +1 -0
- package/dist/gpu-project/coordinate-projection-graph.js +40 -0
- package/dist/gpu-project/coordinate-projection-graph.js.map +1 -0
- package/dist/gpu-project/cpu-geoarrow.cjs +112 -0
- package/dist/gpu-project/cpu-geoarrow.d.ts +10 -0
- package/dist/gpu-project/cpu-geoarrow.d.ts.map +1 -0
- package/dist/gpu-project/cpu-geoarrow.js +103 -0
- package/dist/gpu-project/cpu-geoarrow.js.map +1 -0
- package/dist/gpu-project/cpu-geometry-pipelines.cjs +134 -0
- package/dist/gpu-project/cpu-geometry-pipelines.d.ts +19 -0
- package/dist/gpu-project/cpu-geometry-pipelines.d.ts.map +1 -0
- package/dist/gpu-project/cpu-geometry-pipelines.js +114 -0
- package/dist/gpu-project/cpu-geometry-pipelines.js.map +1 -0
- package/dist/gpu-project/cpu-projection-operation.cjs +54 -0
- package/dist/gpu-project/cpu-projection-operation.d.ts +14 -0
- package/dist/gpu-project/cpu-projection-operation.d.ts.map +1 -0
- package/dist/gpu-project/cpu-projection-operation.js +37 -0
- package/dist/gpu-project/cpu-projection-operation.js.map +1 -0
- package/dist/gpu-project/crs.cjs.map +3 -3
- package/dist/gpu-project/crs.d.ts +1 -1
- package/dist/gpu-project/geoarrow.cjs +36 -0
- package/dist/gpu-project/geoarrow.cjs.map +6 -0
- package/dist/gpu-project/geoarrow.d.ts +3 -0
- package/dist/gpu-project/geoarrow.d.ts.map +1 -0
- package/dist/gpu-project/geoarrow.js +7 -0
- package/dist/gpu-project/geoarrow.js.map +1 -0
- package/dist/gpu-project/graph.cjs +27 -0
- package/dist/gpu-project/graph.cjs.map +6 -0
- package/dist/gpu-project/graph.d.ts +2 -0
- package/dist/gpu-project/graph.d.ts.map +1 -0
- package/dist/gpu-project/graph.js +6 -0
- package/dist/gpu-project/graph.js.map +1 -0
- package/dist/gpu-project/index.cjs +3 -0
- package/dist/gpu-project/index.cjs.map +3 -3
- package/dist/gpu-project/index.d.ts +1 -0
- package/dist/gpu-project/index.d.ts.map +1 -1
- package/dist/gpu-project/index.js +1 -0
- package/dist/gpu-project/index.js.map +1 -1
- package/dist/gpu-project/projection-crs-benchmark.cjs +2 -2
- package/dist/gpu-project/projection-crs-benchmark.d.ts +1 -1
- package/dist/gpu-project/projection-crs-benchmark.js +1 -1
- package/dist/gpu-project/projection-crs-input.cjs +7 -7
- package/dist/gpu-project/projection-crs-input.d.ts +1 -1
- package/dist/gpu-project/projection-crs-input.js +4 -4
- package/dist/gpu-project/projection-engine.d.ts +2 -2
- package/dist/gpu-project-benchmarks.cjs +21 -0
- package/dist/gpu-project-benchmarks.d.ts +2 -0
- package/dist/gpu-project-benchmarks.d.ts.map +1 -0
- package/dist/gpu-project-benchmarks.js +5 -0
- package/dist/gpu-project-benchmarks.js.map +1 -0
- package/dist/gpu-project-crs.cjs +21 -0
- package/dist/gpu-project-crs.d.ts +2 -0
- package/dist/gpu-project-crs.d.ts.map +1 -0
- package/dist/gpu-project-crs.js +5 -0
- package/dist/gpu-project-crs.js.map +1 -0
- package/dist/gpu-project-geoarrow.cjs +21 -0
- package/dist/gpu-project-geoarrow.d.ts +2 -0
- package/dist/gpu-project-geoarrow.d.ts.map +1 -0
- package/dist/gpu-project-geoarrow.js +5 -0
- package/dist/gpu-project-geoarrow.js.map +1 -0
- package/dist/gpu-project-graph.cjs +21 -0
- package/dist/gpu-project-graph.d.ts +2 -0
- package/dist/gpu-project-graph.d.ts.map +1 -0
- package/dist/gpu-project-graph.js +5 -0
- package/dist/gpu-project-graph.js.map +1 -0
- package/dist/gpu-simple-graph/compiled-gpu-expression-graph.cjs +75 -5
- package/dist/gpu-simple-graph/compiled-gpu-expression-graph.d.ts +5 -1
- package/dist/gpu-simple-graph/compiled-gpu-expression-graph.d.ts.map +1 -1
- package/dist/gpu-simple-graph/compiled-gpu-expression-graph.js +86 -6
- package/dist/gpu-simple-graph/compiled-gpu-expression-graph.js.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.cjs +9 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.d.ts +2 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.d.ts.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.js +10 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.js.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-transfer.d.ts +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-transfer.d.ts.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-value.d.ts +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-value.d.ts.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph.cjs +126 -10
- package/dist/gpu-simple-graph/gpu-simple-graph.d.ts +36 -11
- package/dist/gpu-simple-graph/gpu-simple-graph.d.ts.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph.js +137 -12
- package/dist/gpu-simple-graph/gpu-simple-graph.js.map +1 -1
- package/dist/gpu-simple-graph/index.cjs.map +3 -3
- package/dist/gpu-simple-graph/index.d.ts +1 -1
- package/dist/gpu-simple-graph/index.d.ts.map +1 -1
- package/dist/gpu-simple-graph/index.js.map +1 -1
- package/dist/gpu-simple-graph/operation/gpu-data-evaluator.cjs +25 -0
- package/dist/gpu-simple-graph/operation/gpu-data-evaluator.d.ts +7 -1
- package/dist/gpu-simple-graph/operation/gpu-data-evaluator.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operation/gpu-data-evaluator.js +28 -0
- package/dist/gpu-simple-graph/operation/gpu-data-evaluator.js.map +1 -1
- package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.cjs +7 -0
- package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.d.ts +2 -0
- package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.js +7 -0
- package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.js.map +1 -1
- package/dist/gpu-simple-graph/operation/operation.d.ts +1 -1
- package/dist/gpu-simple-graph/operation/operation.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operations/convert-colors.cjs +6 -6
- package/dist/gpu-simple-graph/operations/convert-colors.d.ts +5 -1
- package/dist/gpu-simple-graph/operations/convert-colors.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operations/convert-colors.js +12 -7
- package/dist/gpu-simple-graph/operations/convert-colors.js.map +1 -1
- package/dist/gpu-simple-graph/operations/cpu/convert-colors.cjs +16 -33
- package/dist/gpu-simple-graph/operations/cpu/convert-colors.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operations/cpu/convert-colors.js +22 -35
- package/dist/gpu-simple-graph/operations/cpu/convert-colors.js.map +1 -1
- package/dist/gpu-simple-graph/operations/cpu/index.cjs.map +3 -3
- package/dist/gpu-simple-graph/operations/webgl/index.cjs.map +3 -3
- package/dist/gpu-simple-graph/operations/webgpu/convert-colors.cjs +31 -13
- package/dist/gpu-simple-graph/operations/webgpu/convert-colors.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operations/webgpu/convert-colors.js +42 -13
- package/dist/gpu-simple-graph/operations/webgpu/convert-colors.js.map +1 -1
- package/dist/gpu-simple-graph/operations/webgpu/index.cjs.map +1 -1
- package/dist/gpu-simple-graph-cpu.cjs +21 -0
- package/dist/gpu-simple-graph-cpu.d.ts +2 -0
- package/dist/gpu-simple-graph-cpu.d.ts.map +1 -0
- package/dist/gpu-simple-graph-cpu.js +5 -0
- package/dist/gpu-simple-graph-cpu.js.map +1 -0
- package/dist/gpu-simple-graph-webgl.cjs +21 -0
- package/dist/gpu-simple-graph-webgl.d.ts +2 -0
- package/dist/gpu-simple-graph-webgl.d.ts.map +1 -0
- package/dist/gpu-simple-graph-webgl.js +5 -0
- package/dist/gpu-simple-graph-webgl.js.map +1 -0
- package/dist/gpu-simple-graph-webgpu.cjs +21 -0
- package/dist/gpu-simple-graph-webgpu.d.ts +2 -0
- package/dist/gpu-simple-graph-webgpu.d.ts.map +1 -0
- package/dist/gpu-simple-graph-webgpu.js +5 -0
- package/dist/gpu-simple-graph-webgpu.js.map +1 -0
- package/dist/gpu-sql/gpu-sql.cjs +159 -328
- package/dist/gpu-sql/gpu-sql.d.ts +1 -1
- package/dist/gpu-sql/gpu-sql.d.ts.map +1 -1
- package/dist/gpu-sql/gpu-sql.js +186 -340
- package/dist/gpu-sql/gpu-sql.js.map +1 -1
- package/dist/gpu-sql/index.cjs.map +3 -3
- package/dist/gpu-tables/index.cjs.map +2 -2
- package/dist/gpu-tables/table/gpu-table.cjs +2 -2
- package/dist/gpu-tables/table/gpu-table.d.ts.map +1 -1
- package/dist/gpu-tables/table/gpu-table.js +2 -2
- package/dist/gpu-tables/table/gpu-table.js.map +1 -1
- package/dist/gpu-timeseries/index.cjs.map +1 -1
- package/dist/index.cjs +11 -0
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +30 -16
- package/src/arrow/arrow-colors.ts +194 -33
- package/src/arrow/arrow-utils/arrow-paths.ts +5 -3
- package/src/arrow/cpu/arrow-coordinate-projection.ts +18 -0
- package/src/arrow/cpu/arrow-cpu-pipelines.ts +9 -0
- package/src/arrow/cpu/arrow-cpu-vector-adapters.ts +153 -0
- package/src/arrow/geoarrow/arrow-geoarrow-adapter.ts +21 -493
- package/src/arrow/geoarrow/arrow-geoarrow-conversion.ts +7 -5
- package/src/arrow/geoarrow/arrow-polygon-tessellation.ts +1 -1
- package/src/arrow/gpu/arrow-column-gpu-vector.ts +67 -14
- package/src/arrow/gpu/arrow-gpu-table-conversion.ts +96 -4
- package/src/arrow/gpu/arrow-gpu-vector-adapters.ts +20 -7
- package/src/arrow/gpu/arrow-gpu-vector-conversion.ts +49 -6
- package/src/arrow/index.ts +14 -0
- package/src/experimental-models.ts +5 -0
- package/src/experimental-simulation.ts +5 -0
- package/src/geospatial/gpu-point-spatial-query.ts +2 -15
- package/src/gpu-core/compiled-gpu-graph.ts +73 -1
- package/src/gpu-core/gpu-command-graph-compiler.ts +25 -2
- package/src/gpu-core/gpu-command-graph-types.ts +20 -0
- package/src/gpu-core/gpu-command-graph.ts +48 -11
- package/src/gpu-core/gpu-cpu-execution.ts +345 -0
- package/src/gpu-core/gpu-cpu-operation.ts +65 -0
- package/src/gpu-core/gpu-dispatch-utils.ts +13 -1
- package/src/gpu-core/gpu-expression-operation.ts +1 -1
- package/src/gpu-core/gpu-expression-plan.ts +11 -3
- package/src/gpu-core/gpu-graph-compiler.ts +61 -0
- package/src/gpu-core/gpu-graph.ts +3 -3
- package/src/gpu-core/gpu-grid-aggregation.ts +2 -5
- package/src/gpu-core/gpu-grid-binning.ts +2 -5
- package/src/gpu-core/gpu-grid-coordinate.ts +24 -0
- package/src/gpu-core/gpu-grid-index-internals.ts +2 -15
- package/src/gpu-core/gpu-grid-index-query.ts +2 -16
- package/src/gpu-core/gpu-group-aggregation.ts +38 -50
- package/src/gpu-core/gpu-operation.ts +9 -7
- package/src/gpu-core/gpu-reduction.ts +32 -42
- package/src/gpu-core/gpu-render-operation.ts +42 -0
- package/src/gpu-core/gpu-scan.ts +59 -45
- package/src/gpu-core/gpu-segmented-reduction.ts +20 -10
- package/src/gpu-core/gpu-segmented-scan.ts +82 -17
- package/src/gpu-core/gpu-semantic-aggregation-operation.ts +150 -0
- package/src/gpu-core/gpu-shader-pass-kernel.ts +307 -0
- package/src/gpu-core/gpu-shader-pass-operation.ts +103 -0
- package/src/gpu-core/gpu-texture-plan.ts +3 -2
- package/src/gpu-core/index.ts +39 -0
- package/src/gpu-data/color-conversion.ts +158 -0
- package/src/gpu-data/cpu-data.ts +62 -0
- package/src/gpu-data/cpu-gpu-vector-transfer.ts +110 -0
- package/src/gpu-data/cpu-vector.ts +31 -0
- package/src/gpu-data/gpu-data-buffer-props.ts +25 -0
- package/src/gpu-data/gpu-vector-wgsl-layout.ts +79 -0
- package/src/gpu-data/index.ts +15 -0
- package/src/gpu-dataframe/gpu-data-frame-query.ts +24 -31
- package/src/gpu-dataframe/gpu-expression-shader.ts +128 -7
- package/src/gpu-dataframe/gpu-expression.ts +259 -1
- package/src/gpu-dataframe/gpu-global-aggregation-compiler.ts +0 -1
- package/src/gpu-dataframe/gpu-global-aggregation-query.ts +5 -3
- package/src/gpu-dataframe/gpu-global-sort-compiler.ts +26 -12
- package/src/gpu-dataframe/gpu-group-aggregation-compiler.ts +0 -1
- package/src/gpu-dataframe/gpu-group-by-query.ts +5 -3
- package/src/gpu-dataframe/gpu-histogram-compiler.ts +0 -1
- package/src/gpu-dataframe/gpu-join-compiler.ts +0 -2
- package/src/gpu-dataframe/gpu-query-compiler.ts +3 -3
- package/src/gpu-dataframe/gpu-sort-compiler.ts +0 -1
- package/src/gpu-dataframe/gpu-sort-query.ts +31 -5
- package/src/gpu-dataframe/index.ts +26 -2
- package/src/gpu-dataframe/portable-expression.ts +194 -0
- package/src/gpu-dggs-benchmarks.ts +5 -0
- package/src/gpu-graph/index.ts +17 -0
- package/src/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.ts +2 -15
- package/src/gpu-graph-algorithms-benchmarks.ts +5 -0
- package/src/gpu-physics/gpu-physics-ensemble-terrain.ts +114 -0
- package/src/gpu-physics/gpu-physics-ensemble.ts +147 -4
- package/src/gpu-physics/gpu-rigid-body-world.ts +797 -102
- package/src/gpu-physics/index.ts +38 -0
- package/src/gpu-physics/rigid-body-bounds-shaders.ts +16 -1
- package/src/gpu-physics/rigid-body-convex-shaders.ts +3 -2
- package/src/gpu-physics/rigid-body-ensemble-reset.ts +48 -8
- package/src/gpu-physics/rigid-body-ensemble-transaction.ts +34 -1
- package/src/gpu-physics/rigid-body-geometry.ts +49 -4
- package/src/gpu-physics/rigid-body-height-field-shader.ts +56 -0
- package/src/gpu-physics/rigid-body-height-field.ts +257 -0
- package/src/gpu-physics/rigid-body-mesh-query-shaders.ts +4 -2
- package/src/gpu-physics/rigid-body-mesh.ts +97 -26
- package/src/gpu-physics/rigid-body-parallel-shaders.ts +32 -9
- package/src/gpu-physics/rigid-body-properties.ts +5 -2
- package/src/gpu-physics/rigid-body-publication.ts +1 -1
- package/src/gpu-physics/rigid-body-query-geometry.ts +22 -4
- package/src/gpu-physics/rigid-body-shaders.ts +19 -7
- package/src/gpu-physics/rigid-body-shape-properties.ts +2 -0
- package/src/gpu-physics/rigid-body-terrain-atlas.ts +378 -0
- package/src/gpu-physics/rigid-body-terrain-lod.ts +332 -0
- package/src/gpu-physics/rigid-body-terrain-stitch.ts +286 -0
- package/src/gpu-physics/rigid-body-terrain-stream.ts +323 -0
- package/src/gpu-physics/rigid-body-triggers.ts +1 -0
- package/src/gpu-physics/rigid-body-vehicle.ts +166 -0
- package/src/gpu-project/README.md +2 -2
- package/src/gpu-project/coordinate-projection-graph.ts +59 -0
- package/src/gpu-project/cpu-geoarrow.ts +135 -0
- package/src/gpu-project/cpu-geometry-pipelines.ts +159 -0
- package/src/gpu-project/cpu-projection-operation.ts +49 -0
- package/src/gpu-project/crs.ts +2 -2
- package/src/gpu-project/geoarrow.ts +11 -0
- package/src/gpu-project/graph.ts +10 -0
- package/src/gpu-project/index.ts +2 -0
- package/src/gpu-project/projection-crs-benchmark.ts +2 -2
- package/src/gpu-project/projection-crs-input.ts +4 -4
- package/src/gpu-project/projection-engine.ts +2 -2
- package/src/gpu-project-benchmarks.ts +5 -0
- package/src/gpu-project-crs.ts +5 -0
- package/src/gpu-project-geoarrow.ts +5 -0
- package/src/gpu-project-graph.ts +5 -0
- package/src/gpu-simple-graph/compiled-gpu-expression-graph.ts +97 -6
- package/src/gpu-simple-graph/gpu-simple-graph-lowering.ts +11 -0
- package/src/gpu-simple-graph/gpu-simple-graph-transfer.ts +1 -1
- package/src/gpu-simple-graph/gpu-simple-graph-value.ts +1 -1
- package/src/gpu-simple-graph/gpu-simple-graph.ts +163 -19
- package/src/gpu-simple-graph/index.ts +1 -0
- package/src/gpu-simple-graph/operation/gpu-data-evaluator.ts +25 -1
- package/src/gpu-simple-graph/operation/gpu-vector-evaluator.ts +7 -0
- package/src/gpu-simple-graph/operation/operation.ts +1 -1
- package/src/gpu-simple-graph/operations/convert-colors.ts +22 -7
- package/src/gpu-simple-graph/operations/cpu/convert-colors.ts +31 -48
- package/src/gpu-simple-graph/operations/swizzle.ts +1 -1
- package/src/gpu-simple-graph/operations/webgpu/convert-colors.ts +47 -13
- package/src/gpu-simple-graph-cpu.ts +5 -0
- package/src/gpu-simple-graph-webgl.ts +5 -0
- package/src/gpu-simple-graph-webgpu.ts +5 -0
- package/src/gpu-sql/gpu-sql.ts +238 -354
- package/src/gpu-tables/table/gpu-table.ts +2 -1
- package/src/index.ts +21 -0
package/dist/gpu-sql/gpu-sql.cjs
CHANGED
|
@@ -21,12 +21,11 @@ __export(gpu_sql_exports, {
|
|
|
21
21
|
GPUSQLQuery: () => GPUSQLQuery
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(gpu_sql_exports);
|
|
24
|
+
var import_parser = require("@math.gl/sql/parser");
|
|
24
25
|
var import_gpu_data_frame = require("../gpu-dataframe/gpu-data-frame.cjs");
|
|
25
26
|
var import_gpu_data_frame_query = require("../gpu-dataframe/gpu-data-frame-query.cjs");
|
|
26
27
|
var import_gpu_expression = require("../gpu-dataframe/gpu-expression.cjs");
|
|
27
|
-
|
|
28
|
-
const MAXIMUM_SQL_TOKENS = 4096;
|
|
29
|
-
const MAXIMUM_EXPRESSION_DEPTH = 64;
|
|
28
|
+
var import_portable_expression = require("../gpu-dataframe/portable-expression.cjs");
|
|
30
29
|
class GPUSQLContext {
|
|
31
30
|
tables;
|
|
32
31
|
constructor(tables) {
|
|
@@ -45,9 +44,8 @@ class GPUSQLContext {
|
|
|
45
44
|
}
|
|
46
45
|
/** Parses and validates one immutable SELECT plan without touching registered GPU sources. */
|
|
47
46
|
query(source, options = {}) {
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
return new GPUSQLQuery(source, buildGPUSQLPlan(this.tables, statement));
|
|
47
|
+
const statement = parseGPUSQLStatement(source);
|
|
48
|
+
return new GPUSQLQuery(source, buildGPUSQLPlan(this.tables, statement, options.parameters ?? {}));
|
|
51
49
|
}
|
|
52
50
|
}
|
|
53
51
|
class GPUSQLQuery {
|
|
@@ -65,27 +63,28 @@ class GPUSQLQuery {
|
|
|
65
63
|
return this.plan.compile(graph);
|
|
66
64
|
}
|
|
67
65
|
}
|
|
68
|
-
function buildGPUSQLPlan(tables, statement) {
|
|
66
|
+
function buildGPUSQLPlan(tables, statement, parameters) {
|
|
69
67
|
const frame = tables[statement.table.toLowerCase()];
|
|
70
68
|
if (!frame)
|
|
71
69
|
throw new Error(`GPUSQL table "${statement.table}" is not registered`);
|
|
72
70
|
let query = new import_gpu_data_frame_query.GPUDataFrameQuery(frame, [], frame.columnNames);
|
|
73
71
|
const qualifier = statement.alias ?? statement.table;
|
|
74
|
-
const resolve = (
|
|
72
|
+
const resolve = (reference) => resolveGPUSQLColumn(reference, qualifier, frame.columnNames);
|
|
75
73
|
if (statement.predicate) {
|
|
76
|
-
query = query.filter(new import_gpu_expression.GPUExpression(
|
|
74
|
+
query = query.filter(new import_gpu_expression.GPUExpression(lowerSQLExpression(statement.predicate, parameters, resolve)));
|
|
77
75
|
}
|
|
78
76
|
const aggregates = statement.items.filter((item) => item.aggregate);
|
|
79
77
|
if (aggregates.length > 0) {
|
|
80
|
-
if (statement.join || statement.orderBy || statement.limit !== void 0) {
|
|
81
|
-
throw new Error("GPUSQL aggregate queries do not yet support joins, ordering, or
|
|
78
|
+
if (statement.join || statement.orderBy || statement.limit !== void 0 || statement.offset !== void 0) {
|
|
79
|
+
throw new Error("GPUSQL aggregate queries do not yet support joins, ordering, or pagination");
|
|
82
80
|
}
|
|
83
81
|
const definitions = {};
|
|
84
82
|
for (const item of aggregates) {
|
|
85
|
-
const
|
|
83
|
+
const inputColumn = item.aggregateColumn && resolve(item.aggregateColumn);
|
|
84
|
+
const name = item.alias ?? `${item.aggregate}_${inputColumn ?? "all"}`;
|
|
86
85
|
if (definitions[name])
|
|
87
86
|
throw new Error(`GPUSQL aggregate alias "${name}" is duplicated`);
|
|
88
|
-
definitions[name] = item.aggregate === "count" ? "count" : { [item.aggregate]:
|
|
87
|
+
definitions[name] = item.aggregate === "count" ? "count" : { [item.aggregate]: inputColumn };
|
|
89
88
|
}
|
|
90
89
|
if (statement.groupBy) {
|
|
91
90
|
const key = resolve(statement.groupBy);
|
|
@@ -110,7 +109,7 @@ function buildGPUSQLPlan(tables, statement) {
|
|
|
110
109
|
selected.push(...frame.columnNames);
|
|
111
110
|
continue;
|
|
112
111
|
}
|
|
113
|
-
const node =
|
|
112
|
+
const node = lowerSQLExpression(item.expression, parameters, resolve);
|
|
114
113
|
const name = item.alias ?? (node.kind === "column" ? node.name : void 0);
|
|
115
114
|
if (!name)
|
|
116
115
|
throw new Error("GPUSQL computed SELECT expressions require an explicit AS alias");
|
|
@@ -125,15 +124,20 @@ function buildGPUSQLPlan(tables, statement) {
|
|
|
125
124
|
selected.push(name);
|
|
126
125
|
}
|
|
127
126
|
if (statement.join) {
|
|
128
|
-
if (statement.orderBy || statement.limit !== void 0) {
|
|
129
|
-
throw new Error("GPUSQL joined results do not yet support ORDER BY or
|
|
127
|
+
if (statement.orderBy || statement.limit !== void 0 || statement.offset !== void 0) {
|
|
128
|
+
throw new Error("GPUSQL joined results do not yet support ORDER BY or pagination");
|
|
130
129
|
}
|
|
131
130
|
const right = tables[statement.join.table.toLowerCase()];
|
|
132
131
|
if (!right)
|
|
133
132
|
throw new Error(`GPUSQL table "${statement.join.table}" is not registered`);
|
|
134
|
-
const leftKey = resolve(statement.join.left);
|
|
135
133
|
const rightQualifier = statement.join.alias ?? statement.join.table;
|
|
136
|
-
const
|
|
134
|
+
const { left: firstOperand, right: secondOperand } = statement.join;
|
|
135
|
+
const matchesLeft = (reference) => matchesGPUSQLColumn(reference, qualifier, frame.columnNames);
|
|
136
|
+
const matchesRight = (reference) => matchesGPUSQLColumn(reference, rightQualifier, right.columnNames);
|
|
137
|
+
const forward = matchesLeft(firstOperand) && matchesRight(secondOperand);
|
|
138
|
+
const reversed = !forward && matchesLeft(secondOperand) && matchesRight(firstOperand);
|
|
139
|
+
const leftKey = resolve(reversed ? secondOperand : firstOperand);
|
|
140
|
+
const rightKey = resolveGPUSQLColumn(reversed ? firstOperand : secondOperand, rightQualifier, right.columnNames);
|
|
137
141
|
if (!selected.includes(leftKey)) {
|
|
138
142
|
throw new Error("GPUSQL joins require the left join key to remain selected");
|
|
139
143
|
}
|
|
@@ -151,345 +155,172 @@ function buildGPUSQLPlan(tables, statement) {
|
|
|
151
155
|
}
|
|
152
156
|
}
|
|
153
157
|
if (statement.orderBy) {
|
|
154
|
-
const
|
|
158
|
+
const { column: requested, direction, nulls } = statement.orderBy;
|
|
159
|
+
const orderColumn = requested.qualifier === void 0 && selected.includes(requested.name) ? requested.name : resolve(requested);
|
|
155
160
|
if (!selected.includes(orderColumn)) {
|
|
156
161
|
throw new Error("GPUSQL ORDER BY requires the sort column in the SELECT projection");
|
|
157
162
|
}
|
|
158
163
|
const sort = query.select(selected).sortByGlobal(orderColumn, {
|
|
159
|
-
direction
|
|
160
|
-
...
|
|
164
|
+
direction,
|
|
165
|
+
...nulls ? { nulls } : {}
|
|
161
166
|
});
|
|
162
|
-
return statement.limit === void 0 ? sort : sort.
|
|
163
|
-
}
|
|
164
|
-
if (statement.limit !== void 0)
|
|
165
|
-
throw new Error("GPUSQL LIMIT currently requires ORDER BY");
|
|
166
|
-
if (query.predicates.length === 0) {
|
|
167
|
-
const firstColumn = frame.columnNames[0];
|
|
168
|
-
if (!firstColumn)
|
|
169
|
-
throw new Error("GPUSQL SELECT requires at least one GPU source column");
|
|
170
|
-
query = query.filter((0, import_gpu_expression.column)(firstColumn).isValid().or((0, import_gpu_expression.column)(firstColumn).isNull()));
|
|
167
|
+
return statement.limit === void 0 && statement.offset === void 0 ? sort : sort.page(statement.offset ?? 0, statement.limit);
|
|
171
168
|
}
|
|
169
|
+
if (statement.limit !== void 0 || statement.offset !== void 0)
|
|
170
|
+
throw new Error("GPUSQL LIMIT or OFFSET currently requires ORDER BY");
|
|
172
171
|
return query.select(selected);
|
|
173
172
|
}
|
|
174
173
|
function resolveGPUSQLProjectionName(item, resolve) {
|
|
175
|
-
var _a;
|
|
176
|
-
if (((_a = item.expression) == null ? void 0 : _a.
|
|
174
|
+
var _a, _b;
|
|
175
|
+
if (((_a = item.expression) == null ? void 0 : _a.type) !== "Identifier" && ((_b = item.expression) == null ? void 0 : _b.type) !== "MemberExpression") {
|
|
177
176
|
throw new Error("GPUSQL grouped source expressions must reference the group key directly");
|
|
178
177
|
}
|
|
179
|
-
return resolve(item.expression
|
|
178
|
+
return resolve(readGPUSQLColumn(item.expression));
|
|
180
179
|
}
|
|
181
|
-
function
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
const requested = parts[parts.length - 1];
|
|
187
|
-
const matches = columns.filter((candidate) => candidate.toLowerCase() === requested.toLowerCase());
|
|
188
|
-
if (matches.length !== 1)
|
|
189
|
-
throw new Error(`GPUSQL column "${name}" does not exist`);
|
|
190
|
-
return matches[0];
|
|
180
|
+
function formatGPUSQLColumn({ name, qualifier }) {
|
|
181
|
+
return qualifier === void 0 ? name : qualifier + "." + name;
|
|
182
|
+
}
|
|
183
|
+
function matchesGPUSQLColumn(reference, qualifier, columns) {
|
|
184
|
+
return (reference.qualifier === void 0 || reference.qualifier.toLowerCase() === qualifier.toLowerCase()) && columns.includes(reference.name);
|
|
191
185
|
}
|
|
192
|
-
function
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
return { kind: "column", name: resolve(expression.name) };
|
|
196
|
-
case "unary":
|
|
197
|
-
return { ...expression, operand: resolveGPUSQLExpression(expression.operand, resolve) };
|
|
198
|
-
case "binary":
|
|
199
|
-
return {
|
|
200
|
-
...expression,
|
|
201
|
-
left: resolveGPUSQLExpression(expression.left, resolve),
|
|
202
|
-
right: resolveGPUSQLExpression(expression.right, resolve)
|
|
203
|
-
};
|
|
204
|
-
default:
|
|
205
|
-
return expression;
|
|
186
|
+
function resolveGPUSQLColumn(reference, qualifier, columns) {
|
|
187
|
+
if (reference.qualifier !== void 0 && reference.qualifier.toLowerCase() !== qualifier.toLowerCase()) {
|
|
188
|
+
throw new Error('GPUSQL column "' + formatGPUSQLColumn(reference) + '" has an unknown table qualifier');
|
|
206
189
|
}
|
|
190
|
+
if (!columns.includes(reference.name)) {
|
|
191
|
+
throw new Error('GPUSQL column "' + formatGPUSQLColumn(reference) + '" does not exist');
|
|
192
|
+
}
|
|
193
|
+
return reference.name;
|
|
207
194
|
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
195
|
+
function parseGPUSQLStatement(source) {
|
|
196
|
+
var _a, _b, _c, _d, _e;
|
|
197
|
+
const statement = (0, import_parser.parseSQLSelectStatement)(source, {
|
|
198
|
+
parseParameter: (name) => ({ type: "Identifier", name, gpuSQLParameter: true })
|
|
199
|
+
});
|
|
200
|
+
if (statement.offset !== void 0 && statement.offset > 4294967295) {
|
|
201
|
+
throw new Error("GPUSQL OFFSET must fit an unsigned 32-bit row count");
|
|
215
202
|
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
items.push(this.parseSelectItem());
|
|
221
|
-
} while (this.takeSymbol(","));
|
|
222
|
-
this.expectKeyword("FROM");
|
|
223
|
-
const table = this.parseIdentifier();
|
|
224
|
-
const alias = this.parseOptionalTableAlias();
|
|
225
|
-
const join = this.parseOptionalJoin();
|
|
226
|
-
const predicate = this.takeKeyword("WHERE") ? this.parseExpression(0) : void 0;
|
|
227
|
-
let groupBy;
|
|
228
|
-
if (this.takeKeyword("GROUP")) {
|
|
229
|
-
this.expectKeyword("BY");
|
|
230
|
-
groupBy = this.parseIdentifier();
|
|
231
|
-
if (this.takeSymbol(","))
|
|
232
|
-
throw new Error("GPUSQL currently supports one GROUP BY column");
|
|
233
|
-
}
|
|
234
|
-
let orderBy;
|
|
235
|
-
if (this.takeKeyword("ORDER")) {
|
|
236
|
-
this.expectKeyword("BY");
|
|
237
|
-
const sortColumn = this.parseIdentifier();
|
|
238
|
-
const direction = this.takeKeyword("DESC") ? "descending" : (this.takeKeyword("ASC"), "ascending");
|
|
239
|
-
let nulls;
|
|
240
|
-
if (this.takeKeyword("NULLS")) {
|
|
241
|
-
nulls = this.takeKeyword("FIRST") ? "first" : this.expectKeyword("LAST") && "last";
|
|
242
|
-
}
|
|
243
|
-
orderBy = { column: sortColumn, direction, ...nulls ? { nulls } : {} };
|
|
244
|
-
if (this.takeSymbol(","))
|
|
245
|
-
throw new Error("GPUSQL currently supports one ORDER BY column");
|
|
246
|
-
}
|
|
247
|
-
let limit;
|
|
248
|
-
if (this.takeKeyword("LIMIT")) {
|
|
249
|
-
const token = this.take();
|
|
250
|
-
if ((token == null ? void 0 : token.kind) !== "number" || !/^\d+$/.test(token.value)) {
|
|
251
|
-
throw new Error("GPUSQL LIMIT requires a nonnegative integer");
|
|
252
|
-
}
|
|
253
|
-
limit = Number(token.value);
|
|
254
|
-
if (!Number.isSafeInteger(limit) || limit > 4294967295) {
|
|
255
|
-
throw new Error("GPUSQL LIMIT must fit an unsigned 32-bit row count");
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
this.takeSymbol(";");
|
|
259
|
-
if (this.peek())
|
|
260
|
-
throw new Error(`GPUSQL does not support unexpected token "${this.peek().value}"`);
|
|
261
|
-
return {
|
|
262
|
-
items,
|
|
263
|
-
table,
|
|
264
|
-
...alias ? { alias } : {},
|
|
265
|
-
...join ? { join } : {},
|
|
266
|
-
...predicate ? { predicate } : {},
|
|
267
|
-
...groupBy ? { groupBy } : {},
|
|
268
|
-
...orderBy ? { orderBy } : {},
|
|
269
|
-
...limit !== void 0 ? { limit } : {}
|
|
270
|
-
};
|
|
203
|
+
if (statement.joins.length > 1)
|
|
204
|
+
throw new Error("GPUSQL currently supports one JOIN");
|
|
205
|
+
if ((((_a = statement.groupBy) == null ? void 0 : _a.length) ?? 0) > 1) {
|
|
206
|
+
throw new Error("GPUSQL currently supports one GROUP BY column");
|
|
271
207
|
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
if (this.takeSymbol("*"))
|
|
275
|
-
return { star: true };
|
|
276
|
-
const token = this.peek();
|
|
277
|
-
if ((token == null ? void 0 : token.kind) === "identifier" && /^(COUNT|SUM|MIN|MAX|AVG|MEAN)$/i.test(token.value) && ((_a = this.tokens[this.position + 1]) == null ? void 0 : _a.value) === "(") {
|
|
278
|
-
this.take();
|
|
279
|
-
this.expectSymbol("(");
|
|
280
|
-
const aggregate = token.value.toLowerCase();
|
|
281
|
-
const aggregateColumn = this.takeSymbol("*") ? void 0 : this.parseIdentifier();
|
|
282
|
-
this.expectSymbol(")");
|
|
283
|
-
if (!aggregateColumn && aggregate !== "count") {
|
|
284
|
-
throw new Error("GPUSQL only permits COUNT(*) as a wildcard aggregation");
|
|
285
|
-
}
|
|
286
|
-
if (aggregateColumn && aggregate === "count") {
|
|
287
|
-
throw new Error("GPUSQL currently supports COUNT(*) but not nullable COUNT(column)");
|
|
288
|
-
}
|
|
289
|
-
return {
|
|
290
|
-
aggregate: aggregate === "avg" ? "mean" : aggregate,
|
|
291
|
-
...aggregateColumn ? { aggregateColumn } : {},
|
|
292
|
-
...this.takeKeyword("AS") ? { alias: this.parseIdentifier() } : {}
|
|
293
|
-
};
|
|
294
|
-
}
|
|
295
|
-
const expression = this.parseExpression(0);
|
|
296
|
-
return {
|
|
297
|
-
...expression ? { expression } : {},
|
|
298
|
-
...this.takeKeyword("AS") ? { alias: this.parseIdentifier() } : {}
|
|
299
|
-
};
|
|
208
|
+
if ((((_b = statement.orderBy) == null ? void 0 : _b.length) ?? 0) > 1) {
|
|
209
|
+
throw new Error("GPUSQL currently supports one ORDER BY column");
|
|
300
210
|
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
if (this.takeKeyword("LEFT")) {
|
|
304
|
-
this.takeKeyword("OUTER");
|
|
305
|
-
type = "left";
|
|
306
|
-
} else if (this.takeKeyword("SEMI")) {
|
|
307
|
-
type = "semi";
|
|
308
|
-
} else if (this.takeKeyword("ANTI")) {
|
|
309
|
-
type = "anti";
|
|
310
|
-
} else {
|
|
311
|
-
this.takeKeyword("INNER");
|
|
312
|
-
}
|
|
313
|
-
if (!this.takeKeyword("JOIN")) {
|
|
314
|
-
if (type !== "inner")
|
|
315
|
-
throw new Error("GPUSQL join modifier must be followed by JOIN");
|
|
316
|
-
return void 0;
|
|
317
|
-
}
|
|
318
|
-
const table = this.parseIdentifier();
|
|
319
|
-
const alias = this.parseOptionalTableAlias();
|
|
320
|
-
this.expectKeyword("ON");
|
|
321
|
-
const left = this.parseIdentifier();
|
|
322
|
-
this.expectSymbol("=");
|
|
323
|
-
const right = this.parseIdentifier();
|
|
324
|
-
return { type, table, ...alias ? { alias } : {}, left, right };
|
|
211
|
+
if (statement.limit !== void 0 && statement.limit > 4294967295) {
|
|
212
|
+
throw new Error("GPUSQL LIMIT must fit an unsigned 32-bit row count");
|
|
325
213
|
}
|
|
326
|
-
|
|
327
|
-
if (
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
214
|
+
const items = ((_c = statement.select) == null ? void 0 : _c.map(({ expression, alias }) => {
|
|
215
|
+
if (expression.type === "CallExpression" && expression.callee.type === "Identifier") {
|
|
216
|
+
const name = String(expression.callee["name"]).toLowerCase();
|
|
217
|
+
const aggregate = name === "avg" ? "mean" : name;
|
|
218
|
+
switch (aggregate) {
|
|
219
|
+
case "count":
|
|
220
|
+
case "sum":
|
|
221
|
+
case "min":
|
|
222
|
+
case "max":
|
|
223
|
+
case "mean": {
|
|
224
|
+
if (expression.arguments.length !== 1) {
|
|
225
|
+
throw new Error("GPUSQL aggregates require one argument");
|
|
226
|
+
}
|
|
227
|
+
const argument = expression.arguments[0];
|
|
228
|
+
const wildcard = argument.type === "Identifier" && argument["sqlWildcard"] === true;
|
|
229
|
+
if (aggregate === "count" !== wildcard) {
|
|
230
|
+
throw new Error("GPUSQL only permits COUNT(*) as a wildcard aggregation");
|
|
231
|
+
}
|
|
232
|
+
return {
|
|
233
|
+
aggregate,
|
|
234
|
+
...wildcard ? {} : { aggregateColumn: readGPUSQLColumn(argument) },
|
|
235
|
+
alias
|
|
236
|
+
};
|
|
237
|
+
}
|
|
340
238
|
}
|
|
341
|
-
const token = this.peek();
|
|
342
|
-
const operation = token ? getGPUSQLBinaryOperator(token.value) : void 0;
|
|
343
|
-
if (!operation || operation.precedence < minimumPrecedence)
|
|
344
|
-
break;
|
|
345
|
-
this.take();
|
|
346
|
-
expression = {
|
|
347
|
-
kind: "binary",
|
|
348
|
-
operator: operation.operator,
|
|
349
|
-
left: expression,
|
|
350
|
-
right: this.parseExpression(depth + 1, operation.precedence + 1)
|
|
351
|
-
};
|
|
352
239
|
}
|
|
353
|
-
return expression;
|
|
240
|
+
return { expression, alias };
|
|
241
|
+
})) ?? [{ star: true }];
|
|
242
|
+
const join = statement.joins[0];
|
|
243
|
+
if (statement.from.inputTable !== void 0 || (join == null ? void 0 : join.table.inputTable) !== void 0) {
|
|
244
|
+
throw new Error("GPUSQL does not support table functions");
|
|
354
245
|
}
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
if (
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
const expression = this.parseExpression(depth + 1);
|
|
364
|
-
this.expectSymbol(")");
|
|
365
|
-
return expression;
|
|
246
|
+
let loweredJoin;
|
|
247
|
+
if (join) {
|
|
248
|
+
if (join.unnest)
|
|
249
|
+
throw new Error("GPUSQL does not support JOIN UNNEST");
|
|
250
|
+
if (join.type === "cross")
|
|
251
|
+
throw new Error("GPUSQL does not support CROSS JOIN");
|
|
252
|
+
if (join.on.type !== "BinaryExpression" || join.on.operator !== "==") {
|
|
253
|
+
throw new Error("GPUSQL JOIN requires equality between two columns");
|
|
366
254
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
return (0, import_gpu_expression.literal)(value).node;
|
|
375
|
-
}
|
|
376
|
-
if (token.kind === "parameter") {
|
|
377
|
-
if (!Object.hasOwn(this.parameters, token.value)) {
|
|
378
|
-
throw new Error(`GPUSQL parameter ":${token.value}" requires an explicit default`);
|
|
379
|
-
}
|
|
380
|
-
return (0, import_gpu_expression.parameter)(token.value, this.parameters[token.value]).node;
|
|
381
|
-
}
|
|
382
|
-
if (token.kind === "identifier") {
|
|
383
|
-
if (/^NULL$/i.test(token.value))
|
|
384
|
-
return (0, import_gpu_expression.literal)(null).node;
|
|
385
|
-
if (/^TRUE$/i.test(token.value))
|
|
386
|
-
return (0, import_gpu_expression.literal)(true).node;
|
|
387
|
-
if (/^FALSE$/i.test(token.value))
|
|
388
|
-
return (0, import_gpu_expression.literal)(false).node;
|
|
389
|
-
return (0, import_gpu_expression.column)(token.value).node;
|
|
390
|
-
}
|
|
391
|
-
throw new Error(`GPUSQL does not support expression token "${token.value}"`);
|
|
392
|
-
}
|
|
393
|
-
parseOptionalTableAlias() {
|
|
394
|
-
if (this.takeKeyword("AS"))
|
|
395
|
-
return this.parseIdentifier();
|
|
396
|
-
const token = this.peek();
|
|
397
|
-
return (token == null ? void 0 : token.kind) === "identifier" && !/^(WHERE|GROUP|ORDER|LIMIT|JOIN|INNER|LEFT|OUTER|SEMI|ANTI|ON)$/i.test(token.value) ? this.parseIdentifier() : void 0;
|
|
398
|
-
}
|
|
399
|
-
parseIdentifier() {
|
|
400
|
-
const token = this.take();
|
|
401
|
-
if ((token == null ? void 0 : token.kind) !== "identifier")
|
|
402
|
-
throw new Error("GPUSQL expected a table or column identifier");
|
|
403
|
-
return token.value;
|
|
404
|
-
}
|
|
405
|
-
expectKeyword(keyword) {
|
|
406
|
-
if (!this.takeKeyword(keyword))
|
|
407
|
-
throw new Error(`GPUSQL expected ${keyword}`);
|
|
408
|
-
return true;
|
|
409
|
-
}
|
|
410
|
-
takeKeyword(keyword) {
|
|
411
|
-
const token = this.peek();
|
|
412
|
-
if ((token == null ? void 0 : token.kind) !== "identifier" || token.value.toUpperCase() !== keyword)
|
|
413
|
-
return false;
|
|
414
|
-
this.position++;
|
|
415
|
-
return true;
|
|
416
|
-
}
|
|
417
|
-
expectSymbol(symbol) {
|
|
418
|
-
if (!this.takeSymbol(symbol))
|
|
419
|
-
throw new Error(`GPUSQL expected "${symbol}"`);
|
|
420
|
-
}
|
|
421
|
-
takeSymbol(symbol) {
|
|
422
|
-
const token = this.peek();
|
|
423
|
-
if ((token == null ? void 0 : token.kind) !== "symbol" || token.value !== symbol)
|
|
424
|
-
return false;
|
|
425
|
-
this.position++;
|
|
426
|
-
return true;
|
|
427
|
-
}
|
|
428
|
-
take() {
|
|
429
|
-
const token = this.tokens[this.position];
|
|
430
|
-
if (token)
|
|
431
|
-
this.position++;
|
|
432
|
-
return token;
|
|
433
|
-
}
|
|
434
|
-
peek() {
|
|
435
|
-
return this.tokens[this.position];
|
|
255
|
+
loweredJoin = {
|
|
256
|
+
type: join.type,
|
|
257
|
+
table: join.table.name,
|
|
258
|
+
alias: join.table.alias,
|
|
259
|
+
left: readGPUSQLColumn(join.on.left),
|
|
260
|
+
right: readGPUSQLColumn(join.on.right)
|
|
261
|
+
};
|
|
436
262
|
}
|
|
263
|
+
const sort = (_d = statement.orderBy) == null ? void 0 : _d[0];
|
|
264
|
+
return {
|
|
265
|
+
items,
|
|
266
|
+
table: statement.from.name,
|
|
267
|
+
alias: statement.from.alias,
|
|
268
|
+
join: loweredJoin,
|
|
269
|
+
predicate: statement.where,
|
|
270
|
+
groupBy: ((_e = statement.groupBy) == null ? void 0 : _e[0]) && readGPUSQLColumn(statement.groupBy[0]),
|
|
271
|
+
orderBy: sort && {
|
|
272
|
+
column: readGPUSQLColumn(sort.expression),
|
|
273
|
+
direction: sort.direction === "desc" ? "descending" : "ascending",
|
|
274
|
+
nulls: sort.nulls
|
|
275
|
+
},
|
|
276
|
+
offset: statement.offset,
|
|
277
|
+
limit: statement.limit
|
|
278
|
+
};
|
|
437
279
|
}
|
|
438
|
-
function
|
|
439
|
-
|
|
440
|
-
|
|
280
|
+
function readGPUSQLColumn(node) {
|
|
281
|
+
const expression = node;
|
|
282
|
+
if (expression.type === "Identifier" && !("gpuSQLParameter" in expression)) {
|
|
283
|
+
return { name: expression.name };
|
|
441
284
|
}
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
if (!match)
|
|
449
|
-
throw new Error(`GPUSQL contains an unsupported token at character ${cursor}`);
|
|
450
|
-
cursor = expression.lastIndex;
|
|
451
|
-
if (match[1])
|
|
452
|
-
tokens.push({ kind: "parameter", value: match[1] });
|
|
453
|
-
else if (match[2])
|
|
454
|
-
tokens.push({ kind: "identifier", value: match[2] });
|
|
455
|
-
else if (match[3])
|
|
456
|
-
tokens.push({ kind: "number", value: match[3] });
|
|
457
|
-
else if (match[4])
|
|
458
|
-
tokens.push({ kind: "symbol", value: match[4] });
|
|
459
|
-
if (tokens.length > MAXIMUM_SQL_TOKENS)
|
|
460
|
-
throw new Error("GPUSQL statement exceeds its safe token limit");
|
|
285
|
+
if (expression.type === "MemberExpression" && !expression.computed) {
|
|
286
|
+
const object = expression.object;
|
|
287
|
+
const property = expression.property;
|
|
288
|
+
if (object.type === "Identifier" && property.type === "Identifier" && !("gpuSQLParameter" in object) && !("gpuSQLParameter" in property)) {
|
|
289
|
+
return { qualifier: object.name, name: property.name };
|
|
290
|
+
}
|
|
461
291
|
}
|
|
462
|
-
|
|
292
|
+
throw new Error("GPUSQL expected a table or column identifier");
|
|
463
293
|
}
|
|
464
|
-
function
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
case "-":
|
|
486
|
-
return { operator: "subtract", precedence: 4 };
|
|
487
|
-
case "*":
|
|
488
|
-
return { operator: "multiply", precedence: 5 };
|
|
489
|
-
case "/":
|
|
490
|
-
return { operator: "divide", precedence: 5 };
|
|
491
|
-
default:
|
|
294
|
+
function lowerSQLExpression(node, parameters, resolve) {
|
|
295
|
+
const expression = node;
|
|
296
|
+
try {
|
|
297
|
+
return (0, import_portable_expression.lowerPortableExpression)(expression, (leaf) => {
|
|
298
|
+
if (leaf.type === "Identifier" && "gpuSQLParameter" in leaf) {
|
|
299
|
+
const name = leaf.name;
|
|
300
|
+
if (!Object.hasOwn(parameters, name)) {
|
|
301
|
+
throw new Error(`GPUSQL parameter ":${name}" requires an explicit default`);
|
|
302
|
+
}
|
|
303
|
+
return (0, import_gpu_expression.parameter)(name, parameters[name]).node;
|
|
304
|
+
}
|
|
305
|
+
if (leaf.type === "Identifier" || leaf.type === "MemberExpression") {
|
|
306
|
+
return (0, import_gpu_expression.column)(resolve(readGPUSQLColumn(leaf))).node;
|
|
307
|
+
}
|
|
308
|
+
if (leaf.type === "CallExpression" && leaf.callee.type === "Identifier") {
|
|
309
|
+
const name = leaf.callee["name"];
|
|
310
|
+
const functionName = typeof name === "string" && leaf["sqlFunction"] === true ? name.toLowerCase() : name;
|
|
311
|
+
if (name !== "isNull" && name !== "isNotNull" && name !== "in" && name !== "cast" && functionName !== "coalesce" && functionName !== "nullif" && !(0, import_gpu_expression.isGPUScalarFunction)(functionName)) {
|
|
312
|
+
throw new Error(`GPUSQL does not support SQL expression "${name}"`);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
492
315
|
return void 0;
|
|
316
|
+
});
|
|
317
|
+
} catch (error) {
|
|
318
|
+
if (error instanceof Error && error.message === "Unsupported portable GPU dataframe expression") {
|
|
319
|
+
throw new Error(`GPUSQL does not support SQL expression "${expression.type}"`, {
|
|
320
|
+
cause: error
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
throw error;
|
|
493
324
|
}
|
|
494
325
|
}
|
|
495
326
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -11,7 +11,7 @@ type GPUSQLCompiledPlan = Readonly<{
|
|
|
11
11
|
compile: (graph: GPUCommandGraph<GPUDataFrameQueryParameters>) => CompiledGPUDataFrameQuery;
|
|
12
12
|
}>;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* SQL frontend over explicitly registered, already GPU-resident dataframes.
|
|
15
15
|
*
|
|
16
16
|
* Parsing and planning never upload data, submit work, or read GPU buffers. Arrow upload/output
|
|
17
17
|
* remain explicit `@luma.gl/graph/arrow` operations around the shared GPU table execution core.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gpu-sql.d.ts","sourceRoot":"","sources":["../../src/gpu-sql/gpu-sql.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gpu-sql.d.ts","sourceRoot":"","sources":["../../src/gpu-sql/gpu-sql.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAC,YAAY,EAAC,2CAAwC;AAW7D,OAAO,KAAK,EACV,yBAAyB,EACzB,2BAA2B,EAC5B,+CAA4C;AAE7C,2FAA2F;AAC3F,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC;AAElE,iGAAiG;AACjG,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC;IAAC,UAAU,CAAC,EAAE,2BAA2B,CAAA;CAAC,CAAC,CAAC;AAkCtF,KAAK,kBAAkB,GAAG,QAAQ,CAAC;IACjC,OAAO,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,2BAA2B,CAAC,KAAK,yBAAyB,CAAC;CAC7F,CAAC,CAAC;AAgCH;;;;;GAKG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyC;gBAEpD,MAAM,EAAE,YAAY;IAchC,8FAA8F;IAC9F,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,GAAE,kBAAuB,GAAG,WAAW;CAOrE;AAED,+FAA+F;AAC/F,qBAAa,WAAW;IACtB,2FAA2F;IAC3F,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAqB;IAE1C,gBAAgB;gBACJ,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB;IAMjD,sFAAsF;IACtF,OAAO,CAAC,KAAK,EAAE,eAAe,CAAC,2BAA2B,CAAC,GAAG,yBAAyB;CAGxF"}
|