Skip to content

Commit 8cc70e7

Browse files
lianchengmarmbrus
authored andcommitted
[SQL] Kill dangerous trailing space in query string
MD5 of query strings in `createQueryTest` calls are used to generate golden files, leaving trailing spaces there can be really dangerous. Got bitten by this while working on #2616: my "smart" IDE automatically removed a trailing space and makes Jenkins fail. (Really should add "no trailing space" to our coding style guidelines!) Author: Cheng Lian <[email protected]> Closes #2619 from liancheng/kill-trailing-space and squashes the following commits: 034f119 [Cheng Lian] Kill dangerous trailing space in query string
1 parent 2fedb5d commit 8cc70e7

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class HiveQuerySuite extends HiveComparisonTest {
164164

165165
createQueryTest("Cast Timestamp to Timestamp in UDF",
166166
"""
167-
| SELECT DATEDIFF(CAST(value AS timestamp), CAST('2002-03-21 00:00:00' AS timestamp))
167+
| SELECT DATEDIFF(CAST(value AS timestamp), CAST('2002-03-21 00:00:00' AS timestamp))
168168
| FROM src LIMIT 1
169169
""".stripMargin)
170170

0 commit comments

Comments
 (0)