@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/src/gpu-sql/gpu-sql.ts
CHANGED
|
@@ -3,40 +3,38 @@
|
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
4
|
// SPDX-FileComment: Independently implemented for WebGPU; inspired by relational SQL semantics.
|
|
5
5
|
|
|
6
|
+
import {parseSQLSelectStatement} from '@math.gl/sql/parser';
|
|
7
|
+
import type {Expression} from '@math.gl/sql/expressions';
|
|
6
8
|
import type {GPUCommandGraph} from '@luma.gl/graph/gpu-core';
|
|
7
9
|
import {GPUDataFrame} from '../gpu-dataframe/gpu-data-frame';
|
|
8
10
|
import {GPUDataFrameQuery} from '../gpu-dataframe/gpu-data-frame-query';
|
|
9
11
|
import {
|
|
10
12
|
GPUExpression,
|
|
11
13
|
column,
|
|
12
|
-
|
|
14
|
+
isGPUScalarFunction,
|
|
13
15
|
parameter,
|
|
14
16
|
type GPUExpressionNode
|
|
15
17
|
} from '../gpu-dataframe/gpu-expression';
|
|
18
|
+
import {lowerPortableExpression} from '../gpu-dataframe/portable-expression';
|
|
16
19
|
import type {GPUDataFrameJoinType} from '../gpu-dataframe/gpu-join-query';
|
|
17
20
|
import type {
|
|
18
21
|
CompiledGPUDataFrameQuery,
|
|
19
22
|
GPUDataFrameQueryParameters
|
|
20
23
|
} from '../gpu-dataframe/gpu-query-compiler';
|
|
21
24
|
|
|
22
|
-
const MAXIMUM_SQL_LENGTH = 65_536;
|
|
23
|
-
const MAXIMUM_SQL_TOKENS = 4_096;
|
|
24
|
-
const MAXIMUM_EXPRESSION_DEPTH = 64;
|
|
25
|
-
|
|
26
25
|
/** Explicit GPU dataframe registrations; Arrow remains exclusively an adapter boundary. */
|
|
27
26
|
export type GPUSQLTables = Readonly<Record<string, GPUDataFrame>>;
|
|
28
27
|
|
|
29
28
|
/** Defaults for named SQL parameters such as `:minimumFare`; values remain caller-controlled. */
|
|
30
29
|
export type GPUSQLQueryOptions = Readonly<{parameters?: GPUDataFrameQueryParameters}>;
|
|
31
30
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}>;
|
|
31
|
+
/** A source column name with its optional, separately parsed table qualifier. */
|
|
32
|
+
type GPUSQLColumnReference = Readonly<{name: string; qualifier?: string}>;
|
|
33
|
+
|
|
36
34
|
type GPUSQLSelectItem = Readonly<{
|
|
37
|
-
expression?:
|
|
35
|
+
expression?: Expression;
|
|
38
36
|
aggregate?: 'count' | 'sum' | 'min' | 'max' | 'mean';
|
|
39
|
-
aggregateColumn?:
|
|
37
|
+
aggregateColumn?: GPUSQLColumnReference;
|
|
40
38
|
alias?: string;
|
|
41
39
|
star?: boolean;
|
|
42
40
|
}>;
|
|
@@ -48,17 +46,18 @@ type GPUSQLStatement = Readonly<{
|
|
|
48
46
|
type: GPUDataFrameJoinType;
|
|
49
47
|
table: string;
|
|
50
48
|
alias?: string;
|
|
51
|
-
left:
|
|
52
|
-
right:
|
|
49
|
+
left: GPUSQLColumnReference;
|
|
50
|
+
right: GPUSQLColumnReference;
|
|
53
51
|
}>;
|
|
54
|
-
predicate?:
|
|
55
|
-
groupBy?:
|
|
52
|
+
predicate?: Expression;
|
|
53
|
+
groupBy?: GPUSQLColumnReference;
|
|
56
54
|
orderBy?: Readonly<{
|
|
57
|
-
column:
|
|
55
|
+
column: GPUSQLColumnReference;
|
|
58
56
|
direction: 'ascending' | 'descending';
|
|
59
57
|
nulls?: 'first' | 'last';
|
|
60
58
|
}>;
|
|
61
59
|
limit?: number;
|
|
60
|
+
offset?: number;
|
|
62
61
|
}>;
|
|
63
62
|
|
|
64
63
|
type GPUSQLCompiledPlan = Readonly<{
|
|
@@ -72,7 +71,6 @@ type GPUSQLAggregationDefinitions = Record<
|
|
|
72
71
|
|
|
73
72
|
/** Runtime-validated SQL names cross the strongly typed dataframe boundary exactly once. */
|
|
74
73
|
type GPUSQLDynamicQuery = GPUSQLCompiledPlan & {
|
|
75
|
-
predicates: readonly GPUExpression<boolean, string>[];
|
|
76
74
|
filter: (predicate: GPUExpression<boolean, string>) => GPUSQLDynamicQuery;
|
|
77
75
|
select: (names: readonly string[]) => GPUSQLDynamicQuery;
|
|
78
76
|
withColumn: (
|
|
@@ -86,7 +84,7 @@ type GPUSQLDynamicQuery = GPUSQLCompiledPlan & {
|
|
|
86
84
|
sortByGlobal: (
|
|
87
85
|
name: string,
|
|
88
86
|
options: {direction: 'ascending' | 'descending'; nulls?: 'first' | 'last'}
|
|
89
|
-
) => GPUSQLCompiledPlan & {
|
|
87
|
+
) => GPUSQLCompiledPlan & {page: (offset: number, limit?: number) => GPUSQLCompiledPlan};
|
|
90
88
|
innerJoin: (
|
|
91
89
|
right: GPUDataFrame,
|
|
92
90
|
options: {leftOn: string; rightOn: string}
|
|
@@ -97,7 +95,7 @@ type GPUSQLDynamicQuery = GPUSQLCompiledPlan & {
|
|
|
97
95
|
};
|
|
98
96
|
|
|
99
97
|
/**
|
|
100
|
-
*
|
|
98
|
+
* SQL frontend over explicitly registered, already GPU-resident dataframes.
|
|
101
99
|
*
|
|
102
100
|
* Parsing and planning never upload data, submit work, or read GPU buffers. Arrow upload/output
|
|
103
101
|
* remain explicit `@luma.gl/graph/arrow` operations around the shared GPU table execution core.
|
|
@@ -121,9 +119,11 @@ export class GPUSQLContext {
|
|
|
121
119
|
|
|
122
120
|
/** Parses and validates one immutable SELECT plan without touching registered GPU sources. */
|
|
123
121
|
query(source: string, options: GPUSQLQueryOptions = {}): GPUSQLQuery {
|
|
124
|
-
const
|
|
125
|
-
|
|
126
|
-
|
|
122
|
+
const statement = parseGPUSQLStatement(source);
|
|
123
|
+
return new GPUSQLQuery(
|
|
124
|
+
source,
|
|
125
|
+
buildGPUSQLPlan(this.tables, statement, options.parameters ?? {})
|
|
126
|
+
);
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
|
|
@@ -148,32 +148,42 @@ export class GPUSQLQuery {
|
|
|
148
148
|
|
|
149
149
|
function buildGPUSQLPlan(
|
|
150
150
|
tables: Readonly<Record<string, GPUDataFrame>>,
|
|
151
|
-
statement: GPUSQLStatement
|
|
151
|
+
statement: GPUSQLStatement,
|
|
152
|
+
parameters: GPUDataFrameQueryParameters
|
|
152
153
|
): GPUSQLCompiledPlan {
|
|
153
154
|
const frame = tables[statement.table.toLowerCase()];
|
|
154
155
|
if (!frame) throw new Error(`GPUSQL table "${statement.table}" is not registered`);
|
|
155
156
|
let query = new GPUDataFrameQuery(frame, [], frame.columnNames) as unknown as GPUSQLDynamicQuery;
|
|
156
157
|
const qualifier = statement.alias ?? statement.table;
|
|
157
|
-
const resolve = (
|
|
158
|
+
const resolve = (reference: GPUSQLColumnReference): string =>
|
|
159
|
+
resolveGPUSQLColumn(reference, qualifier, frame.columnNames);
|
|
158
160
|
if (statement.predicate) {
|
|
159
161
|
query = query.filter(
|
|
160
|
-
new GPUExpression<boolean, string>(
|
|
162
|
+
new GPUExpression<boolean, string>(
|
|
163
|
+
lowerSQLExpression(statement.predicate, parameters, resolve)
|
|
164
|
+
)
|
|
161
165
|
);
|
|
162
166
|
}
|
|
163
167
|
|
|
164
168
|
const aggregates = statement.items.filter(item => item.aggregate);
|
|
165
169
|
if (aggregates.length > 0) {
|
|
166
|
-
if (
|
|
167
|
-
|
|
170
|
+
if (
|
|
171
|
+
statement.join ||
|
|
172
|
+
statement.orderBy ||
|
|
173
|
+
statement.limit !== undefined ||
|
|
174
|
+
statement.offset !== undefined
|
|
175
|
+
) {
|
|
176
|
+
throw new Error('GPUSQL aggregate queries do not yet support joins, ordering, or pagination');
|
|
168
177
|
}
|
|
169
178
|
const definitions: GPUSQLAggregationDefinitions = {};
|
|
170
179
|
for (const item of aggregates) {
|
|
171
|
-
const
|
|
180
|
+
const inputColumn = item.aggregateColumn && resolve(item.aggregateColumn);
|
|
181
|
+
const name = item.alias ?? `${item.aggregate}_${inputColumn ?? 'all'}`;
|
|
172
182
|
if (definitions[name]) throw new Error(`GPUSQL aggregate alias "${name}" is duplicated`);
|
|
173
183
|
definitions[name] =
|
|
174
184
|
item.aggregate === 'count'
|
|
175
185
|
? 'count'
|
|
176
|
-
: ({[item.aggregate!]:
|
|
186
|
+
: ({[item.aggregate!]: inputColumn!} as
|
|
177
187
|
| {sum: string}
|
|
178
188
|
| {min: string}
|
|
179
189
|
| {max: string}
|
|
@@ -205,7 +215,7 @@ function buildGPUSQLPlan(
|
|
|
205
215
|
selected.push(...frame.columnNames);
|
|
206
216
|
continue;
|
|
207
217
|
}
|
|
208
|
-
const node =
|
|
218
|
+
const node = lowerSQLExpression(item.expression!, parameters, resolve);
|
|
209
219
|
const name = item.alias ?? (node.kind === 'column' ? node.name : undefined);
|
|
210
220
|
if (!name) throw new Error('GPUSQL computed SELECT expressions require an explicit AS alias');
|
|
211
221
|
if (selected.includes(name)) throw new Error(`GPUSQL output column "${name}" is duplicated`);
|
|
@@ -219,14 +229,25 @@ function buildGPUSQLPlan(
|
|
|
219
229
|
}
|
|
220
230
|
|
|
221
231
|
if (statement.join) {
|
|
222
|
-
if (statement.orderBy || statement.limit !== undefined) {
|
|
223
|
-
throw new Error('GPUSQL joined results do not yet support ORDER BY or
|
|
232
|
+
if (statement.orderBy || statement.limit !== undefined || statement.offset !== undefined) {
|
|
233
|
+
throw new Error('GPUSQL joined results do not yet support ORDER BY or pagination');
|
|
224
234
|
}
|
|
225
235
|
const right = tables[statement.join.table.toLowerCase()];
|
|
226
236
|
if (!right) throw new Error(`GPUSQL table "${statement.join.table}" is not registered`);
|
|
227
|
-
const leftKey = resolve(statement.join.left);
|
|
228
237
|
const rightQualifier = statement.join.alias ?? statement.join.table;
|
|
229
|
-
const
|
|
238
|
+
const {left: firstOperand, right: secondOperand} = statement.join;
|
|
239
|
+
const matchesLeft = (reference: GPUSQLColumnReference) =>
|
|
240
|
+
matchesGPUSQLColumn(reference, qualifier, frame.columnNames);
|
|
241
|
+
const matchesRight = (reference: GPUSQLColumnReference) =>
|
|
242
|
+
matchesGPUSQLColumn(reference, rightQualifier, right.columnNames);
|
|
243
|
+
const forward = matchesLeft(firstOperand) && matchesRight(secondOperand);
|
|
244
|
+
const reversed = !forward && matchesLeft(secondOperand) && matchesRight(firstOperand);
|
|
245
|
+
const leftKey = resolve(reversed ? secondOperand : firstOperand);
|
|
246
|
+
const rightKey = resolveGPUSQLColumn(
|
|
247
|
+
reversed ? firstOperand : secondOperand,
|
|
248
|
+
rightQualifier,
|
|
249
|
+
right.columnNames
|
|
250
|
+
);
|
|
230
251
|
if (!selected.includes(leftKey)) {
|
|
231
252
|
throw new Error('GPUSQL joins require the left join key to remain selected');
|
|
232
253
|
}
|
|
@@ -245,364 +266,227 @@ function buildGPUSQLPlan(
|
|
|
245
266
|
}
|
|
246
267
|
|
|
247
268
|
if (statement.orderBy) {
|
|
269
|
+
const {column: requested, direction, nulls} = statement.orderBy;
|
|
248
270
|
const orderColumn =
|
|
249
|
-
|
|
250
|
-
|
|
271
|
+
requested.qualifier === undefined && selected.includes(requested.name)
|
|
272
|
+
? requested.name
|
|
273
|
+
: resolve(requested);
|
|
251
274
|
if (!selected.includes(orderColumn)) {
|
|
252
275
|
throw new Error('GPUSQL ORDER BY requires the sort column in the SELECT projection');
|
|
253
276
|
}
|
|
254
277
|
const sort = query.select(selected).sortByGlobal(orderColumn, {
|
|
255
|
-
direction
|
|
256
|
-
...(
|
|
278
|
+
direction,
|
|
279
|
+
...(nulls ? {nulls} : {})
|
|
257
280
|
});
|
|
258
|
-
return statement.limit === undefined
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
if (query.predicates.length === 0) {
|
|
262
|
-
const firstColumn = frame.columnNames[0];
|
|
263
|
-
if (!firstColumn) throw new Error('GPUSQL SELECT requires at least one GPU source column');
|
|
264
|
-
query = query.filter(column(firstColumn).isValid().or(column(firstColumn).isNull()));
|
|
281
|
+
return statement.limit === undefined && statement.offset === undefined
|
|
282
|
+
? sort
|
|
283
|
+
: sort.page(statement.offset ?? 0, statement.limit);
|
|
265
284
|
}
|
|
285
|
+
if (statement.limit !== undefined || statement.offset !== undefined)
|
|
286
|
+
throw new Error('GPUSQL LIMIT or OFFSET currently requires ORDER BY');
|
|
266
287
|
return query.select(selected);
|
|
267
288
|
}
|
|
268
289
|
|
|
290
|
+
/** Resolves the only non-aggregate item in a grouped projection. */
|
|
269
291
|
function resolveGPUSQLProjectionName(
|
|
270
292
|
item: GPUSQLSelectItem,
|
|
271
|
-
resolve: (
|
|
293
|
+
resolve: (reference: GPUSQLColumnReference) => string
|
|
272
294
|
): string {
|
|
273
|
-
if (item.expression?.
|
|
295
|
+
if (item.expression?.type !== 'Identifier' && item.expression?.type !== 'MemberExpression') {
|
|
274
296
|
throw new Error('GPUSQL grouped source expressions must reference the group key directly');
|
|
275
297
|
}
|
|
276
|
-
return resolve(item.expression
|
|
298
|
+
return resolve(readGPUSQLColumn(item.expression));
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/** Formats the source spelling for diagnostics. */
|
|
302
|
+
function formatGPUSQLColumn({name, qualifier}: GPUSQLColumnReference): string {
|
|
303
|
+
return qualifier === undefined ? name : qualifier + '.' + name;
|
|
277
304
|
}
|
|
278
305
|
|
|
279
|
-
|
|
280
|
-
|
|
306
|
+
/** Checks whether a join operand can bind to one side of the join. */
|
|
307
|
+
function matchesGPUSQLColumn(
|
|
308
|
+
reference: GPUSQLColumnReference,
|
|
309
|
+
qualifier: string,
|
|
310
|
+
columns: readonly string[]
|
|
311
|
+
): boolean {
|
|
312
|
+
return (
|
|
313
|
+
(reference.qualifier === undefined ||
|
|
314
|
+
reference.qualifier.toLowerCase() === qualifier.toLowerCase()) &&
|
|
315
|
+
columns.includes(reference.name)
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/** Binds a parsed reference to an exact dataframe field. */
|
|
320
|
+
function resolveGPUSQLColumn(
|
|
321
|
+
reference: GPUSQLColumnReference,
|
|
322
|
+
qualifier: string,
|
|
323
|
+
columns: readonly string[]
|
|
324
|
+
): string {
|
|
281
325
|
if (
|
|
282
|
-
|
|
283
|
-
|
|
326
|
+
reference.qualifier !== undefined &&
|
|
327
|
+
reference.qualifier.toLowerCase() !== qualifier.toLowerCase()
|
|
284
328
|
) {
|
|
285
|
-
throw new Error(
|
|
329
|
+
throw new Error(
|
|
330
|
+
'GPUSQL column "' + formatGPUSQLColumn(reference) + '" has an unknown table qualifier'
|
|
331
|
+
);
|
|
286
332
|
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
if (matches.length !== 1) throw new Error(`GPUSQL column "${name}" does not exist`);
|
|
290
|
-
return matches[0];
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
function resolveGPUSQLExpression(
|
|
294
|
-
expression: GPUExpressionNode,
|
|
295
|
-
resolve: (name: string) => string
|
|
296
|
-
): GPUExpressionNode {
|
|
297
|
-
switch (expression.kind) {
|
|
298
|
-
case 'column':
|
|
299
|
-
return {kind: 'column', name: resolve(expression.name)};
|
|
300
|
-
case 'unary':
|
|
301
|
-
return {...expression, operand: resolveGPUSQLExpression(expression.operand, resolve)};
|
|
302
|
-
case 'binary':
|
|
303
|
-
return {
|
|
304
|
-
...expression,
|
|
305
|
-
left: resolveGPUSQLExpression(expression.left, resolve),
|
|
306
|
-
right: resolveGPUSQLExpression(expression.right, resolve)
|
|
307
|
-
};
|
|
308
|
-
default:
|
|
309
|
-
return expression;
|
|
333
|
+
if (!columns.includes(reference.name)) {
|
|
334
|
+
throw new Error('GPUSQL column "' + formatGPUSQLColumn(reference) + '" does not exist');
|
|
310
335
|
}
|
|
336
|
+
return reference.name;
|
|
311
337
|
}
|
|
312
338
|
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
this.parameters = parameters;
|
|
339
|
+
/** Parses the SQL subset supported by the GPU relational planner. */
|
|
340
|
+
function parseGPUSQLStatement(source: string): GPUSQLStatement {
|
|
341
|
+
const statement = parseSQLSelectStatement(source, {
|
|
342
|
+
parseParameter: name => ({type: 'Identifier', name, gpuSQLParameter: true})
|
|
343
|
+
});
|
|
344
|
+
if (statement.offset !== undefined && statement.offset > 0xffffffff) {
|
|
345
|
+
throw new Error('GPUSQL OFFSET must fit an unsigned 32-bit row count');
|
|
321
346
|
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
const items: GPUSQLSelectItem[] = [];
|
|
326
|
-
do {
|
|
327
|
-
items.push(this.parseSelectItem());
|
|
328
|
-
} while (this.takeSymbol(','));
|
|
329
|
-
this.expectKeyword('FROM');
|
|
330
|
-
const table = this.parseIdentifier();
|
|
331
|
-
const alias = this.parseOptionalTableAlias();
|
|
332
|
-
const join = this.parseOptionalJoin();
|
|
333
|
-
const predicate = this.takeKeyword('WHERE') ? this.parseExpression(0) : undefined;
|
|
334
|
-
let groupBy: string | undefined;
|
|
335
|
-
if (this.takeKeyword('GROUP')) {
|
|
336
|
-
this.expectKeyword('BY');
|
|
337
|
-
groupBy = this.parseIdentifier();
|
|
338
|
-
if (this.takeSymbol(',')) throw new Error('GPUSQL currently supports one GROUP BY column');
|
|
339
|
-
}
|
|
340
|
-
let orderBy: GPUSQLStatement['orderBy'];
|
|
341
|
-
if (this.takeKeyword('ORDER')) {
|
|
342
|
-
this.expectKeyword('BY');
|
|
343
|
-
const sortColumn = this.parseIdentifier();
|
|
344
|
-
const direction = this.takeKeyword('DESC')
|
|
345
|
-
? 'descending'
|
|
346
|
-
: (this.takeKeyword('ASC'), 'ascending');
|
|
347
|
-
let nulls: 'first' | 'last' | undefined;
|
|
348
|
-
if (this.takeKeyword('NULLS')) {
|
|
349
|
-
nulls = this.takeKeyword('FIRST') ? 'first' : this.expectKeyword('LAST') && 'last';
|
|
350
|
-
}
|
|
351
|
-
orderBy = {column: sortColumn, direction, ...(nulls ? {nulls} : {})};
|
|
352
|
-
if (this.takeSymbol(',')) throw new Error('GPUSQL currently supports one ORDER BY column');
|
|
353
|
-
}
|
|
354
|
-
let limit: number | undefined;
|
|
355
|
-
if (this.takeKeyword('LIMIT')) {
|
|
356
|
-
const token = this.take();
|
|
357
|
-
if (token?.kind !== 'number' || !/^\d+$/.test(token.value)) {
|
|
358
|
-
throw new Error('GPUSQL LIMIT requires a nonnegative integer');
|
|
359
|
-
}
|
|
360
|
-
limit = Number(token.value);
|
|
361
|
-
if (!Number.isSafeInteger(limit) || limit > 0xffffffff) {
|
|
362
|
-
throw new Error('GPUSQL LIMIT must fit an unsigned 32-bit row count');
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
this.takeSymbol(';');
|
|
366
|
-
if (this.peek())
|
|
367
|
-
throw new Error(`GPUSQL does not support unexpected token "${this.peek()!.value}"`);
|
|
368
|
-
return {
|
|
369
|
-
items,
|
|
370
|
-
table,
|
|
371
|
-
...(alias ? {alias} : {}),
|
|
372
|
-
...(join ? {join} : {}),
|
|
373
|
-
...(predicate ? {predicate} : {}),
|
|
374
|
-
...(groupBy ? {groupBy} : {}),
|
|
375
|
-
...(orderBy ? {orderBy} : {}),
|
|
376
|
-
...(limit !== undefined ? {limit} : {})
|
|
377
|
-
};
|
|
347
|
+
if (statement.joins.length > 1) throw new Error('GPUSQL currently supports one JOIN');
|
|
348
|
+
if ((statement.groupBy?.length ?? 0) > 1) {
|
|
349
|
+
throw new Error('GPUSQL currently supports one GROUP BY column');
|
|
378
350
|
}
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
if (this.takeSymbol('*')) return {star: true};
|
|
382
|
-
const token = this.peek();
|
|
383
|
-
if (
|
|
384
|
-
token?.kind === 'identifier' &&
|
|
385
|
-
/^(COUNT|SUM|MIN|MAX|AVG|MEAN)$/i.test(token.value) &&
|
|
386
|
-
this.tokens[this.position + 1]?.value === '('
|
|
387
|
-
) {
|
|
388
|
-
this.take();
|
|
389
|
-
this.expectSymbol('(');
|
|
390
|
-
const aggregate = token.value.toLowerCase();
|
|
391
|
-
const aggregateColumn = this.takeSymbol('*') ? undefined : this.parseIdentifier();
|
|
392
|
-
this.expectSymbol(')');
|
|
393
|
-
if (!aggregateColumn && aggregate !== 'count') {
|
|
394
|
-
throw new Error('GPUSQL only permits COUNT(*) as a wildcard aggregation');
|
|
395
|
-
}
|
|
396
|
-
if (aggregateColumn && aggregate === 'count') {
|
|
397
|
-
throw new Error('GPUSQL currently supports COUNT(*) but not nullable COUNT(column)');
|
|
398
|
-
}
|
|
399
|
-
return {
|
|
400
|
-
aggregate: aggregate === 'avg' ? 'mean' : (aggregate as GPUSQLSelectItem['aggregate']),
|
|
401
|
-
...(aggregateColumn ? {aggregateColumn} : {}),
|
|
402
|
-
...(this.takeKeyword('AS') ? {alias: this.parseIdentifier()} : {})
|
|
403
|
-
};
|
|
404
|
-
}
|
|
405
|
-
const expression = this.parseExpression(0);
|
|
406
|
-
return {
|
|
407
|
-
...(expression ? {expression} : {}),
|
|
408
|
-
...(this.takeKeyword('AS') ? {alias: this.parseIdentifier()} : {})
|
|
409
|
-
};
|
|
351
|
+
if ((statement.orderBy?.length ?? 0) > 1) {
|
|
352
|
+
throw new Error('GPUSQL currently supports one ORDER BY column');
|
|
410
353
|
}
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
let type: GPUDataFrameJoinType = 'inner';
|
|
414
|
-
if (this.takeKeyword('LEFT')) {
|
|
415
|
-
this.takeKeyword('OUTER');
|
|
416
|
-
type = 'left';
|
|
417
|
-
} else if (this.takeKeyword('SEMI')) {
|
|
418
|
-
type = 'semi';
|
|
419
|
-
} else if (this.takeKeyword('ANTI')) {
|
|
420
|
-
type = 'anti';
|
|
421
|
-
} else {
|
|
422
|
-
this.takeKeyword('INNER');
|
|
423
|
-
}
|
|
424
|
-
if (!this.takeKeyword('JOIN')) {
|
|
425
|
-
if (type !== 'inner') throw new Error('GPUSQL join modifier must be followed by JOIN');
|
|
426
|
-
return undefined;
|
|
427
|
-
}
|
|
428
|
-
const table = this.parseIdentifier();
|
|
429
|
-
const alias = this.parseOptionalTableAlias();
|
|
430
|
-
this.expectKeyword('ON');
|
|
431
|
-
const left = this.parseIdentifier();
|
|
432
|
-
this.expectSymbol('=');
|
|
433
|
-
const right = this.parseIdentifier();
|
|
434
|
-
return {type, table, ...(alias ? {alias} : {}), left, right};
|
|
354
|
+
if (statement.limit !== undefined && statement.limit > 0xffffffff) {
|
|
355
|
+
throw new Error('GPUSQL LIMIT must fit an unsigned 32-bit row count');
|
|
435
356
|
}
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
357
|
+
const items: GPUSQLSelectItem[] = statement.select?.map(({expression, alias}) => {
|
|
358
|
+
if (expression.type === 'CallExpression' && expression.callee.type === 'Identifier') {
|
|
359
|
+
const name = String(expression.callee['name']).toLowerCase();
|
|
360
|
+
const aggregate = name === 'avg' ? 'mean' : name;
|
|
361
|
+
switch (aggregate) {
|
|
362
|
+
case 'count':
|
|
363
|
+
case 'sum':
|
|
364
|
+
case 'min':
|
|
365
|
+
case 'max':
|
|
366
|
+
case 'mean': {
|
|
367
|
+
if (expression.arguments.length !== 1) {
|
|
368
|
+
throw new Error('GPUSQL aggregates require one argument');
|
|
369
|
+
}
|
|
370
|
+
const argument = expression.arguments[0] as Expression;
|
|
371
|
+
const wildcard = argument.type === 'Identifier' && argument['sqlWildcard'] === true;
|
|
372
|
+
if ((aggregate === 'count') !== wildcard) {
|
|
373
|
+
throw new Error('GPUSQL only permits COUNT(*) as a wildcard aggregation');
|
|
374
|
+
}
|
|
375
|
+
return {
|
|
376
|
+
aggregate,
|
|
377
|
+
...(wildcard ? {} : {aggregateColumn: readGPUSQLColumn(argument)}),
|
|
378
|
+
alias
|
|
379
|
+
};
|
|
380
|
+
}
|
|
451
381
|
}
|
|
452
|
-
const token = this.peek();
|
|
453
|
-
const operation = token ? getGPUSQLBinaryOperator(token.value) : undefined;
|
|
454
|
-
if (!operation || operation.precedence < minimumPrecedence) break;
|
|
455
|
-
this.take();
|
|
456
|
-
expression = {
|
|
457
|
-
kind: 'binary',
|
|
458
|
-
operator: operation.operator,
|
|
459
|
-
left: expression,
|
|
460
|
-
right: this.parseExpression(depth + 1, operation.precedence + 1)
|
|
461
|
-
};
|
|
462
382
|
}
|
|
463
|
-
return expression;
|
|
383
|
+
return {expression, alias};
|
|
384
|
+
}) ?? [{star: true}];
|
|
385
|
+
const join = statement.joins[0];
|
|
386
|
+
if (statement.from.inputTable !== undefined || join?.table.inputTable !== undefined) {
|
|
387
|
+
throw new Error('GPUSQL does not support table functions');
|
|
464
388
|
}
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
if (
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
return {kind: 'unary', operator: 'negate', operand: this.parseUnary(depth + 1)};
|
|
472
|
-
}
|
|
473
|
-
if (this.takeSymbol('(')) {
|
|
474
|
-
const expression = this.parseExpression(depth + 1);
|
|
475
|
-
this.expectSymbol(')');
|
|
476
|
-
return expression;
|
|
477
|
-
}
|
|
478
|
-
const token = this.take();
|
|
479
|
-
if (!token) throw new Error('GPUSQL expected an expression');
|
|
480
|
-
if (token.kind === 'number') {
|
|
481
|
-
const value = Number(token.value);
|
|
482
|
-
if (!Number.isFinite(value)) throw new Error('GPUSQL numeric literals must be finite');
|
|
483
|
-
return literal(value).node;
|
|
389
|
+
let loweredJoin: GPUSQLStatement['join'];
|
|
390
|
+
if (join) {
|
|
391
|
+
if (join.unnest) throw new Error('GPUSQL does not support JOIN UNNEST');
|
|
392
|
+
if (join.type === 'cross') throw new Error('GPUSQL does not support CROSS JOIN');
|
|
393
|
+
if (join.on.type !== 'BinaryExpression' || join.on.operator !== '==') {
|
|
394
|
+
throw new Error('GPUSQL JOIN requires equality between two columns');
|
|
484
395
|
}
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
if (/^NULL$/i.test(token.value)) return literal(null).node;
|
|
493
|
-
if (/^TRUE$/i.test(token.value)) return literal(true).node;
|
|
494
|
-
if (/^FALSE$/i.test(token.value)) return literal(false).node;
|
|
495
|
-
return column(token.value).node;
|
|
496
|
-
}
|
|
497
|
-
throw new Error(`GPUSQL does not support expression token "${token.value}"`);
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
private parseOptionalTableAlias(): string | undefined {
|
|
501
|
-
if (this.takeKeyword('AS')) return this.parseIdentifier();
|
|
502
|
-
const token = this.peek();
|
|
503
|
-
return token?.kind === 'identifier' &&
|
|
504
|
-
!/^(WHERE|GROUP|ORDER|LIMIT|JOIN|INNER|LEFT|OUTER|SEMI|ANTI|ON)$/i.test(token.value)
|
|
505
|
-
? this.parseIdentifier()
|
|
506
|
-
: undefined;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
private parseIdentifier(): string {
|
|
510
|
-
const token = this.take();
|
|
511
|
-
if (token?.kind !== 'identifier')
|
|
512
|
-
throw new Error('GPUSQL expected a table or column identifier');
|
|
513
|
-
return token.value;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
private expectKeyword(keyword: string): true {
|
|
517
|
-
if (!this.takeKeyword(keyword)) throw new Error(`GPUSQL expected ${keyword}`);
|
|
518
|
-
return true;
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
private takeKeyword(keyword: string): boolean {
|
|
522
|
-
const token = this.peek();
|
|
523
|
-
if (token?.kind !== 'identifier' || token.value.toUpperCase() !== keyword) return false;
|
|
524
|
-
this.position++;
|
|
525
|
-
return true;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
private expectSymbol(symbol: string): void {
|
|
529
|
-
if (!this.takeSymbol(symbol)) throw new Error(`GPUSQL expected "${symbol}"`);
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
private takeSymbol(symbol: string): boolean {
|
|
533
|
-
const token = this.peek();
|
|
534
|
-
if (token?.kind !== 'symbol' || token.value !== symbol) return false;
|
|
535
|
-
this.position++;
|
|
536
|
-
return true;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
private take(): GPUSQLToken | undefined {
|
|
540
|
-
const token = this.tokens[this.position];
|
|
541
|
-
if (token) this.position++;
|
|
542
|
-
return token;
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
private peek(): GPUSQLToken | undefined {
|
|
546
|
-
return this.tokens[this.position];
|
|
396
|
+
loweredJoin = {
|
|
397
|
+
type: join.type,
|
|
398
|
+
table: join.table.name,
|
|
399
|
+
alias: join.table.alias,
|
|
400
|
+
left: readGPUSQLColumn(join.on.left),
|
|
401
|
+
right: readGPUSQLColumn(join.on.right)
|
|
402
|
+
};
|
|
547
403
|
}
|
|
404
|
+
const sort = statement.orderBy?.[0];
|
|
405
|
+
return {
|
|
406
|
+
items,
|
|
407
|
+
table: statement.from.name,
|
|
408
|
+
alias: statement.from.alias,
|
|
409
|
+
join: loweredJoin,
|
|
410
|
+
predicate: statement.where as Expression | undefined,
|
|
411
|
+
groupBy: statement.groupBy?.[0] && readGPUSQLColumn(statement.groupBy[0]),
|
|
412
|
+
orderBy: sort && {
|
|
413
|
+
column: readGPUSQLColumn(sort.expression),
|
|
414
|
+
direction: sort.direction === 'desc' ? 'descending' : 'ascending',
|
|
415
|
+
nulls: sort.nulls
|
|
416
|
+
},
|
|
417
|
+
offset: statement.offset,
|
|
418
|
+
limit: statement.limit
|
|
419
|
+
};
|
|
548
420
|
}
|
|
549
421
|
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
422
|
+
/** Reads a source column name or a two-part qualified column reference. */
|
|
423
|
+
function readGPUSQLColumn(
|
|
424
|
+
node: Extract<Expression, {type: 'BinaryExpression'}>['left']
|
|
425
|
+
): GPUSQLColumnReference {
|
|
426
|
+
const expression = node as Expression;
|
|
427
|
+
if (expression.type === 'Identifier' && !('gpuSQLParameter' in expression)) {
|
|
428
|
+
return {name: expression.name};
|
|
553
429
|
}
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
else if (match[3]) tokens.push({kind: 'number', value: match[3]});
|
|
566
|
-
else if (match[4]) tokens.push({kind: 'symbol', value: match[4]});
|
|
567
|
-
if (tokens.length > MAXIMUM_SQL_TOKENS)
|
|
568
|
-
throw new Error('GPUSQL statement exceeds its safe token limit');
|
|
430
|
+
if (expression.type === 'MemberExpression' && !expression.computed) {
|
|
431
|
+
const object = expression.object as Expression;
|
|
432
|
+
const property = expression.property as Expression;
|
|
433
|
+
if (
|
|
434
|
+
object.type === 'Identifier' &&
|
|
435
|
+
property.type === 'Identifier' &&
|
|
436
|
+
!('gpuSQLParameter' in object) &&
|
|
437
|
+
!('gpuSQLParameter' in property)
|
|
438
|
+
) {
|
|
439
|
+
return {qualifier: object.name, name: property.name};
|
|
440
|
+
}
|
|
569
441
|
}
|
|
570
|
-
|
|
442
|
+
throw new Error('GPUSQL expected a table or column identifier');
|
|
571
443
|
}
|
|
572
444
|
|
|
573
|
-
function
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
445
|
+
function lowerSQLExpression(
|
|
446
|
+
node: Extract<Expression, {type: 'BinaryExpression'}>['left'],
|
|
447
|
+
parameters: GPUDataFrameQueryParameters,
|
|
448
|
+
resolve: (reference: GPUSQLColumnReference) => string
|
|
449
|
+
): GPUExpressionNode {
|
|
450
|
+
const expression = node as Expression;
|
|
451
|
+
try {
|
|
452
|
+
return lowerPortableExpression(expression, leaf => {
|
|
453
|
+
if (leaf.type === 'Identifier' && 'gpuSQLParameter' in leaf) {
|
|
454
|
+
const name = leaf.name;
|
|
455
|
+
if (!Object.hasOwn(parameters, name)) {
|
|
456
|
+
throw new Error(`GPUSQL parameter ":${name}" requires an explicit default`);
|
|
457
|
+
}
|
|
458
|
+
return parameter(name, parameters[name]).node;
|
|
459
|
+
}
|
|
460
|
+
if (leaf.type === 'Identifier' || leaf.type === 'MemberExpression') {
|
|
461
|
+
return column(resolve(readGPUSQLColumn(leaf))).node;
|
|
462
|
+
}
|
|
463
|
+
if (leaf.type === 'CallExpression' && leaf.callee.type === 'Identifier') {
|
|
464
|
+
const name = leaf.callee['name'];
|
|
465
|
+
const functionName =
|
|
466
|
+
typeof name === 'string' && leaf['sqlFunction'] === true ? name.toLowerCase() : name;
|
|
467
|
+
if (
|
|
468
|
+
name !== 'isNull' &&
|
|
469
|
+
name !== 'isNotNull' &&
|
|
470
|
+
name !== 'in' &&
|
|
471
|
+
name !== 'cast' &&
|
|
472
|
+
functionName !== 'coalesce' &&
|
|
473
|
+
functionName !== 'nullif' &&
|
|
474
|
+
!isGPUScalarFunction(functionName)
|
|
475
|
+
) {
|
|
476
|
+
throw new Error(`GPUSQL does not support SQL expression "${name}"`);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
606
479
|
return undefined;
|
|
480
|
+
});
|
|
481
|
+
} catch (error) {
|
|
482
|
+
if (
|
|
483
|
+
error instanceof Error &&
|
|
484
|
+
error.message === 'Unsupported portable GPU dataframe expression'
|
|
485
|
+
) {
|
|
486
|
+
throw new Error(`GPUSQL does not support SQL expression "${expression.type}"`, {
|
|
487
|
+
cause: error
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
throw error;
|
|
607
491
|
}
|
|
608
492
|
}
|