Skip to content

Commit 8df81f4

Browse files
wangyanlin01Jackey Lee
authored andcommitted
[SPARK-26426][SQL] fix ExpresionInfo assert error in windows operation system.
## What changes were proposed in this pull request? fix ExpresionInfo assert error in windows operation system, when running unit tests. ## How was this patch tested? unit tests Closes apache#23363 from yanlin-Lynn/unit-test-windows. Authored-by: wangyanlin01 <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
1 parent a16b74c commit 8df81f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/expressions/ExpressionInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public ExpressionInfo(
7979
assert name != null;
8080
assert arguments != null;
8181
assert examples != null;
82-
assert examples.isEmpty() || examples.startsWith("\n Examples:");
82+
assert examples.isEmpty() || examples.startsWith(System.lineSeparator() + " Examples:");
8383
assert note != null;
8484
assert since != null;
8585

0 commit comments

Comments
 (0)