You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by wzhfy <gi...@git.apache.org> on 2017/06/04 04:18:49 UTC
[GitHub] spark pull request #12646: [SPARK-14878][SQL] Trim characters string functio...
Github user wzhfy commented on a diff in the pull request:
https://github.com/apache/spark/pull/12646#discussion_r120000222
--- Diff: sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala ---
@@ -2658,17 +2658,17 @@ class SQLQuerySuite extends QueryTest with SharedSQLContext {
sql("select LTRIM(BOTH 'S' FROM 'SS abc S')").head
}
assert(ae1.getMessage contains
- "The specified function ltrim doesn't support with option BOTH")
+ "The specified function LTRIM doesn't support with option BOTH")
val ae2 = intercept[ParseException]{
sql("select RTRIM(TRAILING 'S' FROM 'SS abc S')").head
}
assert(ae2.getMessage contains
- "The specified function rtrim doesn't support with option TRAILING")
+ "The specified function RTRIM doesn't support with option TRAILING")
val ae3 = intercept[ParseException]{
- sql("select TRIM(WINDOW 'S' FROM 'SS abc S')").head
+ sql("select TRIM(OVER 'S' AND 'SS abc S')").head
}
assert(ae3.getMessage contains
- "The specified function trim doesn't support with option WINDOW")
+ "Literals of type 'OVER' are currently not supported")
--- End diff --
Is this caused by other check? But this is not what we want to cover in the test
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org