@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.
@@ -1016,6 +1016,23 @@ var init_olapTable = __esm({
1016
1016
  `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'.`
1017
1017
  );
1018
1018
  }
1019
+ const projections = resolvedConfig.projections;
1020
+ if (projections && Array.isArray(projections) && projections.length > 0) {
1021
+ const engine = resolvedConfig.engine;
1022
+ const nonMergeTreeEngines = [
1023
+ "S3" /* S3 */,
1024
+ "S3Queue" /* S3Queue */,
1025
+ "Buffer" /* Buffer */,
1026
+ "Distributed" /* Distributed */,
1027
+ "IcebergS3" /* IcebergS3 */,
1028
+ "Kafka" /* Kafka */
1029
+ ];
1030
+ if (typeof engine === "string" && nonMergeTreeEngines.includes(engine)) {
1031
+ throw new Error(
1032
+ `OlapTable ${name}: ${engine} engine does not support PROJECTION clauses. Projections are only supported on MergeTree family engines. Remove projections from your configuration.`
1033
+ );
1034
+ }
1035
+ }
1019
1036
  super(name, resolvedConfig, schema, columns, validators);
1020
1037
  this.name = name;
1021
1038
  const tables = getMooseInternal().tables;