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