@malloydata/render 0.0.197-dev241009193540 → 0.0.197-dev241010003320
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/module/index.mjs +11661 -11426
- package/dist/module/index.umd.js +250 -250
- package/dist/register/register.mjs +4 -11
- package/dist/register/register.umd.js +2 -2
- package/dist/webcomponent/malloy-render.mjs +4 -11
- package/dist/webcomponent/malloy-render.umd.js +2 -2
- package/package.json +2 -2
|
@@ -25921,17 +25921,10 @@ class Ms extends FA {
|
|
|
25921
25921
|
break;
|
|
25922
25922
|
case "date":
|
|
25923
25923
|
case "timestamp": {
|
|
25924
|
-
const x = a.f.fieldDef.timeframe;
|
|
25925
|
-
x
|
|
25924
|
+
const x = a.f.fieldDef.timeframe, h = { type: a.f.fieldDef.type };
|
|
25925
|
+
x && (h.timeframe = x), r.push({
|
|
25926
25926
|
name: u,
|
|
25927
|
-
|
|
25928
|
-
timeframe: x,
|
|
25929
|
-
resultMetadata: l,
|
|
25930
|
-
location: c,
|
|
25931
|
-
annotation: f
|
|
25932
|
-
}) : r.push({
|
|
25933
|
-
name: u,
|
|
25934
|
-
type: "timestamp",
|
|
25927
|
+
...h,
|
|
25935
25928
|
resultMetadata: l,
|
|
25936
25929
|
location: c,
|
|
25937
25930
|
annotation: f
|
|
@@ -42065,7 +42058,7 @@ class kAe extends BAe.ExpressionDef {
|
|
|
42065
42058
|
r = this.castType;
|
|
42066
42059
|
else {
|
|
42067
42060
|
const i = e.dialectObj();
|
|
42068
|
-
i && (i.validateTypeName(this.castType.raw) ? r = i.sqlTypeToMalloyType(this.castType.raw).type : this.logError("invalid-sql-native-type", `Cast type \`${this.castType.raw}\` is invalid for ${i.name} dialect`));
|
|
42061
|
+
i && (i.validateTypeName(this.castType.raw) ? r = i.sqlTypeToMalloyType(this.castType.raw).type : this.logError("invalid-sql-native-type", `Cast type \`${this.castType.raw}\` is invalid for ${i.name} dialect`), this.safe && !i.supportsSafeCast && this.logError("dialect-cast-unsafe-only", `The SQL dialect '${e.dialectName()}' does not supply a safe cast operator`));
|
|
42069
42062
|
}
|
|
42070
42063
|
return {
|
|
42071
42064
|
dataType: r,
|