@514labs/moose-lib 0.6.441 → 0.6.442
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/dist/browserCompatible.js +6 -6
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +6 -6
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -4
- package/dist/index.mjs.map +1 -1
- package/dist/moose-runner.js +1 -0
- package/dist/moose-runner.js.map +1 -1
- package/dist/moose-runner.mjs +1 -0
- package/dist/moose-runner.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1193,7 +1193,7 @@ var dlqColumns = [
|
|
|
1193
1193
|
// src/dmv2/sdk/olapTable.ts
|
|
1194
1194
|
import { Readable } from "stream";
|
|
1195
1195
|
import { createHash as createHash2 } from "crypto";
|
|
1196
|
-
var
|
|
1196
|
+
var OlapTable2 = class extends TypedBase {
|
|
1197
1197
|
name;
|
|
1198
1198
|
/** @internal */
|
|
1199
1199
|
kind = "OlapTable";
|
|
@@ -2500,7 +2500,7 @@ var IngestPipeline = class extends TypedBase {
|
|
|
2500
2500
|
engine: "MergeTree" /* MergeTree */,
|
|
2501
2501
|
...config.version && { version: config.version }
|
|
2502
2502
|
};
|
|
2503
|
-
this.table = new
|
|
2503
|
+
this.table = new OlapTable2(
|
|
2504
2504
|
name,
|
|
2505
2505
|
tableConfig,
|
|
2506
2506
|
this.schema,
|
|
@@ -2712,7 +2712,7 @@ var ETLPipeline = class {
|
|
|
2712
2712
|
|
|
2713
2713
|
// src/dmv2/sdk/materializedView.ts
|
|
2714
2714
|
function formatTableReference(table) {
|
|
2715
|
-
const database = table instanceof
|
|
2715
|
+
const database = table instanceof OlapTable2 ? table.config.database : void 0;
|
|
2716
2716
|
if (database) {
|
|
2717
2717
|
return `\`${database}\`.\`${table.name}\``;
|
|
2718
2718
|
}
|
|
@@ -2750,7 +2750,7 @@ var MaterializedView = class {
|
|
|
2750
2750
|
"Supply the type param T so that the schema is inserted by the compiler plugin."
|
|
2751
2751
|
);
|
|
2752
2752
|
}
|
|
2753
|
-
const targetTable = options.targetTable instanceof
|
|
2753
|
+
const targetTable = options.targetTable instanceof OlapTable2 ? options.targetTable : new OlapTable2(
|
|
2754
2754
|
requireTargetTableName(
|
|
2755
2755
|
options.targetTable?.name ?? options.tableName
|
|
2756
2756
|
),
|
|
@@ -2845,7 +2845,7 @@ var SqlResource = class {
|
|
|
2845
2845
|
|
|
2846
2846
|
// src/dmv2/sdk/view.ts
|
|
2847
2847
|
function formatTableReference2(table) {
|
|
2848
|
-
const database = table instanceof
|
|
2848
|
+
const database = table instanceof OlapTable2 ? table.config.database : void 0;
|
|
2849
2849
|
if (database) {
|
|
2850
2850
|
return `\`${database}\`.\`${table.name}\``;
|
|
2851
2851
|
}
|
|
@@ -3113,7 +3113,7 @@ export {
|
|
|
3113
3113
|
IngestPipeline,
|
|
3114
3114
|
LifeCycle,
|
|
3115
3115
|
MaterializedView,
|
|
3116
|
-
OlapTable,
|
|
3116
|
+
OlapTable2 as OlapTable,
|
|
3117
3117
|
Sql,
|
|
3118
3118
|
SqlResource,
|
|
3119
3119
|
Stream,
|