We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8be11b0 + 5849d9b commit c10e27aCopy full SHA for c10e27a
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeFormatter.scala
@@ -33,15 +33,8 @@ private class CodeFormatter {
33
private val indentSize = 2
34
private var indentString = ""
35
private var currentLine = 1
36
- private var lastLine: String = _
37
38
private def addLine(line: String): Unit = {
39
- // ignore continuous empty lines
40
- if (line.isEmpty && (lastLine == "")) {
41
- return
42
- }
43
- lastLine = line
44
-
45
val indentChange =
46
line.count(c => "({".indexOf(c) >= 0) - line.count(c => ")}".indexOf(c) >= 0)
47
val newIndentLevel = math.max(0, indentLevel + indentChange)
0 commit comments