Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/12044#discussion_r57806268
--- Diff:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeFormatterSuite.scala
---
@@ -93,4 +100,36 @@ class CodeFormatterSuite extends SparkFunSuite {
|/* 004 */ c)
""".stripMargin
}
+
+ testCase("single line comments") {
+ """// This is a comment about class A { { { ( (
+ |class A {
+ |class body;
+ |}""".stripMargin
+ }{
+ """
+ |/* 001 */ // This is a comment about class A { { { ( (
+ |/* 002 */ class A {
+ |/* 003 */ class body;
+ |/* 004 */ }
+ """.stripMargin
+ }
+
+ testCase("multi-line comments") {
+ """/* This is a comment about
--- End diff --
add a space before /*
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]