Skip to content

Commit

Permalink
Remove usage of toSQLId which broke a ton of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
scottsand-db committed Mar 26, 2024
1 parent ddcccf4 commit a993606
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2077,7 +2077,7 @@ trait DeltaErrorsBase
constraints: Map[String, String]): Throwable = {
new DeltaAnalysisException(
errorClass = "_LEGACY_ERROR_TEMP_DELTA_0004",
messageParameters = Array(operation, toSQLId(columnName), constraints.mkString("\n"))
messageParameters = Array(operation, columnName, constraints.mkString("\n"))
)
}

Expand All @@ -2087,7 +2087,7 @@ trait DeltaErrorsBase
fields: Seq[StructField]): Throwable = {
new DeltaAnalysisException(
errorClass = "_LEGACY_ERROR_TEMP_DELTA_0005",
messageParameters = Array(operation, toSQLId(columnName), fields.map(_.name).mkString("\n"))
messageParameters = Array(operation, columnName, fields.map(_.name).mkString("\n"))
)
}

Expand Down Expand Up @@ -2415,7 +2415,7 @@ trait DeltaErrorsBase
hasInsert: Boolean): Throwable = {
new DeltaAnalysisException(
errorClass = "_LEGACY_ERROR_TEMP_DELTA_0006",
messageParameters = Array(toSQLId(colName), s"$hasStart", s"$hasStep", s"$hasInsert")
messageParameters = Array(colName, s"$hasStart", s"$hasStep", s"$hasInsert")
)
}

Expand Down Expand Up @@ -3270,7 +3270,7 @@ trait DeltaErrorsBase
def mergeAddVoidColumn(columnName: String): Throwable = {
new DeltaAnalysisException(
errorClass = "DELTA_MERGE_ADD_VOID_COLUMN",
messageParameters = Array(toSQLId(columnName))
messageParameters = Array(columnName)
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2908,7 +2908,7 @@ trait DeltaErrorsSuiteBase
Some("_LEGACY_ERROR_TEMP_DELTA_0004"),
None,
Some(
s"""Cannot UPDATE column `col1` because this column is referenced by the following
s"""Cannot UPDATE column col1 because this column is referenced by the following
|check constraint(s):
|foo -> bar""".stripMargin)
)
Expand All @@ -2923,7 +2923,7 @@ trait DeltaErrorsSuiteBase
Some("_LEGACY_ERROR_TEMP_DELTA_0005"),
None,
Some(
s"""Cannot UPDATE column `col1` because this column is referenced by the following
s"""Cannot UPDATE column col1 because this column is referenced by the following
|generated column(s):
|col2""".stripMargin)
)
Expand All @@ -2936,7 +2936,7 @@ trait DeltaErrorsSuiteBase
e,
Some("_LEGACY_ERROR_TEMP_DELTA_0006"),
None,
Some(s"Inconsistent IDENTITY metadata for column `col1` detected: true, true, true")
Some(s"Inconsistent IDENTITY metadata for column col1 detected: true, true, true")
)
}
{
Expand All @@ -2957,7 +2957,7 @@ trait DeltaErrorsSuiteBase
e,
Some("DELTA_MERGE_ADD_VOID_COLUMN"),
Some("42K09"),
Some(s"Cannot add column `fooCol` with type VOID. Please explicitly specify a non-void type.")
Some(s"Cannot add column fooCol with type VOID. Please explicitly specify a non-void type.")
)
}
}
Expand Down

0 comments on commit a993606

Please sign in to comment.