@math.gl/sql 0.0.0-stage → 5.0.0-beta.11
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 +249 -0
- package/README.md +26 -2
- package/THIRD-PARTY-NOTICES.md +5 -0
- package/dist/arrow/aggregates.d.ts +46 -0
- package/dist/arrow/aggregates.d.ts.map +1 -0
- package/dist/arrow/aggregates.js +289 -0
- package/dist/arrow/aggregates.js.map +1 -0
- package/dist/arrow/buffers.d.ts +30 -0
- package/dist/arrow/buffers.d.ts.map +1 -0
- package/dist/arrow/buffers.js +177 -0
- package/dist/arrow/buffers.js.map +1 -0
- package/dist/arrow/cast.d.ts +19 -0
- package/dist/arrow/cast.d.ts.map +1 -0
- package/dist/arrow/cast.js +138 -0
- package/dist/arrow/cast.js.map +1 -0
- package/dist/arrow/compiler.d.ts +10 -0
- package/dist/arrow/compiler.d.ts.map +1 -0
- package/dist/arrow/compiler.js +1421 -0
- package/dist/arrow/compiler.js.map +1 -0
- package/dist/arrow/float16.d.ts +7 -0
- package/dist/arrow/float16.d.ts.map +1 -0
- package/dist/arrow/float16.js +26 -0
- package/dist/arrow/float16.js.map +1 -0
- package/dist/arrow/index.cjs +3220 -0
- package/dist/arrow/index.cjs.map +6 -0
- package/dist/arrow/index.d.ts +5 -0
- package/dist/arrow/index.d.ts.map +1 -0
- package/dist/arrow/index.js +7 -0
- package/dist/arrow/index.js.map +1 -0
- package/dist/arrow/like.d.ts +3 -0
- package/dist/arrow/like.d.ts.map +1 -0
- package/dist/arrow/like.js +75 -0
- package/dist/arrow/like.js.map +1 -0
- package/dist/arrow/list-values.d.ts +14 -0
- package/dist/arrow/list-values.d.ts.map +1 -0
- package/dist/arrow/list-values.js +180 -0
- package/dist/arrow/list-values.js.map +1 -0
- package/dist/arrow/predicate.d.ts +7 -0
- package/dist/arrow/predicate.d.ts.map +1 -0
- package/dist/arrow/predicate.js +10 -0
- package/dist/arrow/predicate.js.map +1 -0
- package/dist/arrow/query-arrow-aggregate-snapshots.d.ts +24 -0
- package/dist/arrow/query-arrow-aggregate-snapshots.d.ts.map +1 -0
- package/dist/arrow/query-arrow-aggregate-snapshots.js +64 -0
- package/dist/arrow/query-arrow-aggregate-snapshots.js.map +1 -0
- package/dist/arrow/query-arrow-sql.d.ts +8 -0
- package/dist/arrow/query-arrow-sql.d.ts.map +1 -0
- package/dist/arrow/query-arrow-sql.js +191 -0
- package/dist/arrow/query-arrow-sql.js.map +1 -0
- package/dist/arrow/query-arrow-table.d.ts +36 -0
- package/dist/arrow/query-arrow-table.d.ts.map +1 -0
- package/dist/arrow/query-arrow-table.js +208 -0
- package/dist/arrow/query-arrow-table.js.map +1 -0
- package/dist/arrow/query-worker-entry.d.ts +2 -0
- package/dist/arrow/query-worker-entry.d.ts.map +1 -0
- package/dist/arrow/query-worker-entry.js +7 -0
- package/dist/arrow/query-worker-entry.js.map +1 -0
- package/dist/arrow/query-worker.d.ts +65 -0
- package/dist/arrow/query-worker.d.ts.map +1 -0
- package/dist/arrow/query-worker.js +135 -0
- package/dist/arrow/query-worker.js.map +1 -0
- package/dist/arrow/registry.d.ts +4 -0
- package/dist/arrow/registry.d.ts.map +1 -0
- package/dist/arrow/registry.js +65 -0
- package/dist/arrow/registry.js.map +1 -0
- package/dist/arrow/relational-query.d.ts +36 -0
- package/dist/arrow/relational-query.d.ts.map +1 -0
- package/dist/arrow/relational-query.js +174 -0
- package/dist/arrow/relational-query.js.map +1 -0
- package/dist/arrow/replace-arrow-columns.d.ts +8 -0
- package/dist/arrow/replace-arrow-columns.d.ts.map +1 -0
- package/dist/arrow/replace-arrow-columns.js +63 -0
- package/dist/arrow/replace-arrow-columns.js.map +1 -0
- package/dist/arrow/signature.d.ts +6 -0
- package/dist/arrow/signature.d.ts.map +1 -0
- package/dist/arrow/signature.js +51 -0
- package/dist/arrow/signature.js.map +1 -0
- package/dist/arrow/temporal-cast.d.ts +9 -0
- package/dist/arrow/temporal-cast.d.ts.map +1 -0
- package/dist/arrow/temporal-cast.js +60 -0
- package/dist/arrow/temporal-cast.js.map +1 -0
- package/dist/arrow/types.d.ts +62 -0
- package/dist/arrow/types.d.ts.map +1 -0
- package/dist/arrow/types.js +5 -0
- package/dist/arrow/types.js.map +1 -0
- package/dist/arrow/worker-entry.d.ts +2 -0
- package/dist/arrow/worker-entry.d.ts.map +1 -0
- package/dist/arrow/worker-entry.js +9 -0
- package/dist/arrow/worker-entry.js.map +1 -0
- package/dist/arrow/worker.cjs +3973 -0
- package/dist/arrow/worker.cjs.map +6 -0
- package/dist/arrow/worker.d.ts +58 -0
- package/dist/arrow/worker.d.ts.map +1 -0
- package/dist/arrow/worker.js +84 -0
- package/dist/arrow/worker.js.map +1 -0
- package/dist/color/index.cjs +382 -0
- package/dist/color/index.cjs.map +6 -0
- package/dist/color/index.d.ts +26 -0
- package/dist/color/index.d.ts.map +1 -0
- package/dist/color/index.js +306 -0
- package/dist/color/index.js.map +1 -0
- package/dist/diagnostic-log.d.ts +8 -0
- package/dist/diagnostic-log.d.ts.map +1 -0
- package/dist/diagnostic-log.js +15 -0
- package/dist/diagnostic-log.js.map +1 -0
- package/dist/expressions/ast.d.ts +12 -0
- package/dist/expressions/ast.d.ts.map +1 -0
- package/dist/expressions/ast.js +112 -0
- package/dist/expressions/ast.js.map +1 -0
- package/dist/expressions/columnar-predicate.d.ts +56 -0
- package/dist/expressions/columnar-predicate.d.ts.map +1 -0
- package/dist/expressions/columnar-predicate.js +176 -0
- package/dist/expressions/columnar-predicate.js.map +1 -0
- package/dist/expressions/evaluation-error.d.ts +14 -0
- package/dist/expressions/evaluation-error.d.ts.map +1 -0
- package/dist/expressions/evaluation-error.js +26 -0
- package/dist/expressions/evaluation-error.js.map +1 -0
- package/dist/expressions/expression-eval.d.ts +96 -0
- package/dist/expressions/expression-eval.d.ts.map +1 -0
- package/dist/expressions/expression-eval.js +330 -0
- package/dist/expressions/expression-eval.js.map +1 -0
- package/dist/expressions/function-libraries.d.ts +63 -0
- package/dist/expressions/function-libraries.d.ts.map +1 -0
- package/dist/expressions/function-libraries.js +69 -0
- package/dist/expressions/function-libraries.js.map +1 -0
- package/dist/expressions/function-registry.d.ts +93 -0
- package/dist/expressions/function-registry.d.ts.map +1 -0
- package/dist/expressions/function-registry.js +139 -0
- package/dist/expressions/function-registry.js.map +1 -0
- package/dist/expressions/get.d.ts +9 -0
- package/dist/expressions/get.d.ts.map +1 -0
- package/dist/expressions/get.js +32 -0
- package/dist/expressions/get.js.map +1 -0
- package/dist/expressions/index.cjs +1888 -0
- package/dist/expressions/index.cjs.map +6 -0
- package/dist/expressions/index.d.ts +13 -0
- package/dist/expressions/index.d.ts.map +1 -0
- package/dist/expressions/index.js +14 -0
- package/dist/expressions/index.js.map +1 -0
- package/dist/expressions/numeric-functions.d.ts +277 -0
- package/dist/expressions/numeric-functions.d.ts.map +1 -0
- package/dist/expressions/numeric-functions.js +52 -0
- package/dist/expressions/numeric-functions.js.map +1 -0
- package/dist/expressions/parse-expression-string.d.ts +21 -0
- package/dist/expressions/parse-expression-string.d.ts.map +1 -0
- package/dist/expressions/parse-expression-string.js +61 -0
- package/dist/expressions/parse-expression-string.js.map +1 -0
- package/dist/expressions/predicate-expression.d.ts +7 -0
- package/dist/expressions/predicate-expression.d.ts.map +1 -0
- package/dist/expressions/predicate-expression.js +112 -0
- package/dist/expressions/predicate-expression.js.map +1 -0
- package/dist/expressions/scalar-type.d.ts +6 -0
- package/dist/expressions/scalar-type.d.ts.map +1 -0
- package/dist/expressions/scalar-type.js +23 -0
- package/dist/expressions/scalar-type.js.map +1 -0
- package/dist/expressions/vendor/jsep/runtime.d.ts +3 -0
- package/dist/expressions/vendor/jsep/runtime.d.ts.map +1 -0
- package/dist/expressions/vendor/jsep/runtime.js +972 -0
- package/dist/expressions/vendor/jsep/runtime.js.map +1 -0
- package/dist/expressions/vendor/jsep/types.d.ts +148 -0
- package/dist/expressions/vendor/jsep/types.d.ts.map +1 -0
- package/dist/expressions/vendor/jsep/types.js +6 -0
- package/dist/expressions/vendor/jsep/types.js.map +1 -0
- package/dist/index.cjs +4865 -0
- package/dist/index.cjs.map +6 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/math/index.cjs +444 -0
- package/dist/math/index.cjs.map +6 -0
- package/dist/math/index.d.ts +44 -0
- package/dist/math/index.d.ts.map +1 -0
- package/dist/math/index.js +182 -0
- package/dist/math/index.js.map +1 -0
- package/dist/scales/arrow-domains.d.ts +15 -0
- package/dist/scales/arrow-domains.d.ts.map +1 -0
- package/dist/scales/arrow-domains.js +124 -0
- package/dist/scales/arrow-domains.js.map +1 -0
- package/dist/scales/arrow-scales.cjs +3837 -0
- package/dist/scales/arrow-scales.cjs.map +6 -0
- package/dist/scales/arrow-scales.d.ts +20 -0
- package/dist/scales/arrow-scales.d.ts.map +1 -0
- package/dist/scales/arrow-scales.js +109 -0
- package/dist/scales/arrow-scales.js.map +1 -0
- package/dist/scales/compile-scale.d.ts +7 -0
- package/dist/scales/compile-scale.d.ts.map +1 -0
- package/dist/scales/compile-scale.js +195 -0
- package/dist/scales/compile-scale.js.map +1 -0
- package/dist/scales/hdr-colors.d.ts +13 -0
- package/dist/scales/hdr-colors.d.ts.map +1 -0
- package/dist/scales/hdr-colors.js +115 -0
- package/dist/scales/hdr-colors.js.map +1 -0
- package/dist/scales/index.cjs +1214 -0
- package/dist/scales/index.cjs.map +6 -0
- package/dist/scales/index.d.ts +9 -0
- package/dist/scales/index.d.ts.map +1 -0
- package/dist/scales/index.js +10 -0
- package/dist/scales/index.js.map +1 -0
- package/dist/scales/palettes.d.ts +5 -0
- package/dist/scales/palettes.d.ts.map +1 -0
- package/dist/scales/palettes.js +85 -0
- package/dist/scales/palettes.js.map +1 -0
- package/dist/scales/parse-sql-scale.d.ts +14 -0
- package/dist/scales/parse-sql-scale.d.ts.map +1 -0
- package/dist/scales/parse-sql-scale.js +165 -0
- package/dist/scales/parse-sql-scale.js.map +1 -0
- package/dist/scales/quantile-sketch.d.ts +22 -0
- package/dist/scales/quantile-sketch.d.ts.map +1 -0
- package/dist/scales/quantile-sketch.js +108 -0
- package/dist/scales/quantile-sketch.js.map +1 -0
- package/dist/scales/scale-types.d.ts +92 -0
- package/dist/scales/scale-types.d.ts.map +1 -0
- package/dist/scales/scale-types.js +119 -0
- package/dist/scales/scale-types.js.map +1 -0
- package/dist/scales/streaming-domains.d.ts +18 -0
- package/dist/scales/streaming-domains.d.ts.map +1 -0
- package/dist/scales/streaming-domains.js +109 -0
- package/dist/scales/streaming-domains.js.map +1 -0
- package/dist/sql/bind-sql-predicate.d.ts +4 -0
- package/dist/sql/bind-sql-predicate.d.ts.map +1 -0
- package/dist/sql/bind-sql-predicate.js +11 -0
- package/dist/sql/bind-sql-predicate.js.map +1 -0
- package/dist/sql/index.cjs +1588 -0
- package/dist/sql/index.cjs.map +6 -0
- package/dist/sql/index.d.ts +10 -0
- package/dist/sql/index.d.ts.map +1 -0
- package/dist/sql/index.js +10 -0
- package/dist/sql/index.js.map +1 -0
- package/dist/sql/parse-sql-expression.d.ts +44 -0
- package/dist/sql/parse-sql-expression.d.ts.map +1 -0
- package/dist/sql/parse-sql-expression.js +455 -0
- package/dist/sql/parse-sql-expression.js.map +1 -0
- package/dist/sql/parse-sql-predicate.d.ts +13 -0
- package/dist/sql/parse-sql-predicate.d.ts.map +1 -0
- package/dist/sql/parse-sql-predicate.js +365 -0
- package/dist/sql/parse-sql-predicate.js.map +1 -0
- package/dist/sql/parse-sql-query.d.ts +8 -0
- package/dist/sql/parse-sql-query.d.ts.map +1 -0
- package/dist/sql/parse-sql-query.js +66 -0
- package/dist/sql/parse-sql-query.js.map +1 -0
- package/dist/sql/parse-sql-select.d.ts +55 -0
- package/dist/sql/parse-sql-select.d.ts.map +1 -0
- package/dist/sql/parse-sql-select.js +244 -0
- package/dist/sql/parse-sql-select.js.map +1 -0
- package/dist/sql/parse-sql-statement.d.ts +50 -0
- package/dist/sql/parse-sql-statement.d.ts.map +1 -0
- package/dist/sql/parse-sql-statement.js +182 -0
- package/dist/sql/parse-sql-statement.js.map +1 -0
- package/dist/sql/query-types.d.ts +56 -0
- package/dist/sql/query-types.d.ts.map +1 -0
- package/dist/sql/query-types.js +5 -0
- package/dist/sql/query-types.js.map +1 -0
- package/dist/sql/sql-parse-error.d.ts +13 -0
- package/dist/sql/sql-parse-error.d.ts.map +1 -0
- package/dist/sql/sql-parse-error.js +20 -0
- package/dist/sql/sql-parse-error.js.map +1 -0
- package/dist/sql/sql-predicate-schema.d.ts +164 -0
- package/dist/sql/sql-predicate-schema.d.ts.map +1 -0
- package/dist/sql/sql-predicate-schema.js +249 -0
- package/dist/sql/sql-predicate-schema.js.map +1 -0
- package/dist/sql/sql-predicate-types.d.ts +48 -0
- package/dist/sql/sql-predicate-types.d.ts.map +1 -0
- package/dist/sql/sql-predicate-types.js +9 -0
- package/dist/sql/sql-predicate-types.js.map +1 -0
- package/dist/sql/sql-predicate.d.ts +6 -0
- package/dist/sql/sql-predicate.d.ts.map +1 -0
- package/dist/sql/sql-predicate.js +8 -0
- package/dist/sql/sql-predicate.js.map +1 -0
- package/package.json +92 -4
- package/src/arrow/aggregates.ts +386 -0
- package/src/arrow/buffers.ts +177 -0
- package/src/arrow/cast.ts +160 -0
- package/src/arrow/compiler.ts +1659 -0
- package/src/arrow/float16.ts +25 -0
- package/src/arrow/index.ts +22 -0
- package/src/arrow/like.ts +72 -0
- package/src/arrow/list-values.ts +200 -0
- package/src/arrow/predicate.ts +19 -0
- package/src/arrow/query-arrow-aggregate-snapshots.ts +107 -0
- package/src/arrow/query-arrow-sql.ts +227 -0
- package/src/arrow/query-arrow-table.ts +298 -0
- package/src/arrow/query-worker-entry.ts +8 -0
- package/src/arrow/query-worker.ts +190 -0
- package/src/arrow/registry.ts +86 -0
- package/src/arrow/relational-query.ts +247 -0
- package/src/arrow/replace-arrow-columns.ts +71 -0
- package/src/arrow/signature.ts +50 -0
- package/src/arrow/temporal-cast.ts +66 -0
- package/src/arrow/types.ts +76 -0
- package/src/arrow/worker-entry.ts +10 -0
- package/src/arrow/worker.ts +139 -0
- package/src/color/index.ts +405 -0
- package/src/diagnostic-log.ts +20 -0
- package/src/expressions/ast.ts +141 -0
- package/src/expressions/columnar-predicate.ts +293 -0
- package/src/expressions/evaluation-error.ts +29 -0
- package/src/expressions/expression-eval.ts +480 -0
- package/src/expressions/function-libraries.ts +126 -0
- package/src/expressions/function-registry.ts +171 -0
- package/src/expressions/get.ts +37 -0
- package/src/expressions/index.ts +40 -0
- package/src/expressions/numeric-functions.ts +99 -0
- package/src/expressions/parse-expression-string.ts +80 -0
- package/src/expressions/predicate-expression.ts +128 -0
- package/src/expressions/scalar-type.ts +39 -0
- package/src/expressions/vendor/jsep/LICENSE.txt +23 -0
- package/src/expressions/vendor/jsep/README.md +22 -0
- package/src/expressions/vendor/jsep/runtime.ts +949 -0
- package/src/expressions/vendor/jsep/types.ts +191 -0
- package/src/index.ts +40 -0
- package/src/math/index.ts +235 -0
- package/src/scales/arrow-domains.ts +131 -0
- package/src/scales/arrow-scales.ts +156 -0
- package/src/scales/compile-scale.ts +217 -0
- package/src/scales/hdr-colors.ts +126 -0
- package/src/scales/index.ts +35 -0
- package/src/scales/palettes.ts +86 -0
- package/src/scales/parse-sql-scale.ts +195 -0
- package/src/scales/quantile-sketch.ts +106 -0
- package/src/scales/scale-types.ts +224 -0
- package/src/scales/streaming-domains.ts +133 -0
- package/src/sql/bind-sql-predicate.ts +21 -0
- package/src/sql/index.ts +28 -0
- package/src/sql/parse-sql-expression.ts +457 -0
- package/src/sql/parse-sql-predicate.ts +454 -0
- package/src/sql/parse-sql-query.ts +72 -0
- package/src/sql/parse-sql-select.ts +266 -0
- package/src/sql/parse-sql-statement.ts +242 -0
- package/src/sql/query-types.ts +71 -0
- package/src/sql/sql-parse-error.ts +33 -0
- package/src/sql/sql-predicate-schema.ts +279 -0
- package/src/sql/sql-predicate-types.ts +91 -0
- package/src/sql/sql-predicate.ts +28 -0
|
@@ -0,0 +1,444 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// dist/math/index.js
|
|
20
|
+
var index_exports = {};
|
|
21
|
+
__export(index_exports, {
|
|
22
|
+
ABS: () => ABS,
|
|
23
|
+
ACOS: () => ACOS,
|
|
24
|
+
ASIN: () => ASIN,
|
|
25
|
+
ATAN: () => ATAN,
|
|
26
|
+
ATAN2: () => ATAN2,
|
|
27
|
+
CEILING: () => CEILING,
|
|
28
|
+
COS: () => COS,
|
|
29
|
+
DEGREES: () => DEGREES,
|
|
30
|
+
EXP: () => EXP,
|
|
31
|
+
FLOOR: () => FLOOR,
|
|
32
|
+
LN: () => LN,
|
|
33
|
+
LOG10: () => LOG10,
|
|
34
|
+
MOD: () => MOD,
|
|
35
|
+
POWER: () => POWER,
|
|
36
|
+
RADIANS: () => RADIANS,
|
|
37
|
+
ROUND: () => ROUND,
|
|
38
|
+
SIGN: () => SIGN,
|
|
39
|
+
SIN: () => SIN,
|
|
40
|
+
SQRT: () => SQRT,
|
|
41
|
+
TAN: () => TAN,
|
|
42
|
+
TRUNC: () => TRUNC
|
|
43
|
+
});
|
|
44
|
+
module.exports = __toCommonJS(index_exports);
|
|
45
|
+
var import_apache_arrow2 = require("apache-arrow");
|
|
46
|
+
|
|
47
|
+
// dist/expressions/evaluation-error.js
|
|
48
|
+
var _a;
|
|
49
|
+
var brand = /* @__PURE__ */ Symbol.for("@math.gl/core/ExpressionEvaluationError");
|
|
50
|
+
var codes = ["domain", "conversion", "overflow", "divisionByZero"];
|
|
51
|
+
var ExpressionEvaluationError = class extends Error {
|
|
52
|
+
constructor(code, message) {
|
|
53
|
+
super(message);
|
|
54
|
+
this.code = code;
|
|
55
|
+
this.name = "ExpressionEvaluationError";
|
|
56
|
+
this[_a] = true;
|
|
57
|
+
if (!codes.includes(code))
|
|
58
|
+
throw new TypeError("Unknown Arrow evaluation error code");
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
_a = brand;
|
|
62
|
+
function isExpressionEvaluationError(error) {
|
|
63
|
+
return typeof error === "object" && error !== null && error[brand] === true && codes.includes(error.code);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// dist/expressions/numeric-functions.js
|
|
67
|
+
var numericTypes = [
|
|
68
|
+
"int8",
|
|
69
|
+
"int16",
|
|
70
|
+
"int32",
|
|
71
|
+
"int64",
|
|
72
|
+
"uint8",
|
|
73
|
+
"uint16",
|
|
74
|
+
"uint32",
|
|
75
|
+
"uint64",
|
|
76
|
+
"float16",
|
|
77
|
+
"float32",
|
|
78
|
+
"float64"
|
|
79
|
+
];
|
|
80
|
+
function definition(name, arity = 1, preserveInteger = false, semantics = {}, errors = ["domain", "overflow"]) {
|
|
81
|
+
return Object.freeze({
|
|
82
|
+
name,
|
|
83
|
+
prototypes: Object.freeze(numericTypes.map((type) => Object.freeze({
|
|
84
|
+
arguments: Object.freeze(Array.from({ length: arity }, () => type)),
|
|
85
|
+
result: preserveInteger || type.startsWith("float") ? type : "float64"
|
|
86
|
+
}))),
|
|
87
|
+
nullHandling: "propagate",
|
|
88
|
+
overloadResolution: "exactThenFloatingWidening",
|
|
89
|
+
nanHandling: "propagate",
|
|
90
|
+
errors: Object.freeze([...errors]),
|
|
91
|
+
...semantics
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
var NUMERIC_FUNCTION_DEFINITIONS = Object.freeze({
|
|
95
|
+
ABS: definition("ABS", 1, true, {}, ["overflow"]),
|
|
96
|
+
SIGN: definition("SIGN", 1, true, {}, []),
|
|
97
|
+
FLOOR: definition("FLOOR", 1, true, {}, []),
|
|
98
|
+
CEILING: definition("CEILING", 1, true, {}, []),
|
|
99
|
+
ROUND: definition("ROUND", 1, true, { rounding: "tiesAwayFromZero" }, []),
|
|
100
|
+
TRUNC: definition("TRUNC", 1, true, {}, []),
|
|
101
|
+
SQRT: definition("SQRT", 1, false, { domain: "nonNegative" }),
|
|
102
|
+
POWER: definition("POWER", 2, false, { domain: "power" }),
|
|
103
|
+
EXP: definition("EXP"),
|
|
104
|
+
LN: definition("LN", 1, false, { domain: "positive" }),
|
|
105
|
+
LOG10: definition("LOG10", 1, false, { domain: "positive" }),
|
|
106
|
+
SIN: definition("SIN", 1, false, { angleUnit: "radians" }),
|
|
107
|
+
COS: definition("COS", 1, false, { angleUnit: "radians" }),
|
|
108
|
+
TAN: definition("TAN", 1, false, { angleUnit: "radians" }),
|
|
109
|
+
ASIN: definition("ASIN", 1, false, { domain: "signedUnitInterval", angleUnit: "radians" }),
|
|
110
|
+
ACOS: definition("ACOS", 1, false, { domain: "signedUnitInterval", angleUnit: "radians" }),
|
|
111
|
+
ATAN: definition("ATAN", 1, false, { angleUnit: "radians" }),
|
|
112
|
+
ATAN2: definition("ATAN2", 2, false, { angleUnit: "radians" }),
|
|
113
|
+
DEGREES: definition("DEGREES"),
|
|
114
|
+
RADIANS: definition("RADIANS"),
|
|
115
|
+
MOD: definition("MOD", 2, true, { remainderSign: "dividend" }, ["divisionByZero", "domain"])
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
// dist/arrow/buffers.js
|
|
119
|
+
var import_apache_arrow = require("apache-arrow");
|
|
120
|
+
|
|
121
|
+
// dist/arrow/float16.js
|
|
122
|
+
var import_core = require("@math.gl/core");
|
|
123
|
+
function requireFloat16() {
|
|
124
|
+
if (!(0, import_core.isFloat16ArrayConstructor)((0, import_core.getFloat16ArrayConstructor)()))
|
|
125
|
+
throw new Error("Arrow Float16 expressions require native Float16Array support");
|
|
126
|
+
}
|
|
127
|
+
function float16Values(values) {
|
|
128
|
+
if ((0, import_core.isFloat16Array)(values))
|
|
129
|
+
return values;
|
|
130
|
+
requireFloat16();
|
|
131
|
+
const Constructor = (0, import_core.getFloat16ArrayConstructor)();
|
|
132
|
+
return new Constructor(values.buffer, values.byteOffset, values.length);
|
|
133
|
+
}
|
|
134
|
+
function roundFloat16() {
|
|
135
|
+
const cell = float16Values(new Uint16Array(1));
|
|
136
|
+
return (value) => {
|
|
137
|
+
cell[0] = value;
|
|
138
|
+
return cell[0];
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// dist/arrow/buffers.js
|
|
143
|
+
function valueType(type) {
|
|
144
|
+
return import_apache_arrow.DataType.isDictionary(type) ? valueType(type.dictionary) : type;
|
|
145
|
+
}
|
|
146
|
+
function typeKey(type) {
|
|
147
|
+
type = valueType(type);
|
|
148
|
+
if (import_apache_arrow.DataType.isInt(type))
|
|
149
|
+
return `${type.isSigned ? "i" : "u"}${type.bitWidth}`;
|
|
150
|
+
if (import_apache_arrow.DataType.isFloat(type)) {
|
|
151
|
+
if (type.precision === import_apache_arrow.Precision.HALF)
|
|
152
|
+
requireFloat16();
|
|
153
|
+
return `f${type.precision}`;
|
|
154
|
+
}
|
|
155
|
+
if (import_apache_arrow.DataType.isBool(type))
|
|
156
|
+
return "bool";
|
|
157
|
+
if (import_apache_arrow.DataType.isUtf8(type))
|
|
158
|
+
return "utf8";
|
|
159
|
+
if (import_apache_arrow.DataType.isDate(type) && type.unit === import_apache_arrow.DateUnit.DAY)
|
|
160
|
+
return "date32";
|
|
161
|
+
if (import_apache_arrow.DataType.isTimestamp(type) && type.unit === import_apache_arrow.TimeUnit.MICROSECOND)
|
|
162
|
+
return `timestamp_us:${type.timezone ?? ""}`;
|
|
163
|
+
if (import_apache_arrow.DataType.isBinary(type))
|
|
164
|
+
return "binary";
|
|
165
|
+
if (import_apache_arrow.DataType.isFixedSizeBinary(type))
|
|
166
|
+
return `fixedsizebinary:${type.byteWidth}`;
|
|
167
|
+
if (import_apache_arrow.DataType.isNull(type))
|
|
168
|
+
return "null";
|
|
169
|
+
throw new Error(`Unsupported Arrow expression type: ${type}`);
|
|
170
|
+
}
|
|
171
|
+
var ColumnReader = class _ColumnReader {
|
|
172
|
+
constructor(vector) {
|
|
173
|
+
this.vector = vector;
|
|
174
|
+
this.ends = [];
|
|
175
|
+
this.location = [null, 0];
|
|
176
|
+
this.range = [null, 0, 0];
|
|
177
|
+
this.half = /* @__PURE__ */ new Map();
|
|
178
|
+
this.dictionaries = /* @__PURE__ */ new Map();
|
|
179
|
+
this.decoder = new TextDecoder();
|
|
180
|
+
let end = 0;
|
|
181
|
+
for (const data of vector.data) {
|
|
182
|
+
end += data.length;
|
|
183
|
+
this.ends.push(end);
|
|
184
|
+
if (import_apache_arrow.DataType.isFloat(data.type) && data.type.precision === import_apache_arrow.Precision.HALF)
|
|
185
|
+
this.half.set(data, float16Values(data.values));
|
|
186
|
+
if (import_apache_arrow.DataType.isDictionary(data.type))
|
|
187
|
+
this.dictionaries.set(data, new _ColumnReader(data.dictionary));
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
/** Locates a chunk without constructing row objects. */
|
|
191
|
+
chunk(row) {
|
|
192
|
+
let index = 0;
|
|
193
|
+
while (row >= this.ends[index])
|
|
194
|
+
index++;
|
|
195
|
+
this.location[0] = this.vector.data[index];
|
|
196
|
+
this.location[1] = row - (index ? this.ends[index - 1] : 0);
|
|
197
|
+
return this.location;
|
|
198
|
+
}
|
|
199
|
+
/** Tests validity with the physical bit offset. */
|
|
200
|
+
isValid(row) {
|
|
201
|
+
const [data, index] = this.chunk(row);
|
|
202
|
+
if (import_apache_arrow.DataType.isNull(data.type))
|
|
203
|
+
return false;
|
|
204
|
+
const bit = data.offset + index;
|
|
205
|
+
if (data.nullCount && !(data.nullBitmap[bit >> 3] & 1 << (bit & 7)))
|
|
206
|
+
return false;
|
|
207
|
+
return !import_apache_arrow.DataType.isDictionary(data.type) || this.dictionaries.get(data).isValid(Number(data.values[index]));
|
|
208
|
+
}
|
|
209
|
+
/** Reads a primitive; UTF-8 is decoded only for scalar callbacks or output materialization. */
|
|
210
|
+
get(row) {
|
|
211
|
+
if (!this.isValid(row))
|
|
212
|
+
return null;
|
|
213
|
+
const [data, index] = this.chunk(row);
|
|
214
|
+
if (import_apache_arrow.DataType.isDictionary(data.type))
|
|
215
|
+
return this.dictionaries.get(data).get(Number(data.values[index]));
|
|
216
|
+
if (import_apache_arrow.DataType.isUtf8(data.type))
|
|
217
|
+
return this.decoder.decode(data.values.subarray(data.valueOffsets[index], data.valueOffsets[index + 1]));
|
|
218
|
+
if (import_apache_arrow.DataType.isBinary(data.type))
|
|
219
|
+
return data.values.subarray(data.valueOffsets[index], data.valueOffsets[index + 1]);
|
|
220
|
+
if (import_apache_arrow.DataType.isFixedSizeBinary(data.type))
|
|
221
|
+
return data.values.subarray(data.stride * index, data.stride * (index + 1));
|
|
222
|
+
if (import_apache_arrow.DataType.isBool(data.type)) {
|
|
223
|
+
const bit = data.offset + index;
|
|
224
|
+
return Boolean(data.values[bit >> 3] & 1 << (bit & 7));
|
|
225
|
+
}
|
|
226
|
+
return this.half.has(data) ? this.half.get(data)[index] : data.values[index];
|
|
227
|
+
}
|
|
228
|
+
/** Resolves UTF-8 buffers, including dictionary values, without decoding. */
|
|
229
|
+
utf8(row) {
|
|
230
|
+
const [data, index] = this.chunk(row);
|
|
231
|
+
if (import_apache_arrow.DataType.isDictionary(data.type))
|
|
232
|
+
return this.dictionaries.get(data).utf8(Number(data.values[index]));
|
|
233
|
+
this.range[0] = data.values;
|
|
234
|
+
this.range[1] = Number(data.valueOffsets[index]);
|
|
235
|
+
this.range[2] = Number(data.valueOffsets[index + 1]);
|
|
236
|
+
return this.range;
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
function createValueValidator(inputType) {
|
|
240
|
+
const type = valueType(inputType), key = typeKey(type);
|
|
241
|
+
if (import_apache_arrow.DataType.isInt(type)) {
|
|
242
|
+
if (type.bitWidth === 64) {
|
|
243
|
+
const bits = BigInt(type.bitWidth), min2 = type.isSigned ? -(1n << bits - 1n) : 0n;
|
|
244
|
+
const max2 = type.isSigned ? (1n << bits - 1n) - 1n : (1n << bits) - 1n;
|
|
245
|
+
return (value) => {
|
|
246
|
+
if (value === null)
|
|
247
|
+
return;
|
|
248
|
+
if (typeof value !== "bigint")
|
|
249
|
+
throw new Error("64-bit integers require bigint values");
|
|
250
|
+
if (value < min2 || value > max2)
|
|
251
|
+
throw new ExpressionEvaluationError("overflow", "Integer expression overflow");
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
const min = type.isSigned ? -(2 ** (type.bitWidth - 1)) : 0;
|
|
255
|
+
const max = type.isSigned ? 2 ** (type.bitWidth - 1) - 1 : 2 ** type.bitWidth - 1;
|
|
256
|
+
return (value) => {
|
|
257
|
+
if (value === null)
|
|
258
|
+
return;
|
|
259
|
+
if (typeof value !== "number")
|
|
260
|
+
throw new TypeError("Integer expressions require numeric values");
|
|
261
|
+
if (!Number.isInteger(value))
|
|
262
|
+
throw new ExpressionEvaluationError("conversion", "Integer expression requires integral numbers");
|
|
263
|
+
if (value < min || value > max)
|
|
264
|
+
throw new ExpressionEvaluationError("overflow", "Integer expression overflow");
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
if (key === "date32") {
|
|
268
|
+
return (value) => {
|
|
269
|
+
if (value === null)
|
|
270
|
+
return;
|
|
271
|
+
if (typeof value !== "number" || !Number.isInteger(value) || value < -2147483648 || value > 2147483647)
|
|
272
|
+
throw new ExpressionEvaluationError("overflow", "Invalid Date32 epoch day");
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
if (key.startsWith("timestamp_us:")) {
|
|
276
|
+
return (value) => {
|
|
277
|
+
if (value === null)
|
|
278
|
+
return;
|
|
279
|
+
if (typeof value !== "bigint" || value !== BigInt.asIntN(64, value))
|
|
280
|
+
throw new ExpressionEvaluationError("overflow", "Invalid timestamp epoch microseconds");
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
if (import_apache_arrow.DataType.isBinary(type) || import_apache_arrow.DataType.isFixedSizeBinary(type)) {
|
|
284
|
+
return (value) => {
|
|
285
|
+
if (value === null)
|
|
286
|
+
return;
|
|
287
|
+
if (!(value instanceof Uint8Array) || import_apache_arrow.DataType.isFixedSizeBinary(type) && value.byteLength !== type.byteWidth)
|
|
288
|
+
throw new Error(`Invalid value for ${type}`);
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
const expected = import_apache_arrow.DataType.isFloat(type) ? "number" : key === "bool" ? "boolean" : "string";
|
|
292
|
+
return (value) => {
|
|
293
|
+
if (value !== null && (key === "null" || typeof value !== expected))
|
|
294
|
+
throw new Error(`Invalid value for ${type}`);
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
// dist/math/index.js
|
|
299
|
+
var types = {
|
|
300
|
+
int8: new import_apache_arrow2.Int8(),
|
|
301
|
+
int16: new import_apache_arrow2.Int16(),
|
|
302
|
+
int32: new import_apache_arrow2.Int32(),
|
|
303
|
+
int64: new import_apache_arrow2.Int64(),
|
|
304
|
+
uint8: new import_apache_arrow2.Uint8(),
|
|
305
|
+
uint16: new import_apache_arrow2.Uint16(),
|
|
306
|
+
uint32: new import_apache_arrow2.Uint32(),
|
|
307
|
+
uint64: new import_apache_arrow2.Uint64(),
|
|
308
|
+
float16: new import_apache_arrow2.Float16(),
|
|
309
|
+
float32: new import_apache_arrow2.Float32(),
|
|
310
|
+
float64: new import_apache_arrow2.Float64()
|
|
311
|
+
};
|
|
312
|
+
function declaration(name, operation) {
|
|
313
|
+
return {
|
|
314
|
+
name,
|
|
315
|
+
prototypes: NUMERIC_FUNCTION_DEFINITIONS[name].prototypes.map((prototype) => {
|
|
316
|
+
const input = types[prototype.arguments[0]];
|
|
317
|
+
const output = types[prototype.result];
|
|
318
|
+
const arity = prototype.arguments.length;
|
|
319
|
+
const validate = import_apache_arrow2.DataType.isInt(output) ? createValueValidator(output) : void 0;
|
|
320
|
+
let half;
|
|
321
|
+
function run(values) {
|
|
322
|
+
if (values.some((value) => value === null))
|
|
323
|
+
return null;
|
|
324
|
+
if (values.some((value) => typeof value === "number" && Number.isNaN(value)))
|
|
325
|
+
return NaN;
|
|
326
|
+
const x = values[0];
|
|
327
|
+
const y = values[1];
|
|
328
|
+
let result = operation(x, y);
|
|
329
|
+
if (import_apache_arrow2.DataType.isFloat(output)) {
|
|
330
|
+
result = Number(result);
|
|
331
|
+
if (output.precision === import_apache_arrow2.Precision.SINGLE)
|
|
332
|
+
result = Math.fround(result);
|
|
333
|
+
if (output.precision === import_apache_arrow2.Precision.HALF) {
|
|
334
|
+
half || (half = roundFloat16());
|
|
335
|
+
result = half(result);
|
|
336
|
+
}
|
|
337
|
+
const finiteInputs = values.every((value) => typeof value === "bigint" || Number.isFinite(value));
|
|
338
|
+
if (finiteInputs && !Number.isFinite(result))
|
|
339
|
+
throw new ExpressionEvaluationError(Number.isNaN(result) ? "domain" : "overflow", `${name}: result outside ${output}`);
|
|
340
|
+
if (Number.isNaN(result) && !values.some((value) => typeof value === "number" && Number.isNaN(value)))
|
|
341
|
+
throw new ExpressionEvaluationError("domain", `${name}: invalid argument`);
|
|
342
|
+
}
|
|
343
|
+
validate == null ? void 0 : validate(result);
|
|
344
|
+
return result;
|
|
345
|
+
}
|
|
346
|
+
return {
|
|
347
|
+
arguments: Array.from({ length: arity }, (_, index) => new import_apache_arrow2.Field(`arg${index + 1}`, input, true)),
|
|
348
|
+
result: new import_apache_arrow2.Field(name.toLowerCase(), output, false),
|
|
349
|
+
evaluateScalar: (...values) => run(values),
|
|
350
|
+
evaluate(vectors, { length, activeRows, reportError }) {
|
|
351
|
+
const readers = vectors.map((vector) => new ColumnReader(vector));
|
|
352
|
+
const values = new Array(arity);
|
|
353
|
+
const storage = new output.ArrayType(length);
|
|
354
|
+
const decoded = import_apache_arrow2.DataType.isFloat(output) && output.precision === import_apache_arrow2.Precision.HALF ? float16Values(storage) : storage;
|
|
355
|
+
const validity = new Uint8Array(Math.ceil(length / 8));
|
|
356
|
+
let nullCount = length;
|
|
357
|
+
for (let row = 0; row < length; row++) {
|
|
358
|
+
if (!activeRows[row])
|
|
359
|
+
continue;
|
|
360
|
+
for (let arg = 0; arg < arity; arg++)
|
|
361
|
+
values[arg] = readers[arg].get(row);
|
|
362
|
+
let value;
|
|
363
|
+
try {
|
|
364
|
+
value = run(values);
|
|
365
|
+
} catch (error) {
|
|
366
|
+
if (!reportError || !isExpressionEvaluationError(error))
|
|
367
|
+
throw error;
|
|
368
|
+
reportError(row, error);
|
|
369
|
+
continue;
|
|
370
|
+
}
|
|
371
|
+
if (value === null)
|
|
372
|
+
continue;
|
|
373
|
+
decoded[row] = value;
|
|
374
|
+
validity[row >> 3] |= 1 << (row & 7);
|
|
375
|
+
nullCount--;
|
|
376
|
+
}
|
|
377
|
+
return (0, import_apache_arrow2.makeVector)((0, import_apache_arrow2.makeData)({
|
|
378
|
+
type: output,
|
|
379
|
+
length,
|
|
380
|
+
data: storage,
|
|
381
|
+
nullBitmap: validity,
|
|
382
|
+
nullCount
|
|
383
|
+
}));
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
})
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
function domain(condition, name) {
|
|
390
|
+
if (condition)
|
|
391
|
+
throw new ExpressionEvaluationError("domain", `${name}: invalid argument`);
|
|
392
|
+
}
|
|
393
|
+
function rounded(x) {
|
|
394
|
+
if (Number.isInteger(x))
|
|
395
|
+
return x;
|
|
396
|
+
const truncated = Math.trunc(x);
|
|
397
|
+
return Math.abs(x - truncated) >= 0.5 ? truncated + Math.sign(x) : truncated;
|
|
398
|
+
}
|
|
399
|
+
var ABS = /* @__PURE__ */ declaration("ABS", (x) => typeof x === "bigint" ? x < 0n ? -x : x : Math.abs(x));
|
|
400
|
+
var SIGN = /* @__PURE__ */ declaration("SIGN", (x) => typeof x === "bigint" ? x < 0n ? -1n : x > 0n ? 1n : 0n : Math.sign(x));
|
|
401
|
+
var FLOOR = /* @__PURE__ */ declaration("FLOOR", (x) => typeof x === "bigint" ? x : Math.floor(x));
|
|
402
|
+
var CEILING = /* @__PURE__ */ declaration("CEILING", (x) => typeof x === "bigint" ? x : Math.ceil(x));
|
|
403
|
+
var ROUND = /* @__PURE__ */ declaration("ROUND", (x) => typeof x === "bigint" ? x : rounded(x));
|
|
404
|
+
var TRUNC = /* @__PURE__ */ declaration("TRUNC", (x) => typeof x === "bigint" ? x : Math.trunc(x));
|
|
405
|
+
var SQRT = /* @__PURE__ */ declaration("SQRT", (x) => {
|
|
406
|
+
domain(x < 0, "SQRT");
|
|
407
|
+
return Math.sqrt(Number(x));
|
|
408
|
+
});
|
|
409
|
+
var POWER = /* @__PURE__ */ declaration("POWER", (x, y) => {
|
|
410
|
+
domain((x === 0 || x === 0n) && y < 0 || x < 0 && typeof y !== "bigint" && !Number.isInteger(y), "POWER");
|
|
411
|
+
if (x < 0 && typeof y === "bigint")
|
|
412
|
+
return (y % 2n ? -1 : 1) * Math.pow(-Number(x), Number(y));
|
|
413
|
+
return Math.pow(Number(x), Number(y));
|
|
414
|
+
});
|
|
415
|
+
var EXP = /* @__PURE__ */ declaration("EXP", (x) => Math.exp(Number(x)));
|
|
416
|
+
var LN = /* @__PURE__ */ declaration("LN", (x) => {
|
|
417
|
+
domain(x <= 0, "LN");
|
|
418
|
+
return Math.log(Number(x));
|
|
419
|
+
});
|
|
420
|
+
var LOG10 = /* @__PURE__ */ declaration("LOG10", (x) => {
|
|
421
|
+
domain(x <= 0, "LOG10");
|
|
422
|
+
return Math.log10(Number(x));
|
|
423
|
+
});
|
|
424
|
+
var SIN = /* @__PURE__ */ declaration("SIN", (x) => Math.sin(Number(x)));
|
|
425
|
+
var COS = /* @__PURE__ */ declaration("COS", (x) => Math.cos(Number(x)));
|
|
426
|
+
var TAN = /* @__PURE__ */ declaration("TAN", (x) => Math.tan(Number(x)));
|
|
427
|
+
var ASIN = /* @__PURE__ */ declaration("ASIN", (x) => {
|
|
428
|
+
domain(x < -1 || x > 1, "ASIN");
|
|
429
|
+
return Math.asin(Number(x));
|
|
430
|
+
});
|
|
431
|
+
var ACOS = /* @__PURE__ */ declaration("ACOS", (x) => {
|
|
432
|
+
domain(x < -1 || x > 1, "ACOS");
|
|
433
|
+
return Math.acos(Number(x));
|
|
434
|
+
});
|
|
435
|
+
var ATAN = /* @__PURE__ */ declaration("ATAN", (x) => Math.atan(Number(x)));
|
|
436
|
+
var ATAN2 = /* @__PURE__ */ declaration("ATAN2", (y, x) => Math.atan2(Number(y), Number(x)));
|
|
437
|
+
var DEGREES = /* @__PURE__ */ declaration("DEGREES", (x) => Number(x) * (180 / Math.PI));
|
|
438
|
+
var RADIANS = /* @__PURE__ */ declaration("RADIANS", (x) => Number(x) * (Math.PI / 180));
|
|
439
|
+
var MOD = /* @__PURE__ */ declaration("MOD", (x, y) => {
|
|
440
|
+
if (y === 0 || y === 0n)
|
|
441
|
+
throw new ExpressionEvaluationError("divisionByZero", "MOD: division by zero");
|
|
442
|
+
return typeof x === "bigint" && typeof y === "bigint" ? x % y : Number(x) % Number(y);
|
|
443
|
+
});
|
|
444
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/math/index.ts", "../../src/expressions/evaluation-error.ts", "../../src/expressions/numeric-functions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,CAAC,CAAC;AAE3F,IAAM,MAA0C,4BAAY,OAAO,OAAK,KAAK,IAAI,OAAO,CAAC,CAAC,CAAC;AAE3F,IAAM,OAA2C,4BAAY,QAAQ,OAAI;AAC9E,SAAO,IAAI,MAAM,IAAI,GAAG,MAAM;AAC9B,SAAO,KAAK,KAAK,OAAO,CAAC,CAAC;AAC5B,CAAC;AAEM,IAAM,OAA2C,4BAAY,QAAQ,OAAI;AAC9E,SAAO,IAAI,MAAM,IAAI,GAAG,MAAM;AAC9B,SAAO,KAAK,KAAK,OAAO,CAAC,CAAC;AAC5B,CAAC;AAEM,IAAM,OAA2C,4BAAY,QAAQ,OAC1E,KAAK,KAAK,OAAO,CAAC,CAAC,CAAC;AAGf,IAAM,QAA4C,4BAAY,SAAS,CAAC,GAAG,MAChF,KAAK,MAAM,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;AAG3B,IAAM,UAA8C,4BACzD,WACA,OAAK,OAAO,CAAC,KAAK,MAAM,KAAK,GAAG;AAG3B,IAAM,UAA8C,4BACzD,WACA,OAAK,OAAO,CAAC,KAAK,KAAK,KAAK,IAAI;AAG3B,IAAM,MAA0C,4BAAY,OAAO,CAAC,GAAG,MAAK;AACjF,MAAI,MAAM,KAAK,MAAM;AACnB,UAAM,IAAI,0BAA0B,kBAAkB,uBAAuB;AAC/E,SAAO,OAAO,MAAM,YAAY,OAAO,MAAM,WAAW,IAAI,IAAI,OAAO,CAAC,IAAI,OAAO,CAAC;AACtF,CAAC;",
|
|
5
|
+
"names": ["import_apache_arrow", "min", "max"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { ArrowTableFunction } from "../arrow/types.js";
|
|
2
|
+
/** Absolute value, preserving the argument type and checking integer overflow. */
|
|
3
|
+
export declare const ABS: ArrowTableFunction;
|
|
4
|
+
/** Sign (-1, 0, 1), preserving the argument type. */
|
|
5
|
+
export declare const SIGN: ArrowTableFunction;
|
|
6
|
+
/** Round toward negative infinity. */
|
|
7
|
+
export declare const FLOOR: ArrowTableFunction;
|
|
8
|
+
/** Round toward positive infinity. */
|
|
9
|
+
export declare const CEILING: ArrowTableFunction;
|
|
10
|
+
/** Round to the nearest integer, with ties away from zero. */
|
|
11
|
+
export declare const ROUND: ArrowTableFunction;
|
|
12
|
+
/** Truncate toward zero. */
|
|
13
|
+
export declare const TRUNC: ArrowTableFunction;
|
|
14
|
+
/** Square root; negative arguments raise a domain error. */
|
|
15
|
+
export declare const SQRT: ArrowTableFunction;
|
|
16
|
+
/** Exponentiation; negative bases require integral exponents. */
|
|
17
|
+
export declare const POWER: ArrowTableFunction;
|
|
18
|
+
/** Natural exponential. */
|
|
19
|
+
export declare const EXP: ArrowTableFunction;
|
|
20
|
+
/** Natural logarithm; arguments must be positive. */
|
|
21
|
+
export declare const LN: ArrowTableFunction;
|
|
22
|
+
/** Base-10 logarithm; arguments must be positive. */
|
|
23
|
+
export declare const LOG10: ArrowTableFunction;
|
|
24
|
+
/** Sine of an angle in radians. */
|
|
25
|
+
export declare const SIN: ArrowTableFunction;
|
|
26
|
+
/** Cosine of an angle in radians. */
|
|
27
|
+
export declare const COS: ArrowTableFunction;
|
|
28
|
+
/** Tangent of an angle in radians. */
|
|
29
|
+
export declare const TAN: ArrowTableFunction;
|
|
30
|
+
/** Inverse sine in radians; arguments must be in [-1, 1]. */
|
|
31
|
+
export declare const ASIN: ArrowTableFunction;
|
|
32
|
+
/** Inverse cosine in radians; arguments must be in [-1, 1]. */
|
|
33
|
+
export declare const ACOS: ArrowTableFunction;
|
|
34
|
+
/** Inverse tangent in radians. */
|
|
35
|
+
export declare const ATAN: ArrowTableFunction;
|
|
36
|
+
/** Angle of (x, y) in radians, with arguments ordered (y, x). */
|
|
37
|
+
export declare const ATAN2: ArrowTableFunction;
|
|
38
|
+
/** Convert radians to degrees. */
|
|
39
|
+
export declare const DEGREES: ArrowTableFunction;
|
|
40
|
+
/** Convert degrees to radians. */
|
|
41
|
+
export declare const RADIANS: ArrowTableFunction;
|
|
42
|
+
/** Remainder with the dividend's sign; a zero divisor raises divisionByZero. */
|
|
43
|
+
export declare const MOD: ArrowTableFunction;
|
|
44
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/math/index.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAC,kBAAkB,EAAuB,0BAAuB;AAsH7E,kFAAkF;AAClF,eAAO,MAAM,GAAG,EAAE,kBAEjB,CAAC;AACF,qDAAqD;AACrD,eAAO,MAAM,IAAI,EAAE,kBAElB,CAAC;AACF,sCAAsC;AACtC,eAAO,MAAM,KAAK,EAAE,kBAEnB,CAAC;AACF,sCAAsC;AACtC,eAAO,MAAM,OAAO,EAAE,kBAErB,CAAC;AACF,8DAA8D;AAC9D,eAAO,MAAM,KAAK,EAAE,kBAEnB,CAAC;AACF,4BAA4B;AAC5B,eAAO,MAAM,KAAK,EAAE,kBAEnB,CAAC;AACF,4DAA4D;AAC5D,eAAO,MAAM,IAAI,EAAE,kBAGjB,CAAC;AACH,iEAAiE;AACjE,eAAO,MAAM,KAAK,EAAE,kBAQlB,CAAC;AACH,2BAA2B;AAC3B,eAAO,MAAM,GAAG,EAAE,kBAAiF,CAAC;AACpG,qDAAqD;AACrD,eAAO,MAAM,EAAE,EAAE,kBAGf,CAAC;AACH,qDAAqD;AACrD,eAAO,MAAM,KAAK,EAAE,kBAGlB,CAAC;AACH,mCAAmC;AACnC,eAAO,MAAM,GAAG,EAAE,kBAAiF,CAAC;AACpG,qCAAqC;AACrC,eAAO,MAAM,GAAG,EAAE,kBAAiF,CAAC;AACpG,sCAAsC;AACtC,eAAO,MAAM,GAAG,EAAE,kBAAiF,CAAC;AACpG,6DAA6D;AAC7D,eAAO,MAAM,IAAI,EAAE,kBAGjB,CAAC;AACH,+DAA+D;AAC/D,eAAO,MAAM,IAAI,EAAE,kBAGjB,CAAC;AACH,kCAAkC;AA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