@malloydata/render 0.0.198-dev241010181909 → 0.0.198-dev241010185717

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.
@@ -3878,7 +3878,7 @@ const YT = oe, bce = Rt, o2 = u0, Q$ = a0, Rce = Q4, Oce = G4, Dce = {
3878
3878
  };
3879
3879
  class wce extends o2.Dialect {
3880
3880
  constructor() {
3881
- super(...arguments), this.name = "mysql", this.defaultNumberType = "DOUBLE PRECISION", this.defaultDecimalType = "DECIMAL", this.udfPrefix = "ms_temp.__udf", this.hasFinalStage = !1, this.stringTypeName = "VARCHAR(255)", this.divisionIsInteger = !0, this.supportsSumDistinctFunction = !0, this.unnestWithNumbers = !1, this.defaultSampling = { rows: 5e4 }, this.supportUnnestArrayAgg = !0, this.supportsAggDistinct = !0, this.supportsCTEinCoorelatedSubQueries = !0, this.supportsSafeCast = !1, this.dontUnionIndex = !1, this.supportsQualify = !1, this.supportsNesting = !0, this.experimental = !0, this.nativeBoolean = !1, this.supportsFullJoin = !1, this.supportsPipelinesInViews = !1, this.readsNestedData = !1, this.supportsComplexFilteredSources = !1, this.supportsArraysInData = !1;
3881
+ super(...arguments), this.name = "mysql", this.defaultNumberType = "DOUBLE PRECISION", this.defaultDecimalType = "DECIMAL", this.udfPrefix = "ms_temp.__udf", this.hasFinalStage = !1, this.stringTypeName = "VARCHAR(255)", this.divisionIsInteger = !0, this.supportsSumDistinctFunction = !0, this.unnestWithNumbers = !1, this.defaultSampling = { rows: 5e4 }, this.supportUnnestArrayAgg = !0, this.supportsAggDistinct = !0, this.supportsCTEinCoorelatedSubQueries = !0, this.supportsSafeCast = !1, this.dontUnionIndex = !1, this.supportsQualify = !1, this.supportsNesting = !0, this.experimental = !1, this.nativeBoolean = !1, this.supportsFullJoin = !1, this.supportsPipelinesInViews = !1, this.readsNestedData = !1, this.supportsComplexFilteredSources = !1, this.supportsArraysInData = !1;
3882
3882
  }
3883
3883
  malloyTypeToSQLType(e) {
3884
3884
  switch (e.type) {
@@ -282,7 +282,7 @@ ${(0,hB.indent)(n)}
282
282
  CROSS JOIN UNNEST(COALESCE(${e},ARRAY[NULL])) WITH ORDINALITY as ${n}(value, __row_id_almost_${n})
283
283
  CROSS JOIN UNNEST(ARRAY[CASE WHEN ${e} IS NOT NULL THEN __row_id_almost_${n} END]) as ${n}_ignore(__row_id_from_${n})`:`CROSS JOIN UNNEST(COALESCE(${e}, ARRAY[NULL])) as ${n}(value) `:i?`-- Simulate a left join
284
284
  CROSS JOIN UNNEST(COALESCE(${e}, ARRAY[NULL])) WITH ORDINALITY as ${n}_outer(${n}, __row_id_almost_${n})
285
- CROSS JOIN UNNEST(ARRAY[CASE WHEN ${e} IS NOT NULL THEN __row_id_almost_${n} END]) as ${n}_ignore(__row_id_from_${n})`:`CROSS JOIN UNNEST(COALESCE(${e}, ARRAY[NULL])) as ${n}_outer(${n})`}}cx.PrestoDialect=Tce,function(t){var e=D&&D.__createBinding||(Object.create?function(r,i,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(i,s);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(r,o,u)}:function(r,i,s,o){o===void 0&&(o=s),r[o]=i[s]}),n=D&&D.__exportStar||function(r,i){for(var s in r)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,r,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(cx,t)}(lb);var hb={},cy={},fy={};Object.defineProperty(fy,"__esModule",{value:!0}),fy.MYSQL_DIALECT_FUNCTIONS=void 0;const pb={default_separator:{takes:{value:{dimension:"string"}},returns:{measure:"string"},supportsOrderBy:!0,impl:{sql:"GROUP_CONCAT(${value} ${order_by:})"}},with_separator:{takes:{value:{dimension:"string"},separator:{literal:"string"}},returns:{measure:"string"},supportsOrderBy:!0,impl:{sql:"GROUP_CONCAT(${value} ${order_by:} SEPARATOR ${separator})"}}},bce={default_separator:{...pb.default_separator,isSymmetric:!0,supportsOrderBy:"only_default",impl:{sql:"GROUP_CONCAT(DISTINCT ${value} ${order_by:})",defaultOrderByArgIndex:0}},with_separator:{...pb.with_separator,isSymmetric:!0,supportsOrderBy:"only_default",impl:{sql:"GROUP_CONCAT(DISTINCT ${value} ${order_by:} SEPARATOR ${separator})",defaultOrderByArgIndex:0}}};fy.MYSQL_DIALECT_FUNCTIONS={string_agg:pb,string_agg_distinct:bce};var xy={};Object.defineProperty(xy,"__esModule",{value:!0}),xy.MYSQL_MALLOY_STANDARD_OVERLOADS=void 0,xy.MYSQL_MALLOY_STANDARD_OVERLOADS={regexp_extract:{function:"REGEXP_SUBSTR"},replace:{regular_expression:{sql:"REGEXP_REPLACE(${value}, ${pattern}, ${replacement}, 1,0)"}},trunc:{to_integer:{sql:"(FLOOR(${value}) + IF(${value} < 0,1,0))"},to_precision:{sql:"(ABS(FLOOR(${value} * POW(10,${precision}))/POW(10,${precision}))*IF(${value} < 0, -1, 1))"}},log:{sql:"log(${base},${value})"},div:{sql:"FLOOR(${dividend} / ${divisor})"},strpos:{sql:"LOCATE(${search_string},${test_string})"},starts_with:{sql:"COALESCE(${value} LIKE CONCAT(${prefix}, '%'),0)"},ends_with:{sql:"COALESCE(${value} LIKE CONCAT('%',${suffix}),0)"},trim:{characters:{sql:"TRIM(BOTH ${trim_characters} FROM ${value})"}},ltrim:{characters:{sql:"TRIM(LEADING ${trim_characters} FROM ${value})"}},rtrim:{characters:{sql:"TRIM(TRAILING ${trim_characters} FROM ${value})"}},byte_length:{sql:"(LENGTH(CAST(${value} AS VARBINARY)))"},chr:{sql:"CASE WHEN ${value} = 0 THEN '' ELSE CHAR(${value} USING latin1) END"}},Object.defineProperty(cy,"__esModule",{value:!0}),cy.MySQLDialect=void 0;const gb=oe,Rce=Rt,u2=sl,mB=ul,Oce=fy,Dce=xy,Nce={day_of_week:"DAYOFWEEK",day_of_year:"DAYOFYEAR"},yB={second:1,minute:60,hour:3600,day:24*3600,week:7*24*3600},wce={tinyint:{type:"boolean"},smallint:{type:"number",numberType:"integer"},mediumint:{type:"number",numberType:"integer"},int:{type:"number",numberType:"integer"},bigint:{type:"number",numberType:"integer"},"tinyint unsigned":{type:"number",numberType:"integer"},"smallint unsigned":{type:"number",numberType:"integer"},"mediumint unsigned":{type:"number",numberType:"integer"},"int unsigned":{type:"number",numberType:"integer"},"bigint unsigned":{type:"number",numberType:"integer"},double:{type:"number",numberType:"float"},varchar:{type:"string"},varbinary:{type:"string"},char:{type:"string"},text:{type:"string"},date:{type:"date"},datetime:{type:"timestamp"},timestamp:{type:"timestamp"},time:{type:"string"},decimal:{type:"number",numberType:"float"},"tinyint(1)":{type:"boolean"}};class Fce extends u2.Dialect{constructor(){super(...arguments),this.name="mysql",this.defaultNumberType="DOUBLE PRECISION",this.defaultDecimalType="DECIMAL",this.udfPrefix="ms_temp.__udf",this.hasFinalStage=!1,this.stringTypeName="VARCHAR(255)",this.divisionIsInteger=!0,this.supportsSumDistinctFunction=!0,this.unnestWithNumbers=!1,this.defaultSampling={rows:5e4},this.supportUnnestArrayAgg=!0,this.supportsAggDistinct=!0,this.supportsCTEinCoorelatedSubQueries=!0,this.supportsSafeCast=!1,this.dontUnionIndex=!1,this.supportsQualify=!1,this.supportsNesting=!0,this.experimental=!0,this.nativeBoolean=!1,this.supportsFullJoin=!1,this.supportsPipelinesInViews=!1,this.readsNestedData=!1,this.supportsComplexFilteredSources=!1,this.supportsArraysInData=!1}malloyTypeToSQLType(e){switch(e.type){case"number":return e.numberType==="integer"?"BIGINT":"DOUBLE";case"string":return"CHAR";case"date":case"timestamp":default:return e.type}}sqlTypeToMalloyType(e){var n,r;const i=(r=(n=e.match(/^(\w+)/))===null||n===void 0?void 0:n.at(0))!==null&&r!==void 0?r:e;return wce[i.toLowerCase()]||{type:"sql native",rawType:i}}quoteTablePath(e){return e.split(".").map(n=>`\`${n}\``).join(".")}sqlGroupSetTable(e){return`CROSS JOIN (select number - 1 as group_set from JSON_TABLE(cast(concat("[1", repeat(",1", ${e}), "]") as JSON),"$[*]" COLUMNS(number FOR ORDINALITY)) group_set) as group_set`}sqlAnyValue(e,n){return`MAX(${n})`}mapFields(e){return e.map(n=>`"${n.rawName}", ${n.sqlExpression}`).join(", ")}sqlAggregateTurtle(e,n,r,i){const s=i?",xrmmex":",";let o=`GROUP_CONCAT(
285
+ CROSS JOIN UNNEST(ARRAY[CASE WHEN ${e} IS NOT NULL THEN __row_id_almost_${n} END]) as ${n}_ignore(__row_id_from_${n})`:`CROSS JOIN UNNEST(COALESCE(${e}, ARRAY[NULL])) as ${n}_outer(${n})`}}cx.PrestoDialect=Tce,function(t){var e=D&&D.__createBinding||(Object.create?function(r,i,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(i,s);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(r,o,u)}:function(r,i,s,o){o===void 0&&(o=s),r[o]=i[s]}),n=D&&D.__exportStar||function(r,i){for(var s in r)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,r,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(cx,t)}(lb);var hb={},cy={},fy={};Object.defineProperty(fy,"__esModule",{value:!0}),fy.MYSQL_DIALECT_FUNCTIONS=void 0;const pb={default_separator:{takes:{value:{dimension:"string"}},returns:{measure:"string"},supportsOrderBy:!0,impl:{sql:"GROUP_CONCAT(${value} ${order_by:})"}},with_separator:{takes:{value:{dimension:"string"},separator:{literal:"string"}},returns:{measure:"string"},supportsOrderBy:!0,impl:{sql:"GROUP_CONCAT(${value} ${order_by:} SEPARATOR ${separator})"}}},bce={default_separator:{...pb.default_separator,isSymmetric:!0,supportsOrderBy:"only_default",impl:{sql:"GROUP_CONCAT(DISTINCT ${value} ${order_by:})",defaultOrderByArgIndex:0}},with_separator:{...pb.with_separator,isSymmetric:!0,supportsOrderBy:"only_default",impl:{sql:"GROUP_CONCAT(DISTINCT ${value} ${order_by:} SEPARATOR ${separator})",defaultOrderByArgIndex:0}}};fy.MYSQL_DIALECT_FUNCTIONS={string_agg:pb,string_agg_distinct:bce};var xy={};Object.defineProperty(xy,"__esModule",{value:!0}),xy.MYSQL_MALLOY_STANDARD_OVERLOADS=void 0,xy.MYSQL_MALLOY_STANDARD_OVERLOADS={regexp_extract:{function:"REGEXP_SUBSTR"},replace:{regular_expression:{sql:"REGEXP_REPLACE(${value}, ${pattern}, ${replacement}, 1,0)"}},trunc:{to_integer:{sql:"(FLOOR(${value}) + IF(${value} < 0,1,0))"},to_precision:{sql:"(ABS(FLOOR(${value} * POW(10,${precision}))/POW(10,${precision}))*IF(${value} < 0, -1, 1))"}},log:{sql:"log(${base},${value})"},div:{sql:"FLOOR(${dividend} / ${divisor})"},strpos:{sql:"LOCATE(${search_string},${test_string})"},starts_with:{sql:"COALESCE(${value} LIKE CONCAT(${prefix}, '%'),0)"},ends_with:{sql:"COALESCE(${value} LIKE CONCAT('%',${suffix}),0)"},trim:{characters:{sql:"TRIM(BOTH ${trim_characters} FROM ${value})"}},ltrim:{characters:{sql:"TRIM(LEADING ${trim_characters} FROM ${value})"}},rtrim:{characters:{sql:"TRIM(TRAILING ${trim_characters} FROM ${value})"}},byte_length:{sql:"(LENGTH(CAST(${value} AS VARBINARY)))"},chr:{sql:"CASE WHEN ${value} = 0 THEN '' ELSE CHAR(${value} USING latin1) END"}},Object.defineProperty(cy,"__esModule",{value:!0}),cy.MySQLDialect=void 0;const gb=oe,Rce=Rt,u2=sl,mB=ul,Oce=fy,Dce=xy,Nce={day_of_week:"DAYOFWEEK",day_of_year:"DAYOFYEAR"},yB={second:1,minute:60,hour:3600,day:24*3600,week:7*24*3600},wce={tinyint:{type:"boolean"},smallint:{type:"number",numberType:"integer"},mediumint:{type:"number",numberType:"integer"},int:{type:"number",numberType:"integer"},bigint:{type:"number",numberType:"integer"},"tinyint unsigned":{type:"number",numberType:"integer"},"smallint unsigned":{type:"number",numberType:"integer"},"mediumint unsigned":{type:"number",numberType:"integer"},"int unsigned":{type:"number",numberType:"integer"},"bigint unsigned":{type:"number",numberType:"integer"},double:{type:"number",numberType:"float"},varchar:{type:"string"},varbinary:{type:"string"},char:{type:"string"},text:{type:"string"},date:{type:"date"},datetime:{type:"timestamp"},timestamp:{type:"timestamp"},time:{type:"string"},decimal:{type:"number",numberType:"float"},"tinyint(1)":{type:"boolean"}};class Fce extends u2.Dialect{constructor(){super(...arguments),this.name="mysql",this.defaultNumberType="DOUBLE PRECISION",this.defaultDecimalType="DECIMAL",this.udfPrefix="ms_temp.__udf",this.hasFinalStage=!1,this.stringTypeName="VARCHAR(255)",this.divisionIsInteger=!0,this.supportsSumDistinctFunction=!0,this.unnestWithNumbers=!1,this.defaultSampling={rows:5e4},this.supportUnnestArrayAgg=!0,this.supportsAggDistinct=!0,this.supportsCTEinCoorelatedSubQueries=!0,this.supportsSafeCast=!1,this.dontUnionIndex=!1,this.supportsQualify=!1,this.supportsNesting=!0,this.experimental=!1,this.nativeBoolean=!1,this.supportsFullJoin=!1,this.supportsPipelinesInViews=!1,this.readsNestedData=!1,this.supportsComplexFilteredSources=!1,this.supportsArraysInData=!1}malloyTypeToSQLType(e){switch(e.type){case"number":return e.numberType==="integer"?"BIGINT":"DOUBLE";case"string":return"CHAR";case"date":case"timestamp":default:return e.type}}sqlTypeToMalloyType(e){var n,r;const i=(r=(n=e.match(/^(\w+)/))===null||n===void 0?void 0:n.at(0))!==null&&r!==void 0?r:e;return wce[i.toLowerCase()]||{type:"sql native",rawType:i}}quoteTablePath(e){return e.split(".").map(n=>`\`${n}\``).join(".")}sqlGroupSetTable(e){return`CROSS JOIN (select number - 1 as group_set from JSON_TABLE(cast(concat("[1", repeat(",1", ${e}), "]") as JSON),"$[*]" COLUMNS(number FOR ORDINALITY)) group_set) as group_set`}sqlAnyValue(e,n){return`MAX(${n})`}mapFields(e){return e.map(n=>`"${n.rawName}", ${n.sqlExpression}`).join(", ")}sqlAggregateTurtle(e,n,r,i){const s=i?",xrmmex":",";let o=`GROUP_CONCAT(
286
286
  IF(group_set=${e},
287
287
  JSON_OBJECT(${this.mapFields(n)})
288
288
  , null
@@ -4801,7 +4801,7 @@ const RT = ce, dxe = Nt, P2 = T0, vB = R0, hxe = y4, pxe = E4, gxe = {
4801
4801
  };
4802
4802
  class yxe extends P2.Dialect {
4803
4803
  constructor() {
4804
- super(...arguments), this.name = "mysql", this.defaultNumberType = "DOUBLE PRECISION", this.defaultDecimalType = "DECIMAL", this.udfPrefix = "ms_temp.__udf", this.hasFinalStage = !1, this.stringTypeName = "VARCHAR(255)", this.divisionIsInteger = !0, this.supportsSumDistinctFunction = !0, this.unnestWithNumbers = !1, this.defaultSampling = { rows: 5e4 }, this.supportUnnestArrayAgg = !0, this.supportsAggDistinct = !0, this.supportsCTEinCoorelatedSubQueries = !0, this.supportsSafeCast = !1, this.dontUnionIndex = !1, this.supportsQualify = !1, this.supportsNesting = !0, this.experimental = !0, this.nativeBoolean = !1, this.supportsFullJoin = !1, this.supportsPipelinesInViews = !1, this.readsNestedData = !1, this.supportsComplexFilteredSources = !1, this.supportsArraysInData = !1;
4804
+ super(...arguments), this.name = "mysql", this.defaultNumberType = "DOUBLE PRECISION", this.defaultDecimalType = "DECIMAL", this.udfPrefix = "ms_temp.__udf", this.hasFinalStage = !1, this.stringTypeName = "VARCHAR(255)", this.divisionIsInteger = !0, this.supportsSumDistinctFunction = !0, this.unnestWithNumbers = !1, this.defaultSampling = { rows: 5e4 }, this.supportUnnestArrayAgg = !0, this.supportsAggDistinct = !0, this.supportsCTEinCoorelatedSubQueries = !0, this.supportsSafeCast = !1, this.dontUnionIndex = !1, this.supportsQualify = !1, this.supportsNesting = !0, this.experimental = !1, this.nativeBoolean = !1, this.supportsFullJoin = !1, this.supportsPipelinesInViews = !1, this.readsNestedData = !1, this.supportsComplexFilteredSources = !1, this.supportsArraysInData = !1;
4805
4805
  }
4806
4806
  malloyTypeToSQLType(e) {
4807
4807
  switch (e.type) {
@@ -282,7 +282,7 @@ ${(0,nk.indent)(n)}
282
282
  CROSS JOIN UNNEST(COALESCE(${e},ARRAY[NULL])) WITH ORDINALITY as ${n}(value, __row_id_almost_${n})
283
283
  CROSS JOIN UNNEST(ARRAY[CASE WHEN ${e} IS NOT NULL THEN __row_id_almost_${n} END]) as ${n}_ignore(__row_id_from_${n})`:`CROSS JOIN UNNEST(COALESCE(${e}, ARRAY[NULL])) as ${n}(value) `:i?`-- Simulate a left join
284
284
  CROSS JOIN UNNEST(COALESCE(${e}, ARRAY[NULL])) WITH ORDINALITY as ${n}_outer(${n}, __row_id_almost_${n})
285
- CROSS JOIN UNNEST(ARRAY[CASE WHEN ${e} IS NOT NULL THEN __row_id_almost_${n} END]) as ${n}_ignore(__row_id_from_${n})`:`CROSS JOIN UNNEST(COALESCE(${e}, ARRAY[NULL])) as ${n}_outer(${n})`}}$x.PrestoDialect=cxe,function(t){var e=D&&D.__createBinding||(Object.create?function(r,i,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(i,s);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(r,o,u)}:function(r,i,s,o){o===void 0&&(o=s),r[o]=i[s]}),n=D&&D.__exportStar||function(r,i){for(var s in r)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,r,s)};Object.defineProperty(t,"__esModule",{value:!0}),n($x,t)}(YT);var e6={},eE={},tE={};Object.defineProperty(tE,"__esModule",{value:!0}),tE.MYSQL_DIALECT_FUNCTIONS=void 0;const t6={default_separator:{takes:{value:{dimension:"string"}},returns:{measure:"string"},supportsOrderBy:!0,impl:{sql:"GROUP_CONCAT(${value} ${order_by:})"}},with_separator:{takes:{value:{dimension:"string"},separator:{literal:"string"}},returns:{measure:"string"},supportsOrderBy:!0,impl:{sql:"GROUP_CONCAT(${value} ${order_by:} SEPARATOR ${separator})"}}},fxe={default_separator:{...t6.default_separator,isSymmetric:!0,supportsOrderBy:"only_default",impl:{sql:"GROUP_CONCAT(DISTINCT ${value} ${order_by:})",defaultOrderByArgIndex:0}},with_separator:{...t6.with_separator,isSymmetric:!0,supportsOrderBy:"only_default",impl:{sql:"GROUP_CONCAT(DISTINCT ${value} ${order_by:} SEPARATOR ${separator})",defaultOrderByArgIndex:0}}};tE.MYSQL_DIALECT_FUNCTIONS={string_agg:t6,string_agg_distinct:fxe};var nE={};Object.defineProperty(nE,"__esModule",{value:!0}),nE.MYSQL_MALLOY_STANDARD_OVERLOADS=void 0,nE.MYSQL_MALLOY_STANDARD_OVERLOADS={regexp_extract:{function:"REGEXP_SUBSTR"},replace:{regular_expression:{sql:"REGEXP_REPLACE(${value}, ${pattern}, ${replacement}, 1,0)"}},trunc:{to_integer:{sql:"(FLOOR(${value}) + IF(${value} < 0,1,0))"},to_precision:{sql:"(ABS(FLOOR(${value} * POW(10,${precision}))/POW(10,${precision}))*IF(${value} < 0, -1, 1))"}},log:{sql:"log(${base},${value})"},div:{sql:"FLOOR(${dividend} / ${divisor})"},strpos:{sql:"LOCATE(${search_string},${test_string})"},starts_with:{sql:"COALESCE(${value} LIKE CONCAT(${prefix}, '%'),0)"},ends_with:{sql:"COALESCE(${value} LIKE CONCAT('%',${suffix}),0)"},trim:{characters:{sql:"TRIM(BOTH ${trim_characters} FROM ${value})"}},ltrim:{characters:{sql:"TRIM(LEADING ${trim_characters} FROM ${value})"}},rtrim:{characters:{sql:"TRIM(TRAILING ${trim_characters} FROM ${value})"}},byte_length:{sql:"(LENGTH(CAST(${value} AS VARBINARY)))"},chr:{sql:"CASE WHEN ${value} = 0 THEN '' ELSE CHAR(${value} USING latin1) END"}},Object.defineProperty(eE,"__esModule",{value:!0}),eE.MySQLDialect=void 0;const n6=ce,xxe=Nt,q2=_l,sk=bl,dxe=tE,hxe=nE,pxe={day_of_week:"DAYOFWEEK",day_of_year:"DAYOFYEAR"},ok={second:1,minute:60,hour:3600,day:24*3600,week:7*24*3600},gxe={tinyint:{type:"boolean"},smallint:{type:"number",numberType:"integer"},mediumint:{type:"number",numberType:"integer"},int:{type:"number",numberType:"integer"},bigint:{type:"number",numberType:"integer"},"tinyint unsigned":{type:"number",numberType:"integer"},"smallint unsigned":{type:"number",numberType:"integer"},"mediumint unsigned":{type:"number",numberType:"integer"},"int unsigned":{type:"number",numberType:"integer"},"bigint unsigned":{type:"number",numberType:"integer"},double:{type:"number",numberType:"float"},varchar:{type:"string"},varbinary:{type:"string"},char:{type:"string"},text:{type:"string"},date:{type:"date"},datetime:{type:"timestamp"},timestamp:{type:"timestamp"},time:{type:"string"},decimal:{type:"number",numberType:"float"},"tinyint(1)":{type:"boolean"}};class mxe extends q2.Dialect{constructor(){super(...arguments),this.name="mysql",this.defaultNumberType="DOUBLE PRECISION",this.defaultDecimalType="DECIMAL",this.udfPrefix="ms_temp.__udf",this.hasFinalStage=!1,this.stringTypeName="VARCHAR(255)",this.divisionIsInteger=!0,this.supportsSumDistinctFunction=!0,this.unnestWithNumbers=!1,this.defaultSampling={rows:5e4},this.supportUnnestArrayAgg=!0,this.supportsAggDistinct=!0,this.supportsCTEinCoorelatedSubQueries=!0,this.supportsSafeCast=!1,this.dontUnionIndex=!1,this.supportsQualify=!1,this.supportsNesting=!0,this.experimental=!0,this.nativeBoolean=!1,this.supportsFullJoin=!1,this.supportsPipelinesInViews=!1,this.readsNestedData=!1,this.supportsComplexFilteredSources=!1,this.supportsArraysInData=!1}malloyTypeToSQLType(e){switch(e.type){case"number":return e.numberType==="integer"?"BIGINT":"DOUBLE";case"string":return"CHAR";case"date":case"timestamp":default:return e.type}}sqlTypeToMalloyType(e){var n,r;const i=(r=(n=e.match(/^(\w+)/))===null||n===void 0?void 0:n.at(0))!==null&&r!==void 0?r:e;return gxe[i.toLowerCase()]||{type:"sql native",rawType:i}}quoteTablePath(e){return e.split(".").map(n=>`\`${n}\``).join(".")}sqlGroupSetTable(e){return`CROSS JOIN (select number - 1 as group_set from JSON_TABLE(cast(concat("[1", repeat(",1", ${e}), "]") as JSON),"$[*]" COLUMNS(number FOR ORDINALITY)) group_set) as group_set`}sqlAnyValue(e,n){return`MAX(${n})`}mapFields(e){return e.map(n=>`"${n.rawName}", ${n.sqlExpression}`).join(", ")}sqlAggregateTurtle(e,n,r,i){const s=i?",xrmmex":",";let o=`GROUP_CONCAT(
285
+ CROSS JOIN UNNEST(ARRAY[CASE WHEN ${e} IS NOT NULL THEN __row_id_almost_${n} END]) as ${n}_ignore(__row_id_from_${n})`:`CROSS JOIN UNNEST(COALESCE(${e}, ARRAY[NULL])) as ${n}_outer(${n})`}}$x.PrestoDialect=cxe,function(t){var e=D&&D.__createBinding||(Object.create?function(r,i,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(i,s);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(r,o,u)}:function(r,i,s,o){o===void 0&&(o=s),r[o]=i[s]}),n=D&&D.__exportStar||function(r,i){for(var s in r)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,r,s)};Object.defineProperty(t,"__esModule",{value:!0}),n($x,t)}(YT);var e6={},eE={},tE={};Object.defineProperty(tE,"__esModule",{value:!0}),tE.MYSQL_DIALECT_FUNCTIONS=void 0;const t6={default_separator:{takes:{value:{dimension:"string"}},returns:{measure:"string"},supportsOrderBy:!0,impl:{sql:"GROUP_CONCAT(${value} ${order_by:})"}},with_separator:{takes:{value:{dimension:"string"},separator:{literal:"string"}},returns:{measure:"string"},supportsOrderBy:!0,impl:{sql:"GROUP_CONCAT(${value} ${order_by:} SEPARATOR ${separator})"}}},fxe={default_separator:{...t6.default_separator,isSymmetric:!0,supportsOrderBy:"only_default",impl:{sql:"GROUP_CONCAT(DISTINCT ${value} ${order_by:})",defaultOrderByArgIndex:0}},with_separator:{...t6.with_separator,isSymmetric:!0,supportsOrderBy:"only_default",impl:{sql:"GROUP_CONCAT(DISTINCT ${value} ${order_by:} SEPARATOR ${separator})",defaultOrderByArgIndex:0}}};tE.MYSQL_DIALECT_FUNCTIONS={string_agg:t6,string_agg_distinct:fxe};var nE={};Object.defineProperty(nE,"__esModule",{value:!0}),nE.MYSQL_MALLOY_STANDARD_OVERLOADS=void 0,nE.MYSQL_MALLOY_STANDARD_OVERLOADS={regexp_extract:{function:"REGEXP_SUBSTR"},replace:{regular_expression:{sql:"REGEXP_REPLACE(${value}, ${pattern}, ${replacement}, 1,0)"}},trunc:{to_integer:{sql:"(FLOOR(${value}) + IF(${value} < 0,1,0))"},to_precision:{sql:"(ABS(FLOOR(${value} * POW(10,${precision}))/POW(10,${precision}))*IF(${value} < 0, -1, 1))"}},log:{sql:"log(${base},${value})"},div:{sql:"FLOOR(${dividend} / ${divisor})"},strpos:{sql:"LOCATE(${search_string},${test_string})"},starts_with:{sql:"COALESCE(${value} LIKE CONCAT(${prefix}, '%'),0)"},ends_with:{sql:"COALESCE(${value} LIKE CONCAT('%',${suffix}),0)"},trim:{characters:{sql:"TRIM(BOTH ${trim_characters} FROM ${value})"}},ltrim:{characters:{sql:"TRIM(LEADING ${trim_characters} FROM ${value})"}},rtrim:{characters:{sql:"TRIM(TRAILING ${trim_characters} FROM ${value})"}},byte_length:{sql:"(LENGTH(CAST(${value} AS VARBINARY)))"},chr:{sql:"CASE WHEN ${value} = 0 THEN '' ELSE CHAR(${value} USING latin1) END"}},Object.defineProperty(eE,"__esModule",{value:!0}),eE.MySQLDialect=void 0;const n6=ce,xxe=Nt,q2=_l,sk=bl,dxe=tE,hxe=nE,pxe={day_of_week:"DAYOFWEEK",day_of_year:"DAYOFYEAR"},ok={second:1,minute:60,hour:3600,day:24*3600,week:7*24*3600},gxe={tinyint:{type:"boolean"},smallint:{type:"number",numberType:"integer"},mediumint:{type:"number",numberType:"integer"},int:{type:"number",numberType:"integer"},bigint:{type:"number",numberType:"integer"},"tinyint unsigned":{type:"number",numberType:"integer"},"smallint unsigned":{type:"number",numberType:"integer"},"mediumint unsigned":{type:"number",numberType:"integer"},"int unsigned":{type:"number",numberType:"integer"},"bigint unsigned":{type:"number",numberType:"integer"},double:{type:"number",numberType:"float"},varchar:{type:"string"},varbinary:{type:"string"},char:{type:"string"},text:{type:"string"},date:{type:"date"},datetime:{type:"timestamp"},timestamp:{type:"timestamp"},time:{type:"string"},decimal:{type:"number",numberType:"float"},"tinyint(1)":{type:"boolean"}};class mxe extends q2.Dialect{constructor(){super(...arguments),this.name="mysql",this.defaultNumberType="DOUBLE PRECISION",this.defaultDecimalType="DECIMAL",this.udfPrefix="ms_temp.__udf",this.hasFinalStage=!1,this.stringTypeName="VARCHAR(255)",this.divisionIsInteger=!0,this.supportsSumDistinctFunction=!0,this.unnestWithNumbers=!1,this.defaultSampling={rows:5e4},this.supportUnnestArrayAgg=!0,this.supportsAggDistinct=!0,this.supportsCTEinCoorelatedSubQueries=!0,this.supportsSafeCast=!1,this.dontUnionIndex=!1,this.supportsQualify=!1,this.supportsNesting=!0,this.experimental=!1,this.nativeBoolean=!1,this.supportsFullJoin=!1,this.supportsPipelinesInViews=!1,this.readsNestedData=!1,this.supportsComplexFilteredSources=!1,this.supportsArraysInData=!1}malloyTypeToSQLType(e){switch(e.type){case"number":return e.numberType==="integer"?"BIGINT":"DOUBLE";case"string":return"CHAR";case"date":case"timestamp":default:return e.type}}sqlTypeToMalloyType(e){var n,r;const i=(r=(n=e.match(/^(\w+)/))===null||n===void 0?void 0:n.at(0))!==null&&r!==void 0?r:e;return gxe[i.toLowerCase()]||{type:"sql native",rawType:i}}quoteTablePath(e){return e.split(".").map(n=>`\`${n}\``).join(".")}sqlGroupSetTable(e){return`CROSS JOIN (select number - 1 as group_set from JSON_TABLE(cast(concat("[1", repeat(",1", ${e}), "]") as JSON),"$[*]" COLUMNS(number FOR ORDINALITY)) group_set) as group_set`}sqlAnyValue(e,n){return`MAX(${n})`}mapFields(e){return e.map(n=>`"${n.rawName}", ${n.sqlExpression}`).join(", ")}sqlAggregateTurtle(e,n,r,i){const s=i?",xrmmex":",";let o=`GROUP_CONCAT(
286
286
  IF(group_set=${e},
287
287
  JSON_OBJECT(${this.mapFields(n)})
288
288
  , null
@@ -4801,7 +4801,7 @@ const RT = ce, dxe = Nt, P2 = T0, vB = R0, hxe = y4, pxe = E4, gxe = {
4801
4801
  };
4802
4802
  class yxe extends P2.Dialect {
4803
4803
  constructor() {
4804
- super(...arguments), this.name = "mysql", this.defaultNumberType = "DOUBLE PRECISION", this.defaultDecimalType = "DECIMAL", this.udfPrefix = "ms_temp.__udf", this.hasFinalStage = !1, this.stringTypeName = "VARCHAR(255)", this.divisionIsInteger = !0, this.supportsSumDistinctFunction = !0, this.unnestWithNumbers = !1, this.defaultSampling = { rows: 5e4 }, this.supportUnnestArrayAgg = !0, this.supportsAggDistinct = !0, this.supportsCTEinCoorelatedSubQueries = !0, this.supportsSafeCast = !1, this.dontUnionIndex = !1, this.supportsQualify = !1, this.supportsNesting = !0, this.experimental = !0, this.nativeBoolean = !1, this.supportsFullJoin = !1, this.supportsPipelinesInViews = !1, this.readsNestedData = !1, this.supportsComplexFilteredSources = !1, this.supportsArraysInData = !1;
4804
+ super(...arguments), this.name = "mysql", this.defaultNumberType = "DOUBLE PRECISION", this.defaultDecimalType = "DECIMAL", this.udfPrefix = "ms_temp.__udf", this.hasFinalStage = !1, this.stringTypeName = "VARCHAR(255)", this.divisionIsInteger = !0, this.supportsSumDistinctFunction = !0, this.unnestWithNumbers = !1, this.defaultSampling = { rows: 5e4 }, this.supportUnnestArrayAgg = !0, this.supportsAggDistinct = !0, this.supportsCTEinCoorelatedSubQueries = !0, this.supportsSafeCast = !1, this.dontUnionIndex = !1, this.supportsQualify = !1, this.supportsNesting = !0, this.experimental = !1, this.nativeBoolean = !1, this.supportsFullJoin = !1, this.supportsPipelinesInViews = !1, this.readsNestedData = !1, this.supportsComplexFilteredSources = !1, this.supportsArraysInData = !1;
4805
4805
  }
4806
4806
  malloyTypeToSQLType(e) {
4807
4807
  switch (e.type) {
@@ -282,7 +282,7 @@ ${(0,tk.indent)(n)}
282
282
  CROSS JOIN UNNEST(COALESCE(${e},ARRAY[NULL])) WITH ORDINALITY as ${n}(value, __row_id_almost_${n})
283
283
  CROSS JOIN UNNEST(ARRAY[CASE WHEN ${e} IS NOT NULL THEN __row_id_almost_${n} END]) as ${n}_ignore(__row_id_from_${n})`:`CROSS JOIN UNNEST(COALESCE(${e}, ARRAY[NULL])) as ${n}(value) `:i?`-- Simulate a left join
284
284
  CROSS JOIN UNNEST(COALESCE(${e}, ARRAY[NULL])) WITH ORDINALITY as ${n}_outer(${n}, __row_id_almost_${n})
285
- CROSS JOIN UNNEST(ARRAY[CASE WHEN ${e} IS NOT NULL THEN __row_id_almost_${n} END]) as ${n}_ignore(__row_id_from_${n})`:`CROSS JOIN UNNEST(COALESCE(${e}, ARRAY[NULL])) as ${n}_outer(${n})`}}$x.PrestoDialect=cxe,function(t){var e=D&&D.__createBinding||(Object.create?function(r,i,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(i,s);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(r,o,u)}:function(r,i,s,o){o===void 0&&(o=s),r[o]=i[s]}),n=D&&D.__exportStar||function(r,i){for(var s in r)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,r,s)};Object.defineProperty(t,"__esModule",{value:!0}),n($x,t)}(VT);var ZT={},Zy={},eE={};Object.defineProperty(eE,"__esModule",{value:!0}),eE.MYSQL_DIALECT_FUNCTIONS=void 0;const e6={default_separator:{takes:{value:{dimension:"string"}},returns:{measure:"string"},supportsOrderBy:!0,impl:{sql:"GROUP_CONCAT(${value} ${order_by:})"}},with_separator:{takes:{value:{dimension:"string"},separator:{literal:"string"}},returns:{measure:"string"},supportsOrderBy:!0,impl:{sql:"GROUP_CONCAT(${value} ${order_by:} SEPARATOR ${separator})"}}},fxe={default_separator:{...e6.default_separator,isSymmetric:!0,supportsOrderBy:"only_default",impl:{sql:"GROUP_CONCAT(DISTINCT ${value} ${order_by:})",defaultOrderByArgIndex:0}},with_separator:{...e6.with_separator,isSymmetric:!0,supportsOrderBy:"only_default",impl:{sql:"GROUP_CONCAT(DISTINCT ${value} ${order_by:} SEPARATOR ${separator})",defaultOrderByArgIndex:0}}};eE.MYSQL_DIALECT_FUNCTIONS={string_agg:e6,string_agg_distinct:fxe};var tE={};Object.defineProperty(tE,"__esModule",{value:!0}),tE.MYSQL_MALLOY_STANDARD_OVERLOADS=void 0,tE.MYSQL_MALLOY_STANDARD_OVERLOADS={regexp_extract:{function:"REGEXP_SUBSTR"},replace:{regular_expression:{sql:"REGEXP_REPLACE(${value}, ${pattern}, ${replacement}, 1,0)"}},trunc:{to_integer:{sql:"(FLOOR(${value}) + IF(${value} < 0,1,0))"},to_precision:{sql:"(ABS(FLOOR(${value} * POW(10,${precision}))/POW(10,${precision}))*IF(${value} < 0, -1, 1))"}},log:{sql:"log(${base},${value})"},div:{sql:"FLOOR(${dividend} / ${divisor})"},strpos:{sql:"LOCATE(${search_string},${test_string})"},starts_with:{sql:"COALESCE(${value} LIKE CONCAT(${prefix}, '%'),0)"},ends_with:{sql:"COALESCE(${value} LIKE CONCAT('%',${suffix}),0)"},trim:{characters:{sql:"TRIM(BOTH ${trim_characters} FROM ${value})"}},ltrim:{characters:{sql:"TRIM(LEADING ${trim_characters} FROM ${value})"}},rtrim:{characters:{sql:"TRIM(TRAILING ${trim_characters} FROM ${value})"}},byte_length:{sql:"(LENGTH(CAST(${value} AS VARBINARY)))"},chr:{sql:"CASE WHEN ${value} = 0 THEN '' ELSE CHAR(${value} USING latin1) END"}},Object.defineProperty(Zy,"__esModule",{value:!0}),Zy.MySQLDialect=void 0;const t6=ce,xxe=Nt,j2=_l,ik=bl,dxe=eE,hxe=tE,pxe={day_of_week:"DAYOFWEEK",day_of_year:"DAYOFYEAR"},sk={second:1,minute:60,hour:3600,day:24*3600,week:7*24*3600},gxe={tinyint:{type:"boolean"},smallint:{type:"number",numberType:"integer"},mediumint:{type:"number",numberType:"integer"},int:{type:"number",numberType:"integer"},bigint:{type:"number",numberType:"integer"},"tinyint unsigned":{type:"number",numberType:"integer"},"smallint unsigned":{type:"number",numberType:"integer"},"mediumint unsigned":{type:"number",numberType:"integer"},"int unsigned":{type:"number",numberType:"integer"},"bigint unsigned":{type:"number",numberType:"integer"},double:{type:"number",numberType:"float"},varchar:{type:"string"},varbinary:{type:"string"},char:{type:"string"},text:{type:"string"},date:{type:"date"},datetime:{type:"timestamp"},timestamp:{type:"timestamp"},time:{type:"string"},decimal:{type:"number",numberType:"float"},"tinyint(1)":{type:"boolean"}};class mxe extends j2.Dialect{constructor(){super(...arguments),this.name="mysql",this.defaultNumberType="DOUBLE PRECISION",this.defaultDecimalType="DECIMAL",this.udfPrefix="ms_temp.__udf",this.hasFinalStage=!1,this.stringTypeName="VARCHAR(255)",this.divisionIsInteger=!0,this.supportsSumDistinctFunction=!0,this.unnestWithNumbers=!1,this.defaultSampling={rows:5e4},this.supportUnnestArrayAgg=!0,this.supportsAggDistinct=!0,this.supportsCTEinCoorelatedSubQueries=!0,this.supportsSafeCast=!1,this.dontUnionIndex=!1,this.supportsQualify=!1,this.supportsNesting=!0,this.experimental=!0,this.nativeBoolean=!1,this.supportsFullJoin=!1,this.supportsPipelinesInViews=!1,this.readsNestedData=!1,this.supportsComplexFilteredSources=!1,this.supportsArraysInData=!1}malloyTypeToSQLType(e){switch(e.type){case"number":return e.numberType==="integer"?"BIGINT":"DOUBLE";case"string":return"CHAR";case"date":case"timestamp":default:return e.type}}sqlTypeToMalloyType(e){var n,r;const i=(r=(n=e.match(/^(\w+)/))===null||n===void 0?void 0:n.at(0))!==null&&r!==void 0?r:e;return gxe[i.toLowerCase()]||{type:"sql native",rawType:i}}quoteTablePath(e){return e.split(".").map(n=>`\`${n}\``).join(".")}sqlGroupSetTable(e){return`CROSS JOIN (select number - 1 as group_set from JSON_TABLE(cast(concat("[1", repeat(",1", ${e}), "]") as JSON),"$[*]" COLUMNS(number FOR ORDINALITY)) group_set) as group_set`}sqlAnyValue(e,n){return`MAX(${n})`}mapFields(e){return e.map(n=>`"${n.rawName}", ${n.sqlExpression}`).join(", ")}sqlAggregateTurtle(e,n,r,i){const s=i?",xrmmex":",";let o=`GROUP_CONCAT(
285
+ CROSS JOIN UNNEST(ARRAY[CASE WHEN ${e} IS NOT NULL THEN __row_id_almost_${n} END]) as ${n}_ignore(__row_id_from_${n})`:`CROSS JOIN UNNEST(COALESCE(${e}, ARRAY[NULL])) as ${n}_outer(${n})`}}$x.PrestoDialect=cxe,function(t){var e=D&&D.__createBinding||(Object.create?function(r,i,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(i,s);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(r,o,u)}:function(r,i,s,o){o===void 0&&(o=s),r[o]=i[s]}),n=D&&D.__exportStar||function(r,i){for(var s in r)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,r,s)};Object.defineProperty(t,"__esModule",{value:!0}),n($x,t)}(VT);var ZT={},Zy={},eE={};Object.defineProperty(eE,"__esModule",{value:!0}),eE.MYSQL_DIALECT_FUNCTIONS=void 0;const e6={default_separator:{takes:{value:{dimension:"string"}},returns:{measure:"string"},supportsOrderBy:!0,impl:{sql:"GROUP_CONCAT(${value} ${order_by:})"}},with_separator:{takes:{value:{dimension:"string"},separator:{literal:"string"}},returns:{measure:"string"},supportsOrderBy:!0,impl:{sql:"GROUP_CONCAT(${value} ${order_by:} SEPARATOR ${separator})"}}},fxe={default_separator:{...e6.default_separator,isSymmetric:!0,supportsOrderBy:"only_default",impl:{sql:"GROUP_CONCAT(DISTINCT ${value} ${order_by:})",defaultOrderByArgIndex:0}},with_separator:{...e6.with_separator,isSymmetric:!0,supportsOrderBy:"only_default",impl:{sql:"GROUP_CONCAT(DISTINCT ${value} ${order_by:} SEPARATOR ${separator})",defaultOrderByArgIndex:0}}};eE.MYSQL_DIALECT_FUNCTIONS={string_agg:e6,string_agg_distinct:fxe};var tE={};Object.defineProperty(tE,"__esModule",{value:!0}),tE.MYSQL_MALLOY_STANDARD_OVERLOADS=void 0,tE.MYSQL_MALLOY_STANDARD_OVERLOADS={regexp_extract:{function:"REGEXP_SUBSTR"},replace:{regular_expression:{sql:"REGEXP_REPLACE(${value}, ${pattern}, ${replacement}, 1,0)"}},trunc:{to_integer:{sql:"(FLOOR(${value}) + IF(${value} < 0,1,0))"},to_precision:{sql:"(ABS(FLOOR(${value} * POW(10,${precision}))/POW(10,${precision}))*IF(${value} < 0, -1, 1))"}},log:{sql:"log(${base},${value})"},div:{sql:"FLOOR(${dividend} / ${divisor})"},strpos:{sql:"LOCATE(${search_string},${test_string})"},starts_with:{sql:"COALESCE(${value} LIKE CONCAT(${prefix}, '%'),0)"},ends_with:{sql:"COALESCE(${value} LIKE CONCAT('%',${suffix}),0)"},trim:{characters:{sql:"TRIM(BOTH ${trim_characters} FROM ${value})"}},ltrim:{characters:{sql:"TRIM(LEADING ${trim_characters} FROM ${value})"}},rtrim:{characters:{sql:"TRIM(TRAILING ${trim_characters} FROM ${value})"}},byte_length:{sql:"(LENGTH(CAST(${value} AS VARBINARY)))"},chr:{sql:"CASE WHEN ${value} = 0 THEN '' ELSE CHAR(${value} USING latin1) END"}},Object.defineProperty(Zy,"__esModule",{value:!0}),Zy.MySQLDialect=void 0;const t6=ce,xxe=Nt,j2=_l,ik=bl,dxe=eE,hxe=tE,pxe={day_of_week:"DAYOFWEEK",day_of_year:"DAYOFYEAR"},sk={second:1,minute:60,hour:3600,day:24*3600,week:7*24*3600},gxe={tinyint:{type:"boolean"},smallint:{type:"number",numberType:"integer"},mediumint:{type:"number",numberType:"integer"},int:{type:"number",numberType:"integer"},bigint:{type:"number",numberType:"integer"},"tinyint unsigned":{type:"number",numberType:"integer"},"smallint unsigned":{type:"number",numberType:"integer"},"mediumint unsigned":{type:"number",numberType:"integer"},"int unsigned":{type:"number",numberType:"integer"},"bigint unsigned":{type:"number",numberType:"integer"},double:{type:"number",numberType:"float"},varchar:{type:"string"},varbinary:{type:"string"},char:{type:"string"},text:{type:"string"},date:{type:"date"},datetime:{type:"timestamp"},timestamp:{type:"timestamp"},time:{type:"string"},decimal:{type:"number",numberType:"float"},"tinyint(1)":{type:"boolean"}};class mxe extends j2.Dialect{constructor(){super(...arguments),this.name="mysql",this.defaultNumberType="DOUBLE PRECISION",this.defaultDecimalType="DECIMAL",this.udfPrefix="ms_temp.__udf",this.hasFinalStage=!1,this.stringTypeName="VARCHAR(255)",this.divisionIsInteger=!0,this.supportsSumDistinctFunction=!0,this.unnestWithNumbers=!1,this.defaultSampling={rows:5e4},this.supportUnnestArrayAgg=!0,this.supportsAggDistinct=!0,this.supportsCTEinCoorelatedSubQueries=!0,this.supportsSafeCast=!1,this.dontUnionIndex=!1,this.supportsQualify=!1,this.supportsNesting=!0,this.experimental=!1,this.nativeBoolean=!1,this.supportsFullJoin=!1,this.supportsPipelinesInViews=!1,this.readsNestedData=!1,this.supportsComplexFilteredSources=!1,this.supportsArraysInData=!1}malloyTypeToSQLType(e){switch(e.type){case"number":return e.numberType==="integer"?"BIGINT":"DOUBLE";case"string":return"CHAR";case"date":case"timestamp":default:return e.type}}sqlTypeToMalloyType(e){var n,r;const i=(r=(n=e.match(/^(\w+)/))===null||n===void 0?void 0:n.at(0))!==null&&r!==void 0?r:e;return gxe[i.toLowerCase()]||{type:"sql native",rawType:i}}quoteTablePath(e){return e.split(".").map(n=>`\`${n}\``).join(".")}sqlGroupSetTable(e){return`CROSS JOIN (select number - 1 as group_set from JSON_TABLE(cast(concat("[1", repeat(",1", ${e}), "]") as JSON),"$[*]" COLUMNS(number FOR ORDINALITY)) group_set) as group_set`}sqlAnyValue(e,n){return`MAX(${n})`}mapFields(e){return e.map(n=>`"${n.rawName}", ${n.sqlExpression}`).join(", ")}sqlAggregateTurtle(e,n,r,i){const s=i?",xrmmex":",";let o=`GROUP_CONCAT(
286
286
  IF(group_set=${e},
287
287
  JSON_OBJECT(${this.mapFields(n)})
288
288
  , null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/render",
3
- "version": "0.0.198-dev241010181909",
3
+ "version": "0.0.198-dev241010185717",
4
4
  "license": "MIT",
5
5
  "main": "dist/module/index.umd.js",
6
6
  "types": "dist/index.d.ts",
@@ -32,7 +32,7 @@
32
32
  "build-types": "tsc --build --declaration --emitDeclarationOnly"
33
33
  },
34
34
  "dependencies": {
35
- "@malloydata/malloy": "^0.0.198-dev241010181909",
35
+ "@malloydata/malloy": "^0.0.198-dev241010185717",
36
36
  "@tanstack/solid-virtual": "^3.10.4",
37
37
  "component-register": "^0.8.6",
38
38
  "lodash": "^4.17.20",