@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.
@@ -931,6 +931,23 @@ var init_olapTable = __esm({
931
931
  `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'.`
932
932
  );
933
933
  }
934
+ const projections = resolvedConfig.projections;
935
+ if (projections && Array.isArray(projections) && projections.length > 0) {
936
+ const engine = resolvedConfig.engine;
937
+ const nonMergeTreeEngines = [
938
+ "S3" /* S3 */,
939
+ "S3Queue" /* S3Queue */,
940
+ "Buffer" /* Buffer */,
941
+ "Distributed" /* Distributed */,
942
+ "IcebergS3" /* IcebergS3 */,
943
+ "Kafka" /* Kafka */
944
+ ];
945
+ if (typeof engine === "string" && nonMergeTreeEngines.includes(engine)) {
946
+ throw new Error(
947
+ `OlapTable ${name}: ${engine} engine does not support PROJECTION clauses. Projections are only supported on MergeTree family engines. Remove projections from your configuration.`
948
+ );
949
+ }
950
+ }
934
951
  super(name, resolvedConfig, schema, columns, validators);
935
952
  this.name = name;
936
953
  const tables = getMooseInternal().tables;