@514labs/moose-lib 0.6.239-ci-1-gf12f5383 → 0.6.239-ci-3-ga812e148

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.
@@ -654,6 +654,9 @@ function createMaterializedView(options) {
654
654
  AS ${options.select}`.trim();
655
655
  }
656
656
 
657
+ // src/dmv2/internal.ts
658
+ var import_process = __toESM(require("process"));
659
+
657
660
  // src/index.ts
658
661
  init_commons();
659
662
 
@@ -693,6 +696,7 @@ var DEFAULT_CSV_CONFIG = {
693
696
 
694
697
  // src/dmv2/internal.ts
695
698
  init_commons();
699
+ var isClientOnlyMode = import_process.default.env.MOOSE_CLIENT_ONLY === "true";
696
700
  var moose_internal = {
697
701
  tables: /* @__PURE__ */ new Map(),
698
702
  streams: /* @__PURE__ */ new Map(),
@@ -856,7 +860,7 @@ var OlapTable = class extends TypedBase {
856
860
  this.name = name;
857
861
  const tables = getMooseInternal().tables;
858
862
  const registryKey = this.config.version ? `${name}_${this.config.version}` : name;
859
- if (tables.has(registryKey)) {
863
+ if (!isClientOnlyMode && tables.has(registryKey)) {
860
864
  throw new Error(
861
865
  `OlapTable with name ${name} and version ${config?.version ?? "unversioned"} already exists`
862
866
  );