Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add a test for _LEGACY_ERROR_TEMP_1100
  • Loading branch information
MaxGekk committed Aug 26, 2023
commit 89e766085efb9139212ca4ea1f4038bf0514a7db
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,17 @@ class StringFunctionsSuite extends QueryTest with SharedSparkSession {
df.select(to_char(col("a"), lit("$99.99"))),
Seq(Row("$78.12"))
)

val df2 = Seq((Array(1.toByte), "base64")).toDF("input", "format")
checkError(
exception = intercept[AnalysisException] {
df2.select(to_char(col("input"), col("format"))).collect()
},
errorClass = "_LEGACY_ERROR_TEMP_1100",
parameters = Map(
"argName" -> "format",
"funcName" -> "to_char",
"requiredType" -> "string"))
}

test("to_varchar") {
Expand Down