@514labs/moose-lib 0.6.297-ci-4-g8012f636 → 0.6.297-ci-5-g194c6fe0
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 +17 -0
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +17 -0
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/dmv2/index.js +17 -0
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +17 -0
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -0
- package/dist/index.mjs.map +1 -1
- package/dist/moose-runner.js.map +1 -1
- package/dist/moose-runner.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -952,6 +952,23 @@ var init_olapTable = __esm({
|
|
|
952
952
|
`OlapTable ${name}: Cannot specify both 'cluster' and explicit replication params ('keeperPath' or 'replicaName'). Use 'cluster' for auto-injected params, or use explicit 'keeperPath' and 'replicaName' without 'cluster'.`
|
|
953
953
|
);
|
|
954
954
|
}
|
|
955
|
+
const projections = resolvedConfig.projections;
|
|
956
|
+
if (projections && Array.isArray(projections) && projections.length > 0) {
|
|
957
|
+
const engine = resolvedConfig.engine;
|
|
958
|
+
const nonMergeTreeEngines = [
|
|
959
|
+
"S3" /* S3 */,
|
|
960
|
+
"S3Queue" /* S3Queue */,
|
|
961
|
+
"Buffer" /* Buffer */,
|
|
962
|
+
"Distributed" /* Distributed */,
|
|
963
|
+
"IcebergS3" /* IcebergS3 */,
|
|
964
|
+
"Kafka" /* Kafka */
|
|
965
|
+
];
|
|
966
|
+
if (typeof engine === "string" && nonMergeTreeEngines.includes(engine)) {
|
|
967
|
+
throw new Error(
|
|
968
|
+
`OlapTable ${name}: ${engine} engine does not support PROJECTION clauses. Projections are only supported on MergeTree family engines. Remove projections from your configuration.`
|
|
969
|
+
);
|
|
970
|
+
}
|
|
971
|
+
}
|
|
955
972
|
super(name, resolvedConfig, schema, columns, validators);
|
|
956
973
|
this.name = name;
|
|
957
974
|
const tables = getMooseInternal().tables;
|