Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1955,20 +1955,14 @@ object AnsiCast {
suggestionOnConversionFunctions(from, to, "function UNIX_DATE")

// scalastyle:off line.size.limit
case (_: ArrayType, StringType) =>
s"""
| cannot cast ${from.catalogString} to ${to.catalogString} with ANSI mode on.
| If you have to cast ${from.catalogString} to ${to.catalogString}, you can use the function ARRAY_JOIN or set $fallbackConfKey as $fallbackConfValue.
|""".stripMargin

case _ if Cast.canCast(from, to) =>
s"""
| cannot cast ${from.catalogString} to ${to.catalogString} with ANSI mode on.
| If you have to cast ${from.catalogString} to ${to.catalogString}, you can set $fallbackConfKey as $fallbackConfValue.
|""".stripMargin
// scalastyle:on line.size.limit

case _ => s"cannot cast ${from.catalogString} to ${to.catalogString}"
// scalastyle:on line.size.limit
}
}

Expand Down