@akohn/dashql 0.0.0-stage → 0.0.2-dev.17
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 +373 -0
- package/NOTICE +66 -0
- package/README.md +154 -2
- package/dist/_virtual/_rolldown/runtime.js +12 -0
- package/dist/core/api.d.ts +321 -0
- package/dist/core/api.js +881 -0
- package/dist/core/batch.d.ts +31 -0
- package/dist/core/batch.js +92 -0
- package/dist/core/batch_worker.d.ts +1 -0
- package/dist/core/batch_worker.js +43 -0
- package/dist/core/batch_worker_client.d.ts +20 -0
- package/dist/core/batch_worker_client.js +85 -0
- package/dist/core/batch_worker_protocol.d.ts +13 -0
- package/dist/core/batch_worker_protocol.js +0 -0
- package/dist/core/browser_worker.d.ts +3 -0
- package/dist/core/browser_worker.js +1 -0
- package/dist/core/buffers.d.ts +15 -0
- package/dist/core/buffers.js +35 -0
- package/dist/core/comment_tags.d.ts +22 -0
- package/dist/core/comment_tags.js +48 -0
- package/dist/core/connection.d.ts +3 -0
- package/dist/core/connection.js +1 -0
- package/dist/core/dataflow.d.ts +79 -0
- package/dist/core/dataflow.js +124 -0
- package/dist/core/flatbuffer_view.d.ts +14 -0
- package/dist/core/flatbuffer_view.js +43 -0
- package/dist/core/format.d.ts +4 -0
- package/dist/core/format.js +23 -0
- package/dist/core/index.d.ts +14 -0
- package/dist/core/index.js +15 -0
- package/dist/core/lookup.d.ts +10 -0
- package/dist/core/lookup.js +129 -0
- package/dist/core/query_history.d.ts +13 -0
- package/dist/core/query_history.js +20 -0
- package/dist/core/runtime.d.ts +2 -0
- package/dist/core/runtime.js +1 -0
- package/dist/core/tokens.d.ts +9 -0
- package/dist/core/tokens.js +78 -0
- package/dist/core/variant.d.ts +4 -0
- package/dist/core/variant.js +0 -0
- package/dist/core/workbook.d.ts +6 -0
- package/dist/core/workbook.js +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/binary-expression-function.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/binary-expression-function.js +12 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/binary-expression.d.ts +40 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/binary-expression.js +105 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/column-ref-expression.d.ts +29 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/column-ref-expression.js +84 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/comparison-function.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/comparison-function.js +12 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/comparison.d.ts +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/comparison.js +165 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/const-function-cast.d.ts +18 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/const-function-cast.js +42 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/const-interval-cast.d.ts +40 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/const-interval-cast.js +105 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/const-type-cast.d.ts +18 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/const-type-cast.js +42 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/expression-sub-type.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/expression-sub-type.js +58 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/expression.d.ts +56 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/expression.js +142 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/function-call-expression.d.ts +46 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/function-call-expression.js +111 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/function-call-modifier.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/function-call-modifier.js +12 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/literal-type.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/literal-type.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/literal.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/literal.js +77 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/nary-expression-function.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/nary-expression-function.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/nary-expression.d.ts +47 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/nary-expression.js +116 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/resolved-column.d.ts +41 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/resolved-column.js +132 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/unary-expression.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/unary-expression.js +85 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/unary-function.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/unary-function.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra.d.ts +19 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra.js +57 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzed-script.d.ts +211 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzed-script.js +563 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-error-severity.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-error-severity.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-error-type.d.ts +15 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-error-type.js +18 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-error.d.ts +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-error.js +145 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-warning.d.ts +18 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-warning.js +42 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/client-function-call.d.ts +50 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/client-function-call.js +152 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/client-function-effect.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/client-function-effect.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/constant-expression.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/constant-expression.js +79 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/database-declaration.d.ts +26 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/database-declaration.js +73 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/function-declaration.d.ts +48 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/function-declaration.js +154 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/function-param.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/function-param.js +85 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/function-reference.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/function-reference.js +105 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/indexed-column-reference.d.ts +45 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/indexed-column-reference.js +103 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/indexed-table-reference.d.ts +39 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/indexed-table-reference.js +90 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/inference-confidence.d.ts +17 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/inference-confidence.js +20 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/inferred-column.d.ts +47 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/inferred-column.js +109 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/inferred-table-schema.d.ts +47 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/inferred-table-schema.js +113 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/insert-statement.d.ts +70 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/insert-statement.js +192 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/insert-target-column.d.ts +38 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/insert-target-column.js +89 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/name-scope.d.ts +81 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/name-scope.js +197 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/name-tag.d.ts +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/name-tag.js +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/parameter-kind.d.ts +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/parameter-kind.js +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/parameter.d.ts +54 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/parameter.js +139 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/qualified-column-name.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/qualified-column-name.js +85 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/qualified-function-name.d.ts +34 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/qualified-function-name.js +97 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/qualified-table-name.d.ts +34 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/qualified-table-name.js +97 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/resolved-table.d.ts +43 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/resolved-table.js +128 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/schema-declaration.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/schema-declaration.js +90 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/semantic-node-marker-type.d.ts +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/semantic-node-marker-type.js +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/sql-type-kind.d.ts +22 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/sql-type-kind.js +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/sql-type.d.ts +102 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/sql-type.js +256 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table-column.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table-column.js +94 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table-reference-role.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table-reference-role.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table-reference.d.ts +56 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table-reference.js +166 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table.d.ts +56 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table.js +193 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/visualization-spec.d.ts +71 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/visualization-spec.js +157 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer.d.ts +36 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer.js +104 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-diagnostic.d.ts +40 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-diagnostic.js +126 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-request.d.ts +32 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-request.js +94 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-result.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-result.js +69 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-script-input.d.ts +34 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-script-input.js +89 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-script-result.d.ts +67 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-script-result.js +211 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/descriptor-buffer.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/descriptor-buffer.js +72 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/diagnostic-severity.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/diagnostic-severity.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/processing-stage.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/processing-stage.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch.js +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-content-statistics.d.ts +39 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-content-statistics.js +89 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-descriptor-pool.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-descriptor-pool.js +64 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-descriptor.d.ts +35 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-descriptor.js +97 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entries.d.ts +28 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entries.js +72 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entry-statistics.d.ts +31 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entry-statistics.js +71 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entry-type.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entry-type.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entry.d.ts +43 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entry.js +126 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-layer.d.ts +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-layer.js +19 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-memory-statistics.d.ts +45 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-memory-statistics.js +103 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-statistics.d.ts +34 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-statistics.js +84 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-table-update.d.ts +52 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-table-update.js +128 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/flat-catalog-entry.d.ts +59 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/flat-catalog-entry.js +126 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/flat-catalog.d.ts +101 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/flat-catalog.js +252 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/indexed-flat-database-entry.d.ts +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/indexed-flat-database-entry.js +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/indexed-flat-schema-entry.d.ts +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/indexed-flat-schema-entry.js +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/indexed-flat-table-entry.d.ts +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/indexed-flat-table-entry.js +62 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-descriptor.d.ts +36 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-descriptor.js +96 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-descriptors.d.ts +31 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-descriptors.js +75 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-table-column.d.ts +29 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-table-column.js +76 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-table.d.ts +36 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-table.js +101 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/touched-relations.d.ts +31 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/touched-relations.js +75 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog.d.ts +21 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog.js +66 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/candidate-tag.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/candidate-tag.js +36 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-field.d.ts +42 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-field.js +83 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-info.d.ts +78 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-info.js +177 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-object-type.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-object-type.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-object.d.ts +116 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-object.js +305 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate.d.ts +97 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate.js +230 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-strategy.d.ts +6 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-strategy.js +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-table-parameter.d.ts +17 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-table-parameter.js +20 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion.d.ts +59 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion.js +155 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion.js +28 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/relative-symbol-position.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/relative-symbol-position.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor-column-ref-context.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor-column-ref-context.js +64 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor-context.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor-context.js +26 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor-table-ref-context.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor-table-ref-context.js +64 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor.d.ts +116 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor.js +303 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor.js +20 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff/script-diff-op-code.d.ts +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff/script-diff-op-code.js +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff/script-diff-op.d.ts +51 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff/script-diff-op.js +144 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff/script-diff.d.ts +28 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff/script-diff.js +72 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff.d.ts +3 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff.js +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-analysis-version.d.ts +29 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-analysis-version.js +81 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-board-position.d.ts +44 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-board-position.js +135 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-comment-tag.d.ts +42 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-comment-tag.js +93 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-cursor-semantic-context.d.ts +91 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-cursor-semantic-context.js +274 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-cursor-semantic-kind.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-cursor-semantic-kind.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-cursor-state.d.ts +34 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-cursor-state.js +99 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-diagnostic-severity.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-diagnostic-severity.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-diagnostic-source.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-diagnostic-source.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-diagnostic.d.ts +35 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-diagnostic.js +101 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event-action.d.ts +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event-action.js +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event-intent.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event-intent.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event-origin.d.ts +6 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event-origin.js +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event.d.ts +62 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event.js +187 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-flow-position.d.ts +53 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-flow-position.js +144 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-offset-unit.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-offset-unit.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-processing-statistics.d.ts +65 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-processing-statistics.js +234 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-script-annotations.d.ts +71 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-script-annotations.js +210 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-selection.d.ts +29 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-selection.js +81 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-semantic-reference-kind.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-semantic-reference-kind.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-semantic-resolution.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-semantic-resolution.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-semantic-span.d.ts +48 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-semantic-span.js +138 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-statement-description.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-statement-description.js +88 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-statement.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-statement.js +88 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-syntax-span.d.ts +32 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-syntax-span.js +74 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-table-definition.d.ts +26 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-table-definition.js +73 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-text-change.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-text-change.js +93 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-text-span.d.ts +24 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-text-span.js +58 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-update-status.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-update-status.js +12 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-update.d.ts +158 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-update.js +508 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor.d.ts +29 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor.js +82 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/checked-script-reference.d.ts +64 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/checked-script-reference.js +156 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/checked-script.d.ts +45 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/checked-script.js +115 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/compiled-visualization.d.ts +37 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/compiled-visualization.js +104 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-attachment.d.ts +35 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-attachment.js +71 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-edge-kind.d.ts +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-edge-kind.js +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-edge.d.ts +49 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-edge.js +145 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-script.d.ts +54 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-script.js +137 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-statement.d.ts +39 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-statement.js +89 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-access-mode.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-access-mode.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-access.d.ts +31 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-access.js +96 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-attachment.d.ts +42 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-attachment.js +83 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-catalog-object-id.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-catalog-object-id.js +69 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-connection-kind.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-connection-kind.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-connection.d.ts +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-connection.js +74 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-diagnostic.d.ts +46 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-diagnostic.js +125 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-edge-reason.d.ts +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-edge-reason.js +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-edge.d.ts +39 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-edge.js +130 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-entity-type.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-entity-type.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-entity.d.ts +49 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-entity.js +148 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-materialization.d.ts +42 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-materialization.js +99 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-node.d.ts +125 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-node.js +343 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-script-reference.d.ts +73 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-script-reference.js +180 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-script.d.ts +98 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-script.js +268 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-unresolved-reference.d.ts +37 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-unresolved-reference.js +100 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph.d.ts +95 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph.js +314 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-error-code.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-error-code.js +12 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-error.d.ts +38 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-error.js +117 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-result.d.ts +41 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-result.js +126 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-statement-kind.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-statement-kind.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-reference-check.d.ts +38 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-reference-check.js +100 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-reference-kind.d.ts +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-reference-kind.js +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-dataflow.d.ts +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-dataflow.js +159 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-input-consumer.d.ts +24 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-input-consumer.js +58 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-input-type-source.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-input-type-source.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-input.d.ts +83 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-input.js +184 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-inputs.d.ts +28 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-inputs.js +72 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/table-parameter-collision.d.ts +56 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/table-parameter-collision.js +121 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution.d.ts +37 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution.js +107 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/formatting-config.d.ts +63 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/formatting-config.js +167 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/formatting-dialect.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/formatting-dialect.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/formatting-mode.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/formatting-mode.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/keyword-case.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/keyword-case.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting.js +14 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/aconst-type.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/aconst-type.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/attach-database-statement.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/attach-database-statement.js +85 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/attribute-key.d.ts +320 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/attribute-key.js +323 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/character-type.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/character-type.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/column-constraint.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/column-constraint.js +12 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/combine-modifier.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/combine-modifier.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/combine-operation.d.ts +6 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/combine-operation.js +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/comment-block-type.d.ts +14 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/comment-block-type.js +17 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/comment-block.d.ts +53 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/comment-block.js +126 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/constraint-attribute.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/constraint-attribute.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/error.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/error.js +89 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/expression-operator.d.ts +49 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/expression-operator.js +52 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/extract-target.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/extract-target.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/group-by-item-type.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/group-by-item-type.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/interval-type.d.ts +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/interval-type.js +19 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/join-type.d.ts +24 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/join-type.js +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/key-action-command.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/key-action-command.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/key-action-trigger.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/key-action-trigger.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/key-match.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/key-match.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/known-function.d.ts +24 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/known-function.js +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/node-type.d.ts +151 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/node-type.js +154 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/node.d.ts +35 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/node.js +100 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/numeric-type.d.ts +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/numeric-type.js +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/on-commit-option.d.ts +6 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/on-commit-option.js +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/order-direction.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/order-direction.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/order-null-rule.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/order-null-rule.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/parsed-script.d.ts +80 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/parsed-script.js +250 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/row-locking-block-behavior.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/row-locking-block-behavior.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/row-locking-strength.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/row-locking-strength.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/sample-count-unit.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/sample-count-unit.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/scanned-script.d.ts +40 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/scanned-script.js +125 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/scanner-token-type.d.ts +15 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/scanner-token-type.js +18 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/scanner-tokens.d.ts +59 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/scanner-tokens.js +156 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement-target-type.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement-target-type.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement-target.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement-target.js +80 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement-type.d.ts +22 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement-type.js +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement.d.ts +67 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement.js +234 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/subquery-quantifier.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/subquery-quantifier.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/symbol-span.d.ts +21 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/symbol-span.js +55 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/table-constraint.d.ts +6 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/table-constraint.js +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/temp-type.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/temp-type.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/text-span.d.ts +21 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/text-span.js +55 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/trim-direction.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/trim-direction.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-bound-direction.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-bound-direction.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-bound-mode.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-bound-mode.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-exclusion-mode.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-exclusion-mode.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-range-mode.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-range-mode.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser.d.ts +47 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser.js +110 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/derived-profile-layout-config.d.ts +28 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/derived-profile-layout-config.js +73 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-attribute.d.ts +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-attribute.js +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-engine.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-engine.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-entity.d.ts +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-entity.js +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-execution-status.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-execution-status.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-fragment.d.ts +64 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-fragment.js +147 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-layout-config.d.ts +95 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-layout-config.js +219 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-layout-orientation.d.ts +14 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-layout-orientation.js +17 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-layout-rect.d.ts +39 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-layout-rect.js +89 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator-cross-edge.d.ts +39 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator-cross-edge.js +89 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator-edge.d.ts +45 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator-edge.js +103 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator-kind.d.ts +58 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator-kind.js +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator.d.ts +124 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator.js +288 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-pipeline.d.ts +51 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-pipeline.js +117 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-slot-role.d.ts +17 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-slot-role.js +20 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-slot.d.ts +34 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-slot.js +77 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-stats-field.d.ts +19 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-stats-field.js +22 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-stats.d.ts +102 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-stats.js +233 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-update-event.d.ts +50 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-update-event.js +122 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/query-profile-events.d.ts +38 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/query-profile-events.js +91 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/query-profile.d.ts +170 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/query-profile.js +398 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile.d.ts +21 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile.js +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-memory-statistics.d.ts +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-memory-statistics.js +65 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-processing-memory-statistics.d.ts +57 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-processing-memory-statistics.js +131 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-processing-timings.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-processing-timings.js +75 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-statistics.d.ts +31 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-statistics.js +71 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics.js +17 -0
- package/dist/gen/flatbuffers/dashql/buffers/status/status-code.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/status/status-code.js +28 -0
- package/dist/gen/flatbuffers/dashql/buffers/status.d.ts +1 -0
- package/dist/gen/flatbuffers/dashql/buffers/status.js +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/dashboard-spec.d.ts +37 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/dashboard-spec.js +115 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/markdown-node-type.d.ts +20 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/markdown-node-type.js +23 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/markdown-node.d.ts +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/markdown-node.js +202 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/markdown-spec.d.ts +32 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/markdown-spec.js +90 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/table-spec.d.ts +21 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/table-spec.js +45 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization.js +19 -0
- package/dist/gen/jsonschema/app_folder.d.ts +26 -0
- package/dist/gen/jsonschema/app_manifest.d.ts +281 -0
- package/dist/gen/jsonschema/app_workbook.d.ts +355 -0
- package/dist/gen/jsonschema/auth.d.ts +273 -0
- package/dist/gen/jsonschema/connection.d.ts +1609 -0
- package/dist/gen/protobuf/google/protobuf/any_pb.d.ts +24 -0
- package/dist/gen/protobuf/google/protobuf/any_pb.js +7 -0
- package/dist/gen/protobuf/google/protobuf/empty_pb.d.ts +15 -0
- package/dist/gen/protobuf/google/protobuf/empty_pb.js +7 -0
- package/dist/gen/protobuf/google/rpc/status_pb.d.ts +29 -0
- package/dist/gen/protobuf/google/rpc/status_pb.js +18 -0
- package/dist/gen/protobuf/salesforce/hyperdb/grpc/v1/error_details_pb.d.ts +62 -0
- package/dist/gen/protobuf/salesforce/hyperdb/grpc/v1/error_details_pb.js +23 -0
- package/dist/gen/protobuf/salesforce/hyperdb/grpc/v1/hyper_service_pb.d.ts +386 -0
- package/dist/gen/protobuf/salesforce/hyperdb/grpc/v1/hyper_service_pb.js +199 -0
- package/dist/hyperdb-edge/node/runtime_check.d.ts +21 -0
- package/dist/hyperdb-edge/node/runtime_check.js +66 -0
- package/dist/platform/channel_common.d.ts +24 -0
- package/dist/platform/channel_common.js +15 -0
- package/dist/platform/compute/arrow_formatter.d.ts +43 -0
- package/dist/platform/compute/arrow_formatter.js +450 -0
- package/dist/platform/compute/computation_types.d.ts +100 -0
- package/dist/platform/compute/computation_types.js +150 -0
- package/dist/platform/compute/query_result_search_sql.d.ts +10 -0
- package/dist/platform/compute/query_result_search_sql.js +34 -0
- package/dist/platform/connections/clfn_spec.d.ts +97 -0
- package/dist/platform/connections/clfn_spec.js +0 -0
- package/dist/platform/connections/clfn_specs.d.ts +4 -0
- package/dist/platform/connections/clfn_specs.js +12 -0
- package/dist/platform/connections/connection_params.d.ts +19 -0
- package/dist/platform/connections/connection_params.js +63 -0
- package/dist/platform/connections/connection_state.d.ts +24 -0
- package/dist/platform/connections/connection_state.js +29 -0
- package/dist/platform/connections/connector_configs.d.ts +18 -0
- package/dist/platform/connections/connector_configs.js +12 -0
- package/dist/platform/connections/connector_descriptor.d.ts +20 -0
- package/dist/platform/connections/connector_descriptor.js +37 -0
- package/dist/platform/connections/connector_info.d.ts +33 -0
- package/dist/platform/connections/connector_info.js +95 -0
- package/dist/platform/connections/embedded_database_channel.d.ts +20 -0
- package/dist/platform/connections/embedded_database_channel.js +133 -0
- package/dist/platform/connections/hyper/hyper_error_info.d.ts +41 -0
- package/dist/platform/connections/hyper/hyper_error_info.js +117 -0
- package/dist/platform/connections/hyper/hyperdb_grpc_client.d.ts +26 -0
- package/dist/platform/connections/hyper/hyperdb_grpc_client.js +0 -0
- package/dist/platform/connections/hyper/local_cloud.d.ts +15 -0
- package/dist/platform/connections/hyper/local_cloud.js +14 -0
- package/dist/platform/connections/query_channel.d.ts +3 -0
- package/dist/platform/connections/query_channel.js +11 -0
- package/dist/platform/connections/query_execution.d.ts +19 -0
- package/dist/platform/connections/query_execution.js +24 -0
- package/dist/platform/connections/query_execution_args.d.ts +24 -0
- package/dist/platform/connections/query_execution_args.js +0 -0
- package/dist/platform/connections/salesforce/salesforce_api_client.d.ts +10 -0
- package/dist/platform/connections/salesforce/salesforce_api_client.js +14 -0
- package/dist/platform/connections/salesforce/salesforce_api_client_mock.d.ts +16 -0
- package/dist/platform/connections/salesforce/salesforce_connection_state.d.ts +2 -0
- package/dist/platform/connections/salesforce/salesforce_connection_state.js +7 -0
- package/dist/platform/connections/trino_catalogs.d.ts +4 -0
- package/dist/platform/connections/trino_catalogs.js +11 -0
- package/dist/platform/electron_fs.d.ts +4 -0
- package/dist/platform/electron_fs.js +21 -0
- package/dist/platform/embedded_database.d.ts +55 -0
- package/dist/platform/embedded_database.js +5 -0
- package/dist/platform/file_system.d.ts +36 -0
- package/dist/platform/file_system.js +5 -0
- package/dist/platform/http_client.d.ts +16 -0
- package/dist/platform/http_client.js +0 -0
- package/dist/platform/hyper_link_target.d.ts +8 -0
- package/dist/platform/hyper_link_target.js +35 -0
- package/dist/platform/hyperdb/hyperdb_arrow_insert.d.ts +7 -0
- package/dist/platform/hyperdb/hyperdb_arrow_insert.js +119 -0
- package/dist/platform/hyperdb/hyperdb_opfs_instance.d.ts +24 -0
- package/dist/platform/hyperdb/hyperdb_opfs_instance.js +117 -0
- package/dist/platform/hyperdb/hyperdb_parquet_export.d.ts +9 -0
- package/dist/platform/hyperdb/hyperdb_parquet_export.js +42 -0
- package/dist/platform/hyperdb/hyperdb_settings.d.ts +25 -0
- package/dist/platform/hyperdb/hyperdb_settings.js +32 -0
- package/dist/platform/hyperdb/hyperdb_wasm.d.ts +94 -0
- package/dist/platform/hyperdb/hyperdb_wasm.js +494 -0
- package/dist/platform/key_value_storage.d.ts +4 -0
- package/dist/platform/key_value_storage.js +0 -0
- package/dist/platform/logger/log_buffer.d.ts +53 -0
- package/dist/platform/logger/log_buffer.js +126 -0
- package/dist/platform/logger/logger.d.ts +57 -0
- package/dist/platform/logger/logger.js +181 -0
- package/dist/platform/logger/trace_context.d.ts +14 -0
- package/dist/platform/logger/trace_context.js +32 -0
- package/dist/platform/node/node_core.d.ts +3 -0
- package/dist/platform/node/node_core.js +17 -0
- package/dist/platform/node/node_directory_handle.d.ts +44 -0
- package/dist/platform/node/node_directory_handle.js +185 -0
- package/dist/platform/node/node_file_system.d.ts +3 -0
- package/dist/platform/node/node_file_system.js +108 -0
- package/dist/platform/node/node_hyperdb.d.ts +21 -0
- package/dist/platform/node/node_hyperdb.js +113 -0
- package/dist/platform/node/node_instance_locks.d.ts +2 -0
- package/dist/platform/node/node_instance_locks.js +37 -0
- package/dist/platform/node/node_locks.d.ts +20 -0
- package/dist/platform/node/node_locks.js +64 -0
- package/dist/platform/oauth_flow.d.ts +16 -0
- package/dist/platform/oauth_flow.js +0 -0
- package/dist/platform/oauth_types.d.ts +23 -0
- package/dist/platform/oauth_types.js +0 -0
- package/dist/platform/opfs_root.d.ts +5 -0
- package/dist/platform/opfs_root.js +19 -0
- package/dist/platform/proto.d.ts +11 -0
- package/dist/platform/proto.js +15 -0
- package/dist/platform/query/profile_execution_state.d.ts +21 -0
- package/dist/platform/query/profile_execution_state.js +60 -0
- package/dist/platform/query/profile_layout_config.d.ts +5 -0
- package/dist/platform/query/profile_layout_config.js +32 -0
- package/dist/platform/query/profile_operator_symbol.d.ts +6 -0
- package/dist/platform/query/profile_operator_symbol.js +50 -0
- package/dist/platform/query/query_execution_state.d.ts +65 -0
- package/dist/platform/query/query_execution_state.js +33 -0
- package/dist/platform/query/query_progress.d.ts +42 -0
- package/dist/platform/query/query_progress.js +78 -0
- package/dist/platform/query/query_result_cache.d.ts +47 -0
- package/dist/platform/query/query_result_cache.js +8 -0
- package/dist/platform/session/agent_session_client.d.ts +21 -0
- package/dist/platform/session/agent_session_client.js +142 -0
- package/dist/platform/session/agent_session_protocol.d.ts +15 -0
- package/dist/platform/session/agent_session_protocol.js +43 -0
- package/dist/platform/session/agent_session_state.d.ts +60 -0
- package/dist/platform/session/agent_session_state.js +100 -0
- package/dist/platform/session/workbook_journal.d.ts +77 -0
- package/dist/platform/session/workbook_journal.js +184 -0
- package/dist/platform/sql/sql_format.d.ts +9 -0
- package/dist/platform/sql/sql_format.js +40 -0
- package/dist/platform/sql/sql_lint.d.ts +27 -0
- package/dist/platform/sql/sql_lint.js +69 -0
- package/dist/platform/sql/sql_report.d.ts +18 -0
- package/dist/platform/sql/sql_report.js +80 -0
- package/dist/platform/storage/native_storage_backend.d.ts +48 -0
- package/dist/platform/storage/native_storage_backend.js +194 -0
- package/dist/platform/storage/opfs_query_result_cache.d.ts +15 -0
- package/dist/platform/storage/opfs_query_result_cache.js +237 -0
- package/dist/platform/storage/storage_backend.d.ts +89 -0
- package/dist/platform/storage/storage_backend.js +53 -0
- package/dist/platform/storage/storage_root.d.ts +2 -0
- package/dist/platform/storage/storage_root.js +90 -0
- package/dist/platform/storage/storage_versions.d.ts +3 -0
- package/dist/platform/storage/storage_versions.js +13 -0
- package/dist/platform/storage/workbook_tables.d.ts +92 -0
- package/dist/platform/storage/workbook_tables.js +57 -0
- package/dist/platform/storage/workbook_tree.d.ts +29 -0
- package/dist/platform/storage/workbook_tree.js +161 -0
- package/dist/platform/utils/arrow_vectors.d.ts +6 -0
- package/dist/platform/utils/arrow_vectors.js +82 -0
- package/dist/platform/utils/async_consumer.d.ts +14 -0
- package/dist/platform/utils/async_consumer.js +24 -0
- package/dist/platform/utils/async_value.d.ts +20 -0
- package/dist/platform/utils/async_value.js +50 -0
- package/dist/platform/utils/base64.d.ts +19 -0
- package/dist/platform/utils/base64.js +162 -0
- package/dist/platform/utils/crc32.d.ts +6 -0
- package/dist/platform/utils/crc32.js +34 -0
- package/dist/platform/utils/error.d.ts +4 -0
- package/dist/platform/utils/error.js +0 -0
- package/dist/platform/utils/int128.d.ts +7 -0
- package/dist/platform/utils/int128.js +35 -0
- package/dist/platform/utils/pkce.d.ts +2 -0
- package/dist/platform/utils/pkce.js +12 -0
- package/dist/platform/utils/progress.d.ts +14 -0
- package/dist/platform/utils/progress.js +44 -0
- package/dist/platform/utils/sleep.d.ts +1 -0
- package/dist/platform/utils/sleep.js +5 -0
- package/dist/platform/utils/sql_quote.d.ts +2 -0
- package/dist/platform/utils/sql_quote.js +8 -0
- package/dist/platform/utils/variant.d.ts +5 -0
- package/dist/platform/utils/variant.js +0 -0
- package/dist/platform/utils/yield_to_browser.d.ts +1 -0
- package/dist/platform/utils/yield_to_browser.js +5 -0
- package/dist/platform/web_http_client.d.ts +7 -0
- package/dist/platform/web_http_client.js +12 -0
- package/dist/platform/workbook/attachment_mirror.d.ts +2 -0
- package/dist/platform/workbook/attachment_mirror.js +25 -0
- package/dist/platform/workbook/attachment_mounts.d.ts +5 -0
- package/dist/platform/workbook/attachment_mounts.js +62 -0
- package/dist/platform/workbook/script_compilation.d.ts +4 -0
- package/dist/platform/workbook/script_compilation.js +52 -0
- package/dist/platform/workbook/script_editor_state.d.ts +12 -0
- package/dist/platform/workbook/script_editor_state.js +0 -0
- package/dist/platform/workbook/script_reference_check.d.ts +27 -0
- package/dist/platform/workbook/script_reference_check.js +59 -0
- package/dist/platform/workbook/script_types.d.ts +53 -0
- package/dist/platform/workbook/script_types.js +21 -0
- package/dist/platform/workbook/workbook_attachments.d.ts +3 -0
- package/dist/platform/workbook/workbook_attachments.js +9 -0
- package/dist/platform/workbook/workbook_execution.d.ts +31 -0
- package/dist/platform/workbook/workbook_execution.js +28 -0
- package/dist/platform/workbook/workbook_inputs.d.ts +41 -0
- package/dist/platform/workbook/workbook_inputs.js +94 -0
- package/dist/platform/workbook/workbook_scripts.d.ts +58 -0
- package/dist/platform/workbook/workbook_scripts.js +21 -0
- package/dist/platform/workbook/workbook_zip.d.ts +5 -0
- package/dist/platform/workbook/workbook_zip.js +28 -0
- package/dist/runtime/compute_database.d.ts +18 -0
- package/dist/runtime/compute_database.js +56 -0
- package/dist/runtime/compute_platform.d.ts +5 -0
- package/dist/runtime/compute_platform.js +76 -0
- package/dist/runtime/embedded_session.d.ts +8 -0
- package/dist/runtime/embedded_session.js +23 -0
- package/dist/runtime/node/node_platform.d.ts +12 -0
- package/dist/runtime/node/node_platform.js +23 -0
- package/dist/runtime/platform_requests.d.ts +18 -0
- package/dist/runtime/platform_requests.js +104 -0
- package/dist/runtime/query/cache_pins.d.ts +8 -0
- package/dist/runtime/query/cache_pins.js +27 -0
- package/dist/runtime/query/query_channels.d.ts +34 -0
- package/dist/runtime/query/query_channels.js +250 -0
- package/dist/runtime/query/query_projection.d.ts +4 -0
- package/dist/runtime/query/query_projection.js +41 -0
- package/dist/runtime/query/query_result_stream.d.ts +15 -0
- package/dist/runtime/query/query_result_stream.js +100 -0
- package/dist/runtime/run_mounts.d.ts +6 -0
- package/dist/runtime/run_mounts.js +44 -0
- package/dist/runtime/runtime.d.ts +150 -0
- package/dist/runtime/runtime.js +429 -0
- package/dist/runtime/runtime_storage.d.ts +47 -0
- package/dist/runtime/runtime_storage.js +118 -0
- package/dist/runtime/store/handles.d.ts +30 -0
- package/dist/runtime/store/handles.js +46 -0
- package/dist/runtime/store/projection.d.ts +8 -0
- package/dist/runtime/store/projection.js +51 -0
- package/dist/runtime/store/runtime_store.d.ts +53 -0
- package/dist/runtime/store/runtime_store.js +195 -0
- package/dist/runtime/store/runtime_tables.d.ts +10 -0
- package/dist/runtime/store/runtime_tables.js +115 -0
- package/dist/runtime/store/update_scheduler.d.ts +6 -0
- package/dist/runtime/store/update_scheduler.js +7 -0
- package/dist/runtime/workbook_archives.d.ts +7 -0
- package/dist/runtime/workbook_archives.js +103 -0
- package/dist/runtime/workbook_projection.d.ts +28 -0
- package/dist/runtime/workbook_projection.js +178 -0
- package/dist/wasm/dashql_core.d.ts +4184 -0
- package/dist/wasm/dashql_core.js +4519 -0
- package/dist/wasm/dashql_core.wasm +0 -0
- package/dist/wasm/dashql_dataflow.d.ts +148 -0
- package/dist/wasm/dashql_dataflow.js +474 -0
- package/dist/wasm/dashql_dataflow.wasm +0 -0
- package/package.json +44 -4
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
import { Decimal128, Int128 } from "../utils/int128.js";
|
|
2
|
+
import * as arrow from "apache-arrow";
|
|
3
|
+
// dist/.stage/src/platform/compute/arrow_formatter.ts
|
|
4
|
+
var LOG_CTX = "arrow_formatter";
|
|
5
|
+
function formatDuration(value, unit) {
|
|
6
|
+
let ms;
|
|
7
|
+
switch (unit) {
|
|
8
|
+
case arrow.TimeUnit.SECOND:
|
|
9
|
+
ms = value * 1000n;
|
|
10
|
+
break;
|
|
11
|
+
case arrow.TimeUnit.MILLISECOND:
|
|
12
|
+
ms = value;
|
|
13
|
+
break;
|
|
14
|
+
case arrow.TimeUnit.MICROSECOND:
|
|
15
|
+
ms = value / 1000n;
|
|
16
|
+
break;
|
|
17
|
+
case arrow.TimeUnit.NANOSECOND:
|
|
18
|
+
ms = value / 1000000n;
|
|
19
|
+
break;
|
|
20
|
+
default: ms = value;
|
|
21
|
+
}
|
|
22
|
+
const isNegative = ms < 0n;
|
|
23
|
+
if (isNegative) ms = -ms;
|
|
24
|
+
const totalSeconds = ms / 1000n;
|
|
25
|
+
const milliseconds = ms % 1000n;
|
|
26
|
+
const seconds = totalSeconds % 60n;
|
|
27
|
+
const totalMinutes = totalSeconds / 60n;
|
|
28
|
+
const minutes = totalMinutes % 60n;
|
|
29
|
+
const totalHours = totalMinutes / 60n;
|
|
30
|
+
const hours = totalHours % 24n;
|
|
31
|
+
const days = totalHours / 24n;
|
|
32
|
+
const parts = [];
|
|
33
|
+
if (days > 0n) parts.push(`${days}d`);
|
|
34
|
+
if (hours > 0n) parts.push(`${hours}h`);
|
|
35
|
+
if (minutes > 0n) parts.push(`${minutes}m`);
|
|
36
|
+
if (seconds > 0n || milliseconds > 0n) {
|
|
37
|
+
if (milliseconds > 0n) parts.push(`${seconds}.${milliseconds.toString().padStart(3, "0")}s`);
|
|
38
|
+
else parts.push(`${seconds}s`);
|
|
39
|
+
}
|
|
40
|
+
if (parts.length === 0) return "0s";
|
|
41
|
+
return (isNegative ? "-" : "") + parts.join(" ");
|
|
42
|
+
}
|
|
43
|
+
function formatList(vector) {
|
|
44
|
+
const values = [];
|
|
45
|
+
const maxItems = 5;
|
|
46
|
+
for (let i = 0; i < Math.min(vector.length, maxItems); i++) {
|
|
47
|
+
const val = vector.get(i);
|
|
48
|
+
if (val === null) values.push("null");
|
|
49
|
+
else if (typeof val === "string") values.push(`"${val}"`);
|
|
50
|
+
else if (typeof val === "bigint") values.push(val.toString());
|
|
51
|
+
else if (typeof val === "number") values.push(Number.isInteger(val) ? val.toString() : val.toFixed(4));
|
|
52
|
+
else if (val instanceof arrow.Vector) values.push(formatList(val));
|
|
53
|
+
else values.push(String(val));
|
|
54
|
+
}
|
|
55
|
+
if (vector.length > maxItems) values.push(`... +${vector.length - maxItems} more`);
|
|
56
|
+
return `[${values.join(", ")}]`;
|
|
57
|
+
}
|
|
58
|
+
function arrowValueToJson(value) {
|
|
59
|
+
if (value instanceof arrow.Vector) return Array.from(value, (item) => arrowValueToJson(item));
|
|
60
|
+
if (value instanceof Map) return Object.fromEntries(Array.from(value, ([key, item]) => [String(key), arrowValueToJson(item)]));
|
|
61
|
+
if (Array.isArray(value)) return value.map((item) => arrowValueToJson(item));
|
|
62
|
+
if (ArrayBuffer.isView(value) && !(value instanceof DataView) && "length" in value) return Array.from(value, (item) => arrowValueToJson(item));
|
|
63
|
+
if (value instanceof Date || value == null || typeof value !== "object") return value;
|
|
64
|
+
const jsonValue = "toJSON" in value && typeof value.toJSON === "function" ? value.toJSON() : value;
|
|
65
|
+
if (jsonValue !== value) return arrowValueToJson(jsonValue);
|
|
66
|
+
return Object.fromEntries(Object.entries(jsonValue).map(([key, item]) => [key, arrowValueToJson(item)]));
|
|
67
|
+
}
|
|
68
|
+
function isArrowListType(type) {
|
|
69
|
+
return type.typeId === arrow.Type.List || type.typeId === arrow.Type.FixedSizeList;
|
|
70
|
+
}
|
|
71
|
+
function isArrowStructuredType(type) {
|
|
72
|
+
return isArrowListType(type) || type.typeId === arrow.Type.Struct;
|
|
73
|
+
}
|
|
74
|
+
function formatBinary(data) {
|
|
75
|
+
if (data == null) return "";
|
|
76
|
+
const maxBytes = 32;
|
|
77
|
+
const bytes = data.slice(0, maxBytes);
|
|
78
|
+
const hex = Array.from(bytes).map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
79
|
+
if (data.length > maxBytes) return `0x${hex}... (+${data.length - maxBytes} bytes)`;
|
|
80
|
+
return `0x${hex}`;
|
|
81
|
+
}
|
|
82
|
+
function formatTime(value, unit) {
|
|
83
|
+
let totalMs;
|
|
84
|
+
if (typeof value === "bigint") switch (unit) {
|
|
85
|
+
case arrow.TimeUnit.SECOND:
|
|
86
|
+
totalMs = Number(value) * 1e3;
|
|
87
|
+
break;
|
|
88
|
+
case arrow.TimeUnit.MILLISECOND:
|
|
89
|
+
totalMs = Number(value);
|
|
90
|
+
break;
|
|
91
|
+
case arrow.TimeUnit.MICROSECOND:
|
|
92
|
+
totalMs = Number(value / 1000n);
|
|
93
|
+
break;
|
|
94
|
+
case arrow.TimeUnit.NANOSECOND:
|
|
95
|
+
totalMs = Number(value / 1000000n);
|
|
96
|
+
break;
|
|
97
|
+
default: totalMs = Number(value);
|
|
98
|
+
}
|
|
99
|
+
else switch (unit) {
|
|
100
|
+
case arrow.TimeUnit.SECOND:
|
|
101
|
+
totalMs = value * 1e3;
|
|
102
|
+
break;
|
|
103
|
+
case arrow.TimeUnit.MILLISECOND:
|
|
104
|
+
totalMs = value;
|
|
105
|
+
break;
|
|
106
|
+
case arrow.TimeUnit.MICROSECOND:
|
|
107
|
+
totalMs = value / 1e3;
|
|
108
|
+
break;
|
|
109
|
+
case arrow.TimeUnit.NANOSECOND:
|
|
110
|
+
totalMs = value / 1e6;
|
|
111
|
+
break;
|
|
112
|
+
default: totalMs = value;
|
|
113
|
+
}
|
|
114
|
+
const hours = Math.floor(totalMs / 36e5);
|
|
115
|
+
const minutes = Math.floor(totalMs % 36e5 / 6e4);
|
|
116
|
+
const seconds = Math.floor(totalMs % 6e4 / 1e3);
|
|
117
|
+
const ms = Math.floor(totalMs % 1e3);
|
|
118
|
+
if (ms > 0) return `${hours.toString().padStart(2, "0")}:${minutes.toString().padStart(2, "0")}:${seconds.toString().padStart(2, "0")}.${ms.toString().padStart(3, "0")}`;
|
|
119
|
+
return `${hours.toString().padStart(2, "0")}:${minutes.toString().padStart(2, "0")}:${seconds.toString().padStart(2, "0")}`;
|
|
120
|
+
}
|
|
121
|
+
function formatStruct(value) {
|
|
122
|
+
if (value == null) return "";
|
|
123
|
+
const entries = [];
|
|
124
|
+
const maxEntries = 5;
|
|
125
|
+
let count = 0;
|
|
126
|
+
const iterate = (key, val) => {
|
|
127
|
+
if (count >= maxEntries) return;
|
|
128
|
+
let formatted;
|
|
129
|
+
if (val === null) formatted = "null";
|
|
130
|
+
else if (typeof val === "string") formatted = `"${val}"`;
|
|
131
|
+
else if (typeof val === "number" || typeof val === "bigint") formatted = String(val);
|
|
132
|
+
else formatted = String(val);
|
|
133
|
+
entries.push(`${key}: ${formatted}`);
|
|
134
|
+
count++;
|
|
135
|
+
};
|
|
136
|
+
if (value instanceof Map) {
|
|
137
|
+
for (const [key, val] of value) iterate(key, val);
|
|
138
|
+
if (value.size > maxEntries) entries.push(`... +${value.size - maxEntries} more`);
|
|
139
|
+
} else {
|
|
140
|
+
const keys = Object.keys(value);
|
|
141
|
+
for (const key of keys) iterate(key, value[key]);
|
|
142
|
+
if (keys.length > maxEntries) entries.push(`... +${keys.length - maxEntries} more`);
|
|
143
|
+
}
|
|
144
|
+
return `{${entries.join(", ")}}`;
|
|
145
|
+
}
|
|
146
|
+
function formatInterval(value, typeId) {
|
|
147
|
+
if (value == null) return "";
|
|
148
|
+
if (typeof value === "number") {
|
|
149
|
+
const years = Math.floor(value / 12);
|
|
150
|
+
const months = value % 12;
|
|
151
|
+
const parts = [];
|
|
152
|
+
if (years !== 0) parts.push(`${years}y`);
|
|
153
|
+
if (months !== 0 || parts.length === 0) parts.push(`${months}mo`);
|
|
154
|
+
return parts.join(" ");
|
|
155
|
+
}
|
|
156
|
+
if (typeof value === "object") {
|
|
157
|
+
const parts = [];
|
|
158
|
+
if ("days" in value && value.days !== 0) parts.push(`${value.days}d`);
|
|
159
|
+
if ("months" in value && value.months !== 0) {
|
|
160
|
+
const years = Math.floor(value.months / 12);
|
|
161
|
+
const months = value.months % 12;
|
|
162
|
+
if (years !== 0) parts.push(`${years}y`);
|
|
163
|
+
if (months !== 0) parts.push(`${months}mo`);
|
|
164
|
+
}
|
|
165
|
+
if ("milliseconds" in value && value.milliseconds !== 0) parts.push(`${value.milliseconds}ms`);
|
|
166
|
+
if ("nanoseconds" in value) {
|
|
167
|
+
const ns = BigInt(value.nanoseconds);
|
|
168
|
+
if (ns !== 0n) {
|
|
169
|
+
const ms = ns / 1000000n;
|
|
170
|
+
if (ms !== 0n) parts.push(`${ms}ms`);
|
|
171
|
+
else parts.push(`${ns}ns`);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
return parts.length > 0 ? parts.join(" ") : "0";
|
|
175
|
+
}
|
|
176
|
+
return String(value);
|
|
177
|
+
}
|
|
178
|
+
function formatEpochMilliseconds(format, value) {
|
|
179
|
+
const date = new Date(Number(value));
|
|
180
|
+
return Number.isNaN(date.getTime()) ? value.toString() : format.format(date);
|
|
181
|
+
}
|
|
182
|
+
function isUnsafeIntegerConversion(error) {
|
|
183
|
+
return error instanceof TypeError && String(error).includes("not safe to convert");
|
|
184
|
+
}
|
|
185
|
+
function readRawInt64(column, row) {
|
|
186
|
+
for (const chunk of column.data) {
|
|
187
|
+
if (row >= chunk.length) {
|
|
188
|
+
row -= chunk.length;
|
|
189
|
+
continue;
|
|
190
|
+
}
|
|
191
|
+
const i = chunk.offset + row;
|
|
192
|
+
if (!(chunk.nullCount === 0 || chunk.nullBitmap != null && (chunk.nullBitmap[i >> 3] & 1 << (i & 7)) !== 0)) return null;
|
|
193
|
+
return new DataView(chunk.values.buffer, chunk.values.byteOffset).getBigInt64(i * 8, true);
|
|
194
|
+
}
|
|
195
|
+
return null;
|
|
196
|
+
}
|
|
197
|
+
function makeArrowValueFormatter(field, logger) {
|
|
198
|
+
let formatter = (_) => "";
|
|
199
|
+
switch (field.type.typeId) {
|
|
200
|
+
case arrow.Type.Int:
|
|
201
|
+
case arrow.Type.Int16:
|
|
202
|
+
case arrow.Type.Int32:
|
|
203
|
+
case arrow.Type.Int64:
|
|
204
|
+
case arrow.Type.Float:
|
|
205
|
+
case arrow.Type.Float16:
|
|
206
|
+
case arrow.Type.Float32:
|
|
207
|
+
case arrow.Type.Float64: {
|
|
208
|
+
const fmt = Intl.NumberFormat("en-US");
|
|
209
|
+
formatter = (v) => v == null ? null : fmt.format(v);
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
case arrow.Type.Decimal: {
|
|
213
|
+
const decimalType = field.type;
|
|
214
|
+
formatter = (v) => {
|
|
215
|
+
const i = Int128.decodeLE(v);
|
|
216
|
+
return Decimal128.format(i, decimalType.scale);
|
|
217
|
+
};
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
case arrow.Type.Utf8:
|
|
221
|
+
case arrow.Type.LargeUtf8:
|
|
222
|
+
formatter = (v) => v || null;
|
|
223
|
+
break;
|
|
224
|
+
case arrow.Type.Bool:
|
|
225
|
+
formatter = (v) => v == null ? null : v ? "true" : "false";
|
|
226
|
+
break;
|
|
227
|
+
case arrow.Type.Null:
|
|
228
|
+
formatter = () => null;
|
|
229
|
+
break;
|
|
230
|
+
case arrow.Type.Binary:
|
|
231
|
+
case arrow.Type.LargeBinary:
|
|
232
|
+
case arrow.Type.FixedSizeBinary:
|
|
233
|
+
formatter = (v) => v == null ? null : formatBinary(v);
|
|
234
|
+
break;
|
|
235
|
+
case arrow.Type.Time:
|
|
236
|
+
case arrow.Type.TimeSecond:
|
|
237
|
+
case arrow.Type.TimeMillisecond:
|
|
238
|
+
case arrow.Type.TimeMicrosecond:
|
|
239
|
+
case arrow.Type.TimeNanosecond: {
|
|
240
|
+
const timeType = field.type;
|
|
241
|
+
formatter = (v) => v == null ? null : formatTime(v, timeType.unit);
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
case arrow.Type.Timestamp:
|
|
245
|
+
case arrow.Type.TimestampSecond:
|
|
246
|
+
case arrow.Type.TimestampMillisecond:
|
|
247
|
+
case arrow.Type.TimestampMicrosecond:
|
|
248
|
+
case arrow.Type.TimestampNanosecond: {
|
|
249
|
+
const fmt = Intl.DateTimeFormat("en-US", {
|
|
250
|
+
dateStyle: "short",
|
|
251
|
+
timeStyle: "medium"
|
|
252
|
+
});
|
|
253
|
+
formatter = (v) => v == null ? null : formatEpochMilliseconds(fmt, v);
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
case arrow.Type.DateMillisecond:
|
|
257
|
+
case arrow.Type.DateDay:
|
|
258
|
+
case arrow.Type.Date: {
|
|
259
|
+
const fmt = Intl.DateTimeFormat("en-US", {
|
|
260
|
+
weekday: "short",
|
|
261
|
+
day: "numeric",
|
|
262
|
+
month: "short",
|
|
263
|
+
year: "numeric"
|
|
264
|
+
});
|
|
265
|
+
formatter = (v) => v == null ? null : formatEpochMilliseconds(fmt, v);
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
268
|
+
case arrow.Type.Duration:
|
|
269
|
+
case arrow.Type.DurationSecond:
|
|
270
|
+
case arrow.Type.DurationMillisecond:
|
|
271
|
+
case arrow.Type.DurationMicrosecond:
|
|
272
|
+
case arrow.Type.DurationNanosecond: {
|
|
273
|
+
const durationType = field.type;
|
|
274
|
+
formatter = (v) => {
|
|
275
|
+
if (v == null) return null;
|
|
276
|
+
return formatDuration(v, durationType.unit);
|
|
277
|
+
};
|
|
278
|
+
break;
|
|
279
|
+
}
|
|
280
|
+
case arrow.Type.List:
|
|
281
|
+
case arrow.Type.FixedSizeList:
|
|
282
|
+
formatter = (v) => {
|
|
283
|
+
if (v == null) return null;
|
|
284
|
+
return formatList(v);
|
|
285
|
+
};
|
|
286
|
+
break;
|
|
287
|
+
case arrow.Type.Struct:
|
|
288
|
+
formatter = (v) => {
|
|
289
|
+
if (v == null) return null;
|
|
290
|
+
return formatStruct(v);
|
|
291
|
+
};
|
|
292
|
+
break;
|
|
293
|
+
case arrow.Type.Map:
|
|
294
|
+
formatter = (v) => {
|
|
295
|
+
if (v == null) return null;
|
|
296
|
+
return formatStruct(v);
|
|
297
|
+
};
|
|
298
|
+
break;
|
|
299
|
+
case arrow.Type.Interval:
|
|
300
|
+
case arrow.Type.IntervalDayTime:
|
|
301
|
+
case arrow.Type.IntervalYearMonth:
|
|
302
|
+
case arrow.Type.IntervalMonthDayNano: {
|
|
303
|
+
const intervalType = field.type;
|
|
304
|
+
formatter = (v) => {
|
|
305
|
+
if (v == null) return null;
|
|
306
|
+
return formatInterval(v, intervalType.typeId);
|
|
307
|
+
};
|
|
308
|
+
break;
|
|
309
|
+
}
|
|
310
|
+
case arrow.Type.Union:
|
|
311
|
+
case arrow.Type.DenseUnion:
|
|
312
|
+
case arrow.Type.SparseUnion:
|
|
313
|
+
formatter = (v) => {
|
|
314
|
+
if (v == null) return null;
|
|
315
|
+
if (typeof v === "string") return v;
|
|
316
|
+
if (typeof v === "number" || typeof v === "bigint") return String(v);
|
|
317
|
+
return JSON.stringify(v);
|
|
318
|
+
};
|
|
319
|
+
break;
|
|
320
|
+
case arrow.Type.Dictionary:
|
|
321
|
+
formatter = (v) => {
|
|
322
|
+
if (v == null) return null;
|
|
323
|
+
if (typeof v === "string") return v;
|
|
324
|
+
if (typeof v === "number" || typeof v === "bigint") return String(v);
|
|
325
|
+
return String(v);
|
|
326
|
+
};
|
|
327
|
+
break;
|
|
328
|
+
default: logger?.warn("unsupport column type in Arrow text formatter", {
|
|
329
|
+
typeId: field.type.toString(),
|
|
330
|
+
field: field.name.toString()
|
|
331
|
+
}, LOG_CTX);
|
|
332
|
+
}
|
|
333
|
+
return { format: (v) => v == null ? null : formatter(v) };
|
|
334
|
+
}
|
|
335
|
+
var ArrowTextColumnFormatter = class {
|
|
336
|
+
logger;
|
|
337
|
+
columnId;
|
|
338
|
+
columnName;
|
|
339
|
+
batches;
|
|
340
|
+
batchValues;
|
|
341
|
+
loadedBatchValueCount;
|
|
342
|
+
formattedRowCount;
|
|
343
|
+
formattedLengthMax;
|
|
344
|
+
formattedLengthSum;
|
|
345
|
+
formatter;
|
|
346
|
+
constructor(logger, columnId, schema, batches) {
|
|
347
|
+
this.logger = logger;
|
|
348
|
+
this.columnId = columnId;
|
|
349
|
+
this.columnName = schema.fields[columnId].name;
|
|
350
|
+
this.batches = batches;
|
|
351
|
+
this.batchValues = Array.from({ length: batches.length }, () => null);
|
|
352
|
+
this.loadedBatchValueCount = new Uint32Array(batches.length);
|
|
353
|
+
this.formattedRowCount = 0;
|
|
354
|
+
this.formattedLengthMax = 0;
|
|
355
|
+
this.formattedLengthSum = 0;
|
|
356
|
+
const valueFormatter = makeArrowValueFormatter(schema.fields[columnId], logger);
|
|
357
|
+
this.formatter = valueFormatter.format;
|
|
358
|
+
}
|
|
359
|
+
getValue(batch, row) {
|
|
360
|
+
const loaded = this.batchValues[batch];
|
|
361
|
+
if (loaded != null && this.loadedBatchValueCount[batch] === this.batches[batch].numRows) return loaded[row];
|
|
362
|
+
const values = loaded ?? new Array(this.batches[batch].numRows);
|
|
363
|
+
if (loaded == null) this.batchValues[batch] = values;
|
|
364
|
+
if (row in values) return values[row];
|
|
365
|
+
const column = this.batches[batch].getChildAt(this.columnId);
|
|
366
|
+
let raw;
|
|
367
|
+
try {
|
|
368
|
+
raw = column.get(row);
|
|
369
|
+
} catch (e) {
|
|
370
|
+
if (!isUnsafeIntegerConversion(e)) throw e;
|
|
371
|
+
raw = readRawInt64(column, row);
|
|
372
|
+
}
|
|
373
|
+
const text = raw == null ? null : this.formatter(raw) || "";
|
|
374
|
+
values[row] = text;
|
|
375
|
+
this.loadedBatchValueCount[batch]++;
|
|
376
|
+
this.formattedRowCount++;
|
|
377
|
+
if (text != null) {
|
|
378
|
+
this.formattedLengthSum += text.length;
|
|
379
|
+
this.formattedLengthMax = Math.max(this.formattedLengthMax, text.length);
|
|
380
|
+
}
|
|
381
|
+
return text;
|
|
382
|
+
}
|
|
383
|
+
getColumnName() {
|
|
384
|
+
return this.columnName;
|
|
385
|
+
}
|
|
386
|
+
getLayoutInfo() {
|
|
387
|
+
return {
|
|
388
|
+
headerWidth: this.columnName.length,
|
|
389
|
+
valueMaxWidth: this.formattedLengthMax,
|
|
390
|
+
valueAvgWidth: this.formattedLengthSum / Math.max(this.formattedRowCount, 1)
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
var ArrowTableFormatter = class {
|
|
395
|
+
columns;
|
|
396
|
+
batchOffsets;
|
|
397
|
+
rowIndex;
|
|
398
|
+
constructor(schema, batches, logger) {
|
|
399
|
+
const batchOffsets = new Uint32Array(batches.length);
|
|
400
|
+
let numRows = 0;
|
|
401
|
+
for (let i = 0; i < batches.length; ++i) {
|
|
402
|
+
batchOffsets[i] = numRows;
|
|
403
|
+
numRows += batches[i].numRows;
|
|
404
|
+
}
|
|
405
|
+
const rowIndex = new Uint32Array(numRows);
|
|
406
|
+
let rowIndexWriter = 0;
|
|
407
|
+
for (let i = 0; i < batches.length; ++i) for (let j = 0; j < batches[i].numRows; ++j) rowIndex[rowIndexWriter++] = i;
|
|
408
|
+
const columns = [];
|
|
409
|
+
for (let i = 0; i < schema.fields.length; ++i) {
|
|
410
|
+
const renderer = new ArrowTextColumnFormatter(logger, i, schema, batches);
|
|
411
|
+
columns.push(renderer);
|
|
412
|
+
}
|
|
413
|
+
this.columns = columns;
|
|
414
|
+
this.batchOffsets = batchOffsets;
|
|
415
|
+
this.rowIndex = rowIndex;
|
|
416
|
+
}
|
|
417
|
+
getValue(row, column) {
|
|
418
|
+
const batch = this.rowIndex[row];
|
|
419
|
+
const indexInBatch = row - this.batchOffsets[batch];
|
|
420
|
+
return this.columns[column].getValue(batch, indexInBatch);
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
function dataTypeToString(t) {
|
|
424
|
+
switch (t.typeId) {
|
|
425
|
+
case arrow.Type.Decimal: {
|
|
426
|
+
const d = t;
|
|
427
|
+
return `Decimal(${d.precision},${d.scale})`;
|
|
428
|
+
}
|
|
429
|
+
case arrow.Type.Timestamp: {
|
|
430
|
+
const ts = t;
|
|
431
|
+
let unit = "";
|
|
432
|
+
switch (ts.unit) {
|
|
433
|
+
case arrow.TimeUnit.SECOND:
|
|
434
|
+
unit = "s";
|
|
435
|
+
break;
|
|
436
|
+
case arrow.TimeUnit.MILLISECOND:
|
|
437
|
+
unit = "ms";
|
|
438
|
+
break;
|
|
439
|
+
case arrow.TimeUnit.MICROSECOND:
|
|
440
|
+
unit = "us";
|
|
441
|
+
break;
|
|
442
|
+
case arrow.TimeUnit.NANOSECOND: unit = "ns";
|
|
443
|
+
}
|
|
444
|
+
return `Timestamp(${unit})`;
|
|
445
|
+
}
|
|
446
|
+
case arrow.Type.Utf8: return `Text`;
|
|
447
|
+
default: return t.toString();
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
export { ArrowTableFormatter, ArrowTextColumnFormatter, arrowValueToJson, dataTypeToString, isArrowListType, isArrowStructuredType, makeArrowValueFormatter };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import * as arrow from 'apache-arrow';
|
|
2
|
+
import type * as core from '../../core/index.js';
|
|
3
|
+
import { ArrowTableFormatter } from './arrow_formatter.js';
|
|
4
|
+
import type { LoggerLike } from '../logger/logger.js';
|
|
5
|
+
export declare const ORDINAL_COLUMN = "ORDINAL";
|
|
6
|
+
export declare const STRING_COLUMN = "STRING";
|
|
7
|
+
export declare const LIST_COLUMN = "LIST";
|
|
8
|
+
export declare const SKIPPED_COLUMN = "SKIPPED";
|
|
9
|
+
export declare const ROWNUMBER_COLUMN = "ROWNUMBER";
|
|
10
|
+
export { TaskStatus } from '../../core/index.js';
|
|
11
|
+
export type TableComputationState = core.ComputationView;
|
|
12
|
+
export type ColumnGroup = core.ComputationColumnGroup;
|
|
13
|
+
export type GridValueColumn = core.ComputationValueColumn;
|
|
14
|
+
export type OrderByConstraint = core.ComputationOrderBy;
|
|
15
|
+
export type ComputationStateVersion = core.ComputationVersionValue;
|
|
16
|
+
export type ResultSearchState = core.ComputationSearch;
|
|
17
|
+
export type TrackedTask = core.ComputationTrackedTask;
|
|
18
|
+
export interface SummaryColumn extends Omit<GridValueColumn, 'inputFieldType'> {
|
|
19
|
+
inputFieldType: arrow.DataType;
|
|
20
|
+
}
|
|
21
|
+
export interface TableAggregation {
|
|
22
|
+
table: arrow.Table;
|
|
23
|
+
tableFieldsByName: Map<string, number>;
|
|
24
|
+
tableFormatter: ArrowTableFormatter;
|
|
25
|
+
countStarFieldName: string;
|
|
26
|
+
}
|
|
27
|
+
export interface OrdinalColumnAggregation {
|
|
28
|
+
columnEntry: SummaryColumn;
|
|
29
|
+
binnedValues: BinnedValuesTable;
|
|
30
|
+
binnedValuesFormatter: ArrowTableFormatter;
|
|
31
|
+
columnAnalysis: OrdinalColumnAnalysis;
|
|
32
|
+
}
|
|
33
|
+
export interface OrdinalColumnAnalysis {
|
|
34
|
+
totalCount: number;
|
|
35
|
+
countNotNull: number;
|
|
36
|
+
countNull: number;
|
|
37
|
+
minValue: string;
|
|
38
|
+
maxValue: string;
|
|
39
|
+
binCount: number;
|
|
40
|
+
binValueCounts: BigInt64Array;
|
|
41
|
+
binPercentages: Float64Array;
|
|
42
|
+
binLowerBounds: string[];
|
|
43
|
+
}
|
|
44
|
+
export interface StringColumnAggregation {
|
|
45
|
+
columnEntry: SummaryColumn;
|
|
46
|
+
frequentValuesTable: FrequentValuesTable;
|
|
47
|
+
frequentValuesFormatter: ArrowTableFormatter;
|
|
48
|
+
analysis: StringColumnAnalysis;
|
|
49
|
+
}
|
|
50
|
+
export interface StringColumnAnalysis {
|
|
51
|
+
totalCount: number;
|
|
52
|
+
countNotNull: number;
|
|
53
|
+
countNull: number;
|
|
54
|
+
countDistinct: number;
|
|
55
|
+
isUnique: boolean;
|
|
56
|
+
frequentValueStrings: (string | null)[];
|
|
57
|
+
frequentValueIds: BigInt64Array;
|
|
58
|
+
frequentValueCounts: BigInt64Array;
|
|
59
|
+
frequentValuePercentages: Float64Array;
|
|
60
|
+
}
|
|
61
|
+
export type ColumnAggregationVariant = {
|
|
62
|
+
type: typeof ORDINAL_COLUMN;
|
|
63
|
+
value: OrdinalColumnAggregation;
|
|
64
|
+
} | {
|
|
65
|
+
type: typeof STRING_COLUMN;
|
|
66
|
+
value: StringColumnAggregation;
|
|
67
|
+
} | {
|
|
68
|
+
type: typeof LIST_COLUMN;
|
|
69
|
+
value: null;
|
|
70
|
+
} | {
|
|
71
|
+
type: typeof SKIPPED_COLUMN;
|
|
72
|
+
value: null;
|
|
73
|
+
};
|
|
74
|
+
export type WithFilterEpoch<T> = T & {
|
|
75
|
+
filterVersion: ComputationStateVersion;
|
|
76
|
+
dataSearchRequestId: number | null;
|
|
77
|
+
};
|
|
78
|
+
export type BinnedValuesTable<WidthType extends arrow.DataType = arrow.DataType, BoundType extends arrow.DataType = arrow.DataType> = arrow.Table<{
|
|
79
|
+
bin: arrow.Int32;
|
|
80
|
+
binWidth: WidthType;
|
|
81
|
+
binLowerBound: BoundType;
|
|
82
|
+
binUpperBound: BoundType;
|
|
83
|
+
count: arrow.Int64;
|
|
84
|
+
}>;
|
|
85
|
+
export type FrequentValuesTable<KeyType extends arrow.DataType = arrow.DataType> = arrow.Table<{
|
|
86
|
+
key: KeyType;
|
|
87
|
+
keyId: arrow.Int64;
|
|
88
|
+
count: arrow.Int64;
|
|
89
|
+
}>;
|
|
90
|
+
export interface ComputationSummaries {
|
|
91
|
+
tableAggregation: TableAggregation | null;
|
|
92
|
+
columnAggregates: (ColumnAggregationVariant | null)[];
|
|
93
|
+
filteredColumnAggregates: (WithFilterEpoch<ColumnAggregationVariant> | null)[];
|
|
94
|
+
}
|
|
95
|
+
export interface SummaryTables {
|
|
96
|
+
table(handle: number | null | undefined): arrow.Table | undefined;
|
|
97
|
+
}
|
|
98
|
+
export declare function resolveTableAggregation(view: TableComputationState, tables: SummaryTables, logger: LoggerLike): TableAggregation | null;
|
|
99
|
+
export declare function resolveSummaries(view: TableComputationState, tables: SummaryTables, logger: LoggerLike): ComputationSummaries;
|
|
100
|
+
export declare function resolveMatchingRows(view: TableComputationState | null, tables: SummaryTables): Map<number, number[]> | null;
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { TaskStatus } from "../../wasm/dashql_core.js";
|
|
2
|
+
import { ArrowTableFormatter } from "./arrow_formatter.js";
|
|
3
|
+
import { parseDataSearchMatches } from "./query_result_search_sql.js";
|
|
4
|
+
import "../../core/index.js";
|
|
5
|
+
import * as arrow from "apache-arrow";
|
|
6
|
+
// dist/.stage/src/platform/compute/computation_types.ts
|
|
7
|
+
var ORDINAL_COLUMN = "ORDINAL";
|
|
8
|
+
var STRING_COLUMN = "STRING";
|
|
9
|
+
var LIST_COLUMN = "LIST";
|
|
10
|
+
var SKIPPED_COLUMN = "SKIPPED";
|
|
11
|
+
var ROWNUMBER_COLUMN = "ROWNUMBER";
|
|
12
|
+
var TEMPORAL_BOUND_FORMAT = Intl.DateTimeFormat("en-US", {
|
|
13
|
+
dateStyle: "short",
|
|
14
|
+
timeStyle: "medium"
|
|
15
|
+
});
|
|
16
|
+
var built = /* @__PURE__ */ new WeakMap();
|
|
17
|
+
function once(table, build) {
|
|
18
|
+
if (built.has(table)) return built.get(table);
|
|
19
|
+
const value = build();
|
|
20
|
+
built.set(table, value);
|
|
21
|
+
return value;
|
|
22
|
+
}
|
|
23
|
+
function resolveTableAggregation(view, tables, logger) {
|
|
24
|
+
const aggregation = view.tableAggregation;
|
|
25
|
+
const table = aggregation == null ? void 0 : tables.table(aggregation.table);
|
|
26
|
+
if (aggregation == null || table == null) return null;
|
|
27
|
+
return once(table, () => ({
|
|
28
|
+
table,
|
|
29
|
+
tableFieldsByName: new Map(table.schema.fields.map((field, i) => [field.name, i])),
|
|
30
|
+
tableFormatter: new ArrowTableFormatter(table.schema, table.batches, logger),
|
|
31
|
+
countStarFieldName: aggregation.countStarFieldName
|
|
32
|
+
}));
|
|
33
|
+
}
|
|
34
|
+
function summaryColumn(group, dataTable) {
|
|
35
|
+
if (group == null || group.type !== "ORDINAL" && group.type !== "STRING" && group.type !== "LIST") return null;
|
|
36
|
+
const field = dataTable?.schema.fields.find((field) => field.name === group.value.inputFieldName);
|
|
37
|
+
return {
|
|
38
|
+
...group.value,
|
|
39
|
+
inputFieldType: field?.type ?? new arrow.Null()
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function resolveAggregate(aggregate, group, stats, dataTable, tables, logger) {
|
|
43
|
+
if (aggregate == null) return null;
|
|
44
|
+
if (aggregate.kind === "skipped") return SKIPPED_AGGREGATE;
|
|
45
|
+
if (aggregate.kind === "list") return {
|
|
46
|
+
type: LIST_COLUMN,
|
|
47
|
+
value: null
|
|
48
|
+
};
|
|
49
|
+
const table = tables.table(aggregate.table);
|
|
50
|
+
const analysis = aggregate.analysis;
|
|
51
|
+
if (table == null || analysis == null || stats == null) return null;
|
|
52
|
+
return once(table, () => {
|
|
53
|
+
const column = summaryColumn(group, dataTable);
|
|
54
|
+
if (column == null) return null;
|
|
55
|
+
const formatter = new ArrowTableFormatter(table.schema, table.batches, logger);
|
|
56
|
+
if (analysis.kind === "ordinal" && group?.type === "ORDINAL") return {
|
|
57
|
+
type: ORDINAL_COLUMN,
|
|
58
|
+
value: {
|
|
59
|
+
columnEntry: column,
|
|
60
|
+
binnedValues: table,
|
|
61
|
+
binnedValuesFormatter: formatter,
|
|
62
|
+
columnAnalysis: ordinalAnalysis(analysis, stats, column, table, formatter)
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
if (analysis.kind === "string" && group?.type === "STRING") return {
|
|
66
|
+
type: STRING_COLUMN,
|
|
67
|
+
value: {
|
|
68
|
+
columnEntry: column,
|
|
69
|
+
frequentValuesTable: table,
|
|
70
|
+
frequentValuesFormatter: formatter,
|
|
71
|
+
analysis: stringAnalysis(analysis, table, formatter)
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
return null;
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
var SKIPPED_AGGREGATE = {
|
|
78
|
+
type: SKIPPED_COLUMN,
|
|
79
|
+
value: null
|
|
80
|
+
};
|
|
81
|
+
var epochs = /* @__PURE__ */ new WeakMap();
|
|
82
|
+
function resolveSummaries(view, tables, logger) {
|
|
83
|
+
const dataTable = tables.table(view.dataTable);
|
|
84
|
+
const tableAggregation = resolveTableAggregation(view, tables, logger);
|
|
85
|
+
return {
|
|
86
|
+
tableAggregation,
|
|
87
|
+
columnAggregates: view.columnAggregates.map((aggregate, i) => resolveAggregate(aggregate, view.columnGroups[i], tableAggregation, dataTable, tables, logger)),
|
|
88
|
+
filteredColumnAggregates: view.filteredColumnAggregates.map((filtered, i) => {
|
|
89
|
+
if (filtered == null) return null;
|
|
90
|
+
const aggregate = resolveAggregate(filtered.aggregate, view.columnGroups[i], tableAggregation, dataTable, tables, logger);
|
|
91
|
+
if (aggregate == null) return null;
|
|
92
|
+
let epoch = epochs.get(filtered);
|
|
93
|
+
if (epoch == null || epoch.type !== aggregate.type || epoch.value !== aggregate.value) {
|
|
94
|
+
epoch = {
|
|
95
|
+
...aggregate,
|
|
96
|
+
filterVersion: filtered.filterVersion,
|
|
97
|
+
dataSearchRequestId: filtered.dataSearchRequestId
|
|
98
|
+
};
|
|
99
|
+
epochs.set(filtered, epoch);
|
|
100
|
+
}
|
|
101
|
+
return epoch;
|
|
102
|
+
})
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
function resolveMatchingRows(view, tables) {
|
|
106
|
+
if (view == null || !view.dataSearch.hasMatchingRows) return null;
|
|
107
|
+
const table = tables.table(view.dataSearchTable?.dataTable);
|
|
108
|
+
if (table == null) return EMPTY_MATCHES;
|
|
109
|
+
return once(table, () => parseDataSearchMatches(table));
|
|
110
|
+
}
|
|
111
|
+
var EMPTY_MATCHES = /* @__PURE__ */ new Map();
|
|
112
|
+
function ordinalAnalysis(analysis, stats, column, binned, formatter) {
|
|
113
|
+
const statistic = (field) => {
|
|
114
|
+
const index = field == null ? void 0 : stats.tableFieldsByName.get(field);
|
|
115
|
+
return index == null || stats.table.numRows === 0 ? "" : stats.tableFormatter.getValue(0, index) ?? "";
|
|
116
|
+
};
|
|
117
|
+
const lowerBound = binned.schema.fields.findIndex((field) => field.name === "binLowerBound");
|
|
118
|
+
const binLowerBounds = analysis.binLowerBounds.map((bound, i) => {
|
|
119
|
+
if (analysis.binBounds === "epochMillis") return bound == null ? "" : TEMPORAL_BOUND_FORMAT.format(new Date(bound));
|
|
120
|
+
return lowerBound < 0 || i >= binned.numRows ? "" : formatter.getValue(i, lowerBound) ?? "";
|
|
121
|
+
});
|
|
122
|
+
return {
|
|
123
|
+
totalCount: analysis.totalCount,
|
|
124
|
+
countNotNull: analysis.countNotNull,
|
|
125
|
+
countNull: analysis.countNull,
|
|
126
|
+
minValue: statistic(column.statsFields?.minAggregateFieldName),
|
|
127
|
+
maxValue: statistic(column.statsFields?.maxAggregateFieldName),
|
|
128
|
+
binCount: analysis.binCount,
|
|
129
|
+
binValueCounts: BigInt64Array.from(analysis.binValueCounts, (count) => BigInt(count)),
|
|
130
|
+
binPercentages: Float64Array.from(analysis.binPercentages),
|
|
131
|
+
binLowerBounds
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function stringAnalysis(analysis, frequentValues, formatter) {
|
|
135
|
+
const key = Math.max(0, frequentValues.schema.fields.findIndex((field) => field.name === "key"));
|
|
136
|
+
const frequentValueStrings = [];
|
|
137
|
+
for (let i = 0; i < frequentValues.numRows; ++i) frequentValueStrings.push(formatter.getValue(i, key));
|
|
138
|
+
return {
|
|
139
|
+
totalCount: analysis.totalCount,
|
|
140
|
+
countNotNull: analysis.countNotNull,
|
|
141
|
+
countNull: analysis.countNull,
|
|
142
|
+
countDistinct: analysis.countDistinct,
|
|
143
|
+
isUnique: analysis.isUnique,
|
|
144
|
+
frequentValueStrings,
|
|
145
|
+
frequentValueIds: BigInt64Array.from(analysis.frequentValueIds, (id) => BigInt(id)),
|
|
146
|
+
frequentValueCounts: BigInt64Array.from(analysis.frequentValueCounts, (count) => BigInt(count)),
|
|
147
|
+
frequentValuePercentages: Float64Array.from(analysis.frequentValuePercentages)
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
export { LIST_COLUMN, ORDINAL_COLUMN, ROWNUMBER_COLUMN, SKIPPED_COLUMN, STRING_COLUMN, TaskStatus, resolveMatchingRows, resolveSummaries, resolveTableAggregation };
|