drizzle-cube 0.1.36 → 0.1.37

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.
@@ -1,6 +1,6 @@
1
1
  import p, { Router as w } from "express";
2
2
  import S from "cors";
3
- import { S as E, c as s, f as g, a as R, b as q, h as v } from "../compiler-ixtRH_TD.js";
3
+ import { S as E, c as s, f as g, a as R, b as q, h as v } from "../compiler-CiUqnN3l.js";
4
4
  function $(l) {
5
5
  const {
6
6
  cubes: c,
@@ -1,4 +1,4 @@
1
- import { S as j, c as i, f as q, a as $, b as h, h as v } from "../compiler-ixtRH_TD.js";
1
+ import { S as j, c as i, f as q, a as $, b as h, h as v } from "../compiler-CiUqnN3l.js";
2
2
  const Q = function(a, C, p) {
3
3
  const {
4
4
  cubes: g,
@@ -1,5 +1,5 @@
1
1
  import { Hono as w } from "hono";
2
- import { S as x, f as g, a as Q, b as j, h as p } from "../compiler-ixtRH_TD.js";
2
+ import { S as x, f as g, a as Q, b as j, h as p } from "../compiler-CiUqnN3l.js";
3
3
  var v = (d) => {
4
4
  const u = {
5
5
  ...{
@@ -1,5 +1,5 @@
1
1
  import { NextResponse as o } from "next/server";
2
- import { c, f as x, a as E, b as N, h as S, S as p } from "../compiler-ixtRH_TD.js";
2
+ import { c, f as x, a as E, b as N, h as S, S as p } from "../compiler-CiUqnN3l.js";
3
3
  function g(n) {
4
4
  const { cubes: r, drizzle: a, schema: s, engineType: f } = n;
5
5
  if (!r || r.length === 0)
@@ -743,7 +743,7 @@ export declare class QueryPlanner {
743
743
  /**
744
744
  * Create a unified query plan that works for both single and multi-cube queries
745
745
  */
746
- createQueryPlan(cubes: Map<string, Cube>, query: SemanticQuery, _ctx: QueryContext): QueryPlan;
746
+ createQueryPlan(cubes: Map<string, Cube>, query: SemanticQuery, ctx: QueryContext): QueryPlan;
747
747
  /**
748
748
  * Choose the primary cube based on query analysis
749
749
  * Uses a consistent strategy to avoid measure order dependencies
@@ -769,6 +769,8 @@ export declare class QueryPlanner {
769
769
  private findJoinPath;
770
770
  /**
771
771
  * Plan pre-aggregation CTEs for hasMany relationships to prevent fan-out
772
+ * Note: belongsToMany relationships handle fan-out differently through their junction table structure
773
+ * and don't require CTEs - the two-hop join with the junction table provides natural grouping
772
774
  */
773
775
  private planPreAggregationCTEs;
774
776
  /**