@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.
@@ -41142,7 +41142,7 @@ class Jye extends Yye.ExpressionDef {
41142
41142
  r = this.castType;
41143
41143
  else {
41144
41144
  const i = e.dialectObj();
41145
- 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`));
41145
+ 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`));
41146
41146
  }
41147
41147
  return {
41148
41148
  dataType: r,