Skip to content

Commit

Permalink
Correct error cond
Browse files Browse the repository at this point in the history
  • Loading branch information
uros-db committed Oct 16, 2024
1 parent 12017e5 commit 3246d8e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@
},
"IMPLICIT" : {
"message" : [
"Error occurred due to the mismatch between multiple implicit non-default collations. Use COLLATE function to set the collation explicitly."
"Error occurred due to the mismatch between implicit collations: [<implicitTypes>]. Use COLLATE function to set the collation explicitly."
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ Error occurred due to the mismatch between explicit collations: `<explicitTypes>

## IMPLICIT

Error occurred due to the mismatch between multiple implicit non-default collations. Use COLLATE function to set the collation explicitly.
Error occurred due to the mismatch between implicit collations: `<implicitTypes>`. Use COLLATE function to set the collation explicitly.


Original file line number Diff line number Diff line change
Expand Up @@ -3646,11 +3646,11 @@ private[sql] object QueryCompilationErrors extends QueryErrorsBase with Compilat
)
}

def implicitCollationMismatchError(explicitTypes: Seq[String]): Throwable = {
def implicitCollationMismatchError(implicitTypes: Seq[String]): Throwable = {
new AnalysisException(
errorClass = "COLLATION_MISMATCH.IMPLICIT",
messageParameters = Map(
"explicitTypes" -> explicitTypes.map(toSQLId).mkString(", ")
"implicitTypes" -> implicitTypes.map(toSQLId).mkString(", ")
)
)
}
Expand Down

0 comments on commit 3246d8e

Please sign in to comment.