Github user chenghao-intel commented on a diff in the pull request:
https://github.com/apache/spark/pull/6551#discussion_r31695131
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala
---
@@ -69,6 +69,11 @@ class HiveQuerySuite extends HiveComparisonTest with
BeforeAndAfter {
sql("DROP TEMPORARY FUNCTION udtf_count2")
}
+ test("SPARK-8010: implicit promote to string type") {
+ sql("select case when true then '1' else 1 end from src ")
+ sql("select coalesce(null, 1, '1') from src ")
--- End diff --
And probably it's better to move the test into
https://github.com/OopsOutOfMemory/spark/blob/pnts/sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]