This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-2.4 by this push:
new c2bff77 [SPARK-26426][SQL] fix ExpresionInfo assert error in windows
operation system.
c2bff77 is described below
commit c2bff77bd87a3d490458e2e79a35d770fede3b10
Author: wangyanlin01 <[email protected]>
AuthorDate: Tue Dec 25 15:53:42 2018 +0800
[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 #23363 from yanlin-Lynn/unit-test-windows.
Authored-by: wangyanlin01 <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
---
.../java/org/apache/spark/sql/catalyst/expressions/ExpressionInfo.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/expressions/ExpressionInfo.java
b/sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/expressions/ExpressionInfo.java
index ab13ac9..d5a1b77 100644
---
a/sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/expressions/ExpressionInfo.java
+++
b/sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/expressions/ExpressionInfo.java
@@ -79,7 +79,7 @@ public class ExpressionInfo {
assert name != null;
assert arguments != null;
assert examples != null;
- assert examples.isEmpty() || examples.startsWith("\n Examples:");
+ assert examples.isEmpty() ||
examples.startsWith(System.lineSeparator() + " Examples:");
assert note != null;
assert since != null;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]