@malloydata/render 0.0.197-dev241009193540 → 0.0.197-dev241009205116

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.
@@ -42065,7 +42065,7 @@ class kAe extends BAe.ExpressionDef {
42065
42065
  r = this.castType;
42066
42066
  else {
42067
42067
  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`));
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`), this.safe && !i.supportsSafeCast && this.logError("dialect-cast-unsafe-only", `The SQL dialect '${e.dialectName()}' does not supply a safe cast operator`));
42069
42069
  }
42070
42070
  return {
42071
42071
  dataType: r,