@loaders.gl/sql 5.0.0-alpha.11 → 5.0.0-alpha.13
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 +1 -1
- package/README.md +2 -2
- package/dist/arrow-query.cjs +8 -8
- package/dist/arrow-query.cjs.map +2 -2
- package/dist/arrow-table-source.d.ts +3 -3
- package/dist/arrow-table-source.d.ts.map +1 -1
- package/dist/arrow-table-source.js +2 -2
- package/dist/arrow-table-source.js.map +1 -1
- package/dist/bind-sql-predicate.js +1 -1
- package/dist/bind-sql-predicate.js.map +1 -1
- package/dist/compile-table-query.d.ts +1 -1
- package/dist/compile-table-query.d.ts.map +1 -1
- package/dist/duckdb-sql-source.d.ts +12 -12
- package/dist/duckdb-sql-source.d.ts.map +1 -1
- package/dist/duckdb-sql-source.js +2 -2
- package/dist/duckdb-sql-source.js.map +1 -1
- package/dist/index.cjs +29 -29
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/query-arrow-table.d.ts +16 -16
- package/dist/query-arrow-table.d.ts.map +1 -1
- package/dist/query-arrow-table.js +2 -2
- package/dist/query-arrow-table.js.map +1 -1
- package/dist/snowflake-sql-source.d.ts +12 -12
- package/dist/snowflake-sql-source.d.ts.map +1 -1
- package/dist/snowflake-sql-source.js +1 -1
- package/dist/sql-predicate-types.d.ts +1 -1
- package/dist/sql-predicate-types.d.ts.map +1 -1
- package/dist/sql-predicate-types.js +1 -1
- package/dist/sql-predicate-types.js.map +1 -1
- package/dist/sql-predicate.cjs +1 -1
- package/dist/sql-predicate.cjs.map +1 -1
- package/dist/sql-source.d.ts +9 -9
- package/dist/sql-source.d.ts.map +1 -1
- package/dist/sql-source.js +1 -1
- package/dist/sql-source.js.map +1 -1
- package/dist/sql-types.d.ts +2 -2
- package/dist/sql-types.d.ts.map +1 -1
- package/dist/sql-utils.d.ts +1 -1
- package/dist/sql-utils.d.ts.map +1 -1
- package/dist/sql-utils.js +1 -1
- package/dist/sql-utils.js.map +1 -1
- package/dist/table-query-capabilities.d.ts +1 -1
- package/dist/table-query-capabilities.d.ts.map +1 -1
- package/dist/table-query.cjs +3 -3
- package/dist/table-query.cjs.map +2 -2
- package/dist/table-query.d.ts +2 -2
- package/dist/table-query.d.ts.map +1 -1
- package/dist/table-query.js +1 -1
- package/dist/table-query.js.map +1 -1
- package/package.json +2 -5
- package/src/arrow-table-source.ts +4 -4
- package/src/bind-sql-predicate.ts +1 -1
- package/src/compile-table-query.ts +1 -1
- package/src/duckdb-sql-source.ts +3 -3
- package/src/index.ts +1 -1
- package/src/query-arrow-table.ts +4 -4
- package/src/snowflake-sql-source.ts +2 -2
- package/src/sql-predicate-types.ts +1 -1
- package/src/sql-source.ts +3 -3
- package/src/sql-types.ts +2 -2
- package/src/sql-utils.ts +2 -2
- package/src/table-query-capabilities.ts +1 -1
- package/src/table-query.ts +3 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/sql",
|
|
3
3
|
"description": "Framework-independent SQL data sources",
|
|
4
|
-
"version": "5.0.0-alpha.
|
|
4
|
+
"version": "5.0.0-alpha.13",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"publishConfig": {
|
|
@@ -63,9 +63,6 @@
|
|
|
63
63
|
"build-bundle": "# ocular-bundle ./bundle.ts --external:{util,fs,path}"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@loaders.gl/loader-utils": "5.0.0-alpha.11",
|
|
67
|
-
"@loaders.gl/schema": "5.0.0-alpha.11",
|
|
68
|
-
"@loaders.gl/schema-utils": "5.0.0-alpha.11",
|
|
69
66
|
"apache-arrow": ">= 17.0.0"
|
|
70
67
|
},
|
|
71
68
|
"peerDependencies": {
|
|
@@ -90,5 +87,5 @@
|
|
|
90
87
|
"@duckdb/node-api": "^1.5.2-r.1",
|
|
91
88
|
"zod": "^4.1.12"
|
|
92
89
|
},
|
|
93
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "1464ee8e912521b658a51f96c88c3b2310ceb2cd"
|
|
94
91
|
}
|
|
@@ -6,15 +6,15 @@ import type {
|
|
|
6
6
|
DataSourceOptions,
|
|
7
7
|
ScanQueryMetadata,
|
|
8
8
|
ScanQueryMetadataOptions
|
|
9
|
-
} from '@loaders.gl/loader-utils';
|
|
9
|
+
} from '@loaders.gl/core/loader-utils';
|
|
10
10
|
import {
|
|
11
11
|
createScanQueryMetadata,
|
|
12
12
|
DataSource,
|
|
13
13
|
makeTableScanBatch,
|
|
14
14
|
type ScanColumnRole
|
|
15
|
-
} from '@loaders.gl/loader-utils';
|
|
16
|
-
import {convertArrowToSchema} from '@loaders.gl/schema-utils';
|
|
17
|
-
import type {ArrowTable, ArrowTableBatch} from '@loaders.gl/schema';
|
|
15
|
+
} from '@loaders.gl/core/loader-utils';
|
|
16
|
+
import {convertArrowToSchema} from '@loaders.gl/core/schema-utils';
|
|
17
|
+
import type {ArrowTable, ArrowTableBatch} from '@loaders.gl/core/schema';
|
|
18
18
|
import {
|
|
19
19
|
ARROW_TABLE_QUERY_CAPABILITIES,
|
|
20
20
|
explainArrowTableQuery,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import {bindColumnarPredicateParameters} from '@loaders.gl/loader-utils';
|
|
5
|
+
import {bindColumnarPredicateParameters} from '@loaders.gl/core/loader-utils';
|
|
6
6
|
|
|
7
7
|
import {validateSQLPredicate} from './sql-predicate-schema';
|
|
8
8
|
import {
|
|
@@ -15,7 +15,7 @@ import type {
|
|
|
15
15
|
RelationalAggregate,
|
|
16
16
|
RelationalExpression,
|
|
17
17
|
RelationalOrderKey
|
|
18
|
-
} from '@loaders.gl/loader-utils';
|
|
18
|
+
} from '@loaders.gl/core/loader-utils';
|
|
19
19
|
|
|
20
20
|
/** A named child relation using the SQL module's property-oriented predicate AST. */
|
|
21
21
|
type SQLChildQuery = Readonly<{
|
package/src/duckdb-sql-source.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import type {Schema} from '@loaders.gl/schema';
|
|
6
|
-
import type {SourceLoader, CoreAPI} from '@loaders.gl/loader-utils';
|
|
7
|
-
import {convertArrowToTable} from '@loaders.gl/schema-utils';
|
|
5
|
+
import type {Schema} from '@loaders.gl/core/schema';
|
|
6
|
+
import type {SourceLoader, CoreAPI} from '@loaders.gl/core/loader-utils';
|
|
7
|
+
import {convertArrowToTable} from '@loaders.gl/core/schema-utils';
|
|
8
8
|
|
|
9
9
|
import {SQLDataSource, SQL_SOURCE_DEFAULT_OPTIONS} from './sql-source';
|
|
10
10
|
import type {
|
package/src/index.ts
CHANGED
package/src/query-arrow-table.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
5
|
import * as arrow from 'apache-arrow';
|
|
6
|
-
import type {ArrowTable} from '@loaders.gl/schema';
|
|
7
|
-
import {convertArrowToSchema} from '@loaders.gl/schema-utils';
|
|
6
|
+
import type {ArrowTable} from '@loaders.gl/core/schema';
|
|
7
|
+
import {convertArrowToSchema} from '@loaders.gl/core/schema-utils';
|
|
8
8
|
import {convertRowsToArrowTable} from './sql-utils';
|
|
9
9
|
|
|
10
10
|
import {
|
|
@@ -31,11 +31,11 @@ import type {
|
|
|
31
31
|
RelationalAggregate,
|
|
32
32
|
RelationalExpression,
|
|
33
33
|
RelationalOrderKey
|
|
34
|
-
} from '@loaders.gl/loader-utils';
|
|
34
|
+
} from '@loaders.gl/core/loader-utils';
|
|
35
35
|
import {
|
|
36
36
|
explainTableQuery as explainColumnarTableQuery,
|
|
37
37
|
planRelationalQuery
|
|
38
|
-
} from '@loaders.gl/loader-utils';
|
|
38
|
+
} from '@loaders.gl/core/loader-utils';
|
|
39
39
|
import {ARROW_TABLE_QUERY_CAPABILITIES} from './table-query-capabilities';
|
|
40
40
|
import {validateSQLPredicate} from './sql-predicate-schema';
|
|
41
41
|
export {ARROW_TABLE_QUERY_CAPABILITIES};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import type {Schema} from '@loaders.gl/schema';
|
|
6
|
-
import type {SourceLoader, CoreAPI} from '@loaders.gl/loader-utils';
|
|
5
|
+
import type {Schema} from '@loaders.gl/core/schema';
|
|
6
|
+
import type {SourceLoader, CoreAPI} from '@loaders.gl/core/loader-utils';
|
|
7
7
|
|
|
8
8
|
import {SQLDataSource, SQL_SOURCE_DEFAULT_OPTIONS} from './sql-source';
|
|
9
9
|
import type {
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
type ColumnarPredicateParameter,
|
|
15
15
|
type ColumnarPredicateParameterValues,
|
|
16
16
|
type ColumnarPredicateValue
|
|
17
|
-
} from '@loaders.gl/loader-utils';
|
|
17
|
+
} from '@loaders.gl/core/loader-utils';
|
|
18
18
|
|
|
19
19
|
/** Scalar values supported by portable SQL predicate expressions. */
|
|
20
20
|
export type SQLPredicateScalar = ColumnarPredicateValue;
|
package/src/sql-source.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import type {ArrowTable, Schema} from '@loaders.gl/schema';
|
|
6
|
-
import {DataSource} from '@loaders.gl/loader-utils';
|
|
7
|
-
import type {CoreAPI, RequiredOptions} from '@loaders.gl/loader-utils';
|
|
5
|
+
import type {ArrowTable, Schema} from '@loaders.gl/core/schema';
|
|
6
|
+
import {DataSource} from '@loaders.gl/core/loader-utils';
|
|
7
|
+
import type {CoreAPI, RequiredOptions} from '@loaders.gl/core/loader-utils';
|
|
8
8
|
|
|
9
9
|
import type {
|
|
10
10
|
SQLAdapter,
|
package/src/sql-types.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import type {ArrowTable, Schema} from '@loaders.gl/schema';
|
|
6
|
-
import type {CoreAPI, DataSourceOptions} from '@loaders.gl/loader-utils';
|
|
5
|
+
import type {ArrowTable, Schema} from '@loaders.gl/core/schema';
|
|
6
|
+
import type {CoreAPI, DataSourceOptions} from '@loaders.gl/core/loader-utils';
|
|
7
7
|
import type {SQLTableQuery} from './compile-table-query';
|
|
8
8
|
|
|
9
9
|
export type SQLParameterValues = unknown[] | Record<string, unknown>;
|
package/src/sql-utils.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
5
|
import * as arrow from 'apache-arrow';
|
|
6
|
-
import type {ArrowTable, DataType, Field, ObjectRowTable, Schema} from '@loaders.gl/schema';
|
|
7
|
-
import {makeTableFromData, getDataTypeFromArray} from '@loaders.gl/schema-utils';
|
|
6
|
+
import type {ArrowTable, DataType, Field, ObjectRowTable, Schema} from '@loaders.gl/core/schema';
|
|
7
|
+
import {makeTableFromData, getDataTypeFromArray} from '@loaders.gl/core/schema-utils';
|
|
8
8
|
|
|
9
9
|
import type {SQLColumnInfo} from './sql-types';
|
|
10
10
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import type {TableQueryCapabilities} from '@loaders.gl/loader-utils';
|
|
5
|
+
import type {TableQueryCapabilities} from '@loaders.gl/core/loader-utils';
|
|
6
6
|
|
|
7
7
|
/** Portable query capabilities of the in-memory Arrow executor. */
|
|
8
8
|
export const ARROW_TABLE_QUERY_CAPABILITIES: TableQueryCapabilities = Object.freeze({
|
package/src/table-query.ts
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
type TableQueryPlanStep as ColumnarTableQueryPlanStep,
|
|
14
14
|
type TableQueryProjectStep as ColumnarTableQueryProjectStep,
|
|
15
15
|
type TableQueryScanStep as ColumnarTableQueryScanStep
|
|
16
|
-
} from '@loaders.gl/loader-utils';
|
|
16
|
+
} from '@loaders.gl/core/loader-utils';
|
|
17
17
|
|
|
18
18
|
import {validateSQLPredicate} from './sql-predicate-schema';
|
|
19
19
|
import type {SQLPredicate} from './sql-predicate-types';
|
|
@@ -38,7 +38,8 @@ export type TableQueryPlanStep = ColumnarTableQueryPlanStep<SQLPredicate>;
|
|
|
38
38
|
|
|
39
39
|
/** Immutable logical query plan shared by Arrow and GPU dataframe backends. */
|
|
40
40
|
export type TableQueryPlan = ColumnarTableQueryPlan<SQLPredicate>;
|
|
41
|
-
export type TableQueryExplain =
|
|
41
|
+
export type TableQueryExplain =
|
|
42
|
+
import('@loaders.gl/core/loader-utils').TableQueryExplain<SQLPredicate>;
|
|
42
43
|
import {SQL_DATA_SOURCE_TABLE_QUERY_CAPABILITIES} from './table-query-capabilities';
|
|
43
44
|
|
|
44
45
|
/**
|