[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 <lian.cs.zju@gmail.com> Closes #2619 from liancheng/kill-trailing-space and squashes the following commits: 034f119 [Cheng Lian] Kill dangerous trailing space in query string
This commit is contained in:
parent
2fedb5dddc
commit
8cc70e7e15
|
@ -164,7 +164,7 @@ class HiveQuerySuite extends HiveComparisonTest {
|
||||||
|
|
||||||
createQueryTest("Cast Timestamp to Timestamp in UDF",
|
createQueryTest("Cast Timestamp to Timestamp in UDF",
|
||||||
"""
|
"""
|
||||||
| SELECT DATEDIFF(CAST(value AS timestamp), CAST('2002-03-21 00:00:00' AS timestamp))
|
| SELECT DATEDIFF(CAST(value AS timestamp), CAST('2002-03-21 00:00:00' AS timestamp))
|
||||||
| FROM src LIMIT 1
|
| FROM src LIMIT 1
|
||||||
""".stripMargin)
|
""".stripMargin)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue