Skip to content

Commit 7167f13

Browse files
committed
correct indentation
1 parent 1ac133c commit 7167f13

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

spark/src/test/scala/org/apache/spark/sql/delta/DeltaErrorsSuite.scala

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2453,16 +2453,17 @@ trait DeltaErrorsSuiteBase
24532453
Map("externalLocation" -> "external-location", "targetIdentifier" -> "`table1`"))
24542454
}
24552455
{
2456-
DeltaTableValueFunctions.supportedFnNames.foreach { fnName => {
2457-
val fnCall = s"${fnName}()"
2458-
val e = intercept[DeltaAnalysisException] {
2459-
sql(s"SELECT * FROM $fnCall").collect()
2456+
DeltaTableValueFunctions.supportedFnNames.foreach { fnName =>
2457+
{
2458+
val fnCall = s"${fnName}()"
2459+
val e = intercept[DeltaAnalysisException] {
2460+
sql(s"SELECT * FROM $fnCall").collect()
2461+
}
2462+
checkError(e, "INCORRECT_NUMBER_OF_ARGUMENTS", "42605",
2463+
Map("failure" -> "not enough args", "functionName" -> fnName, "minArgs" -> "2",
2464+
"maxArgs" -> "3"),
2465+
ExpectedContext(fragment = fnCall, start = 14, stop = 14 + fnCall.length - 1))
24602466
}
2461-
checkError(e, "INCORRECT_NUMBER_OF_ARGUMENTS", "42605",
2462-
Map("failure" -> "not enough args", "functionName" -> fnName, "minArgs" -> "2",
2463-
"maxArgs" -> "3"),
2464-
ExpectedContext(fragment = fnCall, start = 14, stop = 14 + fnCall.length - 1))
2465-
}
24662467
{
24672468
val fnCall = s"${fnName}(1, 2, 3, 4, 5)"
24682469
val e = intercept[DeltaAnalysisException] {

0 commit comments

Comments
 (0)