@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.
@@ -1039,6 +1039,23 @@ var init_olapTable = __esm({
1039
1039
  `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'.`
1040
1040
  );
1041
1041
  }
1042
+ const projections = resolvedConfig.projections;
1043
+ if (projections && Array.isArray(projections) && projections.length > 0) {
1044
+ const engine = resolvedConfig.engine;
1045
+ const nonMergeTreeEngines = [
1046
+ "S3" /* S3 */,
1047
+ "S3Queue" /* S3Queue */,
1048
+ "Buffer" /* Buffer */,
1049
+ "Distributed" /* Distributed */,
1050
+ "IcebergS3" /* IcebergS3 */,
1051
+ "Kafka" /* Kafka */
1052
+ ];
1053
+ if (typeof engine === "string" && nonMergeTreeEngines.includes(engine)) {
1054
+ throw new Error(
1055
+ `OlapTable ${name}: ${engine} engine does not support PROJECTION clauses. Projections are only supported on MergeTree family engines. Remove projections from your configuration.`
1056
+ );
1057
+ }
1058
+ }
1042
1059
  super(name, resolvedConfig, schema, columns, validators);
1043
1060
  this.name = name;
1044
1061
  const tables = getMooseInternal().tables;