@514labs/moose-lib 0.6.239-ci-3-g6e595e05 → 0.6.239-ci-1-g4a0cac87

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.
@@ -550,6 +550,9 @@ function createMaterializedView(options) {
550
550
  AS ${options.select}`.trim();
551
551
  }
552
552
 
553
+ // src/dmv2/internal.ts
554
+ var import_process = __toESM(require("process"));
555
+
553
556
  // src/index.ts
554
557
  init_commons();
555
558
 
@@ -589,6 +592,7 @@ var DEFAULT_CSV_CONFIG = {
589
592
 
590
593
  // src/dmv2/internal.ts
591
594
  init_commons();
595
+ var isClientOnlyMode = import_process.default.env.MOOSE_CLIENT_ONLY === "true";
592
596
  var moose_internal = {
593
597
  tables: /* @__PURE__ */ new Map(),
594
598
  streams: /* @__PURE__ */ new Map(),
@@ -752,7 +756,7 @@ var OlapTable = class extends TypedBase {
752
756
  this.name = name;
753
757
  const tables = getMooseInternal().tables;
754
758
  const registryKey = this.config.version ? `${name}_${this.config.version}` : name;
755
- if (tables.has(registryKey)) {
759
+ if (!isClientOnlyMode && tables.has(registryKey)) {
756
760
  throw new Error(
757
761
  `OlapTable with name ${name} and version ${config?.version ?? "unversioned"} already exists`
758
762
  );