Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/18853#discussion_r154515053
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TypeCoercion.scala
---
@@ -62,6 +61,18 @@ object TypeCoercion {
WindowFrameCoercion ::
Nil
+ def rules(conf: SQLConf): List[Rule[LogicalPlan]] = {
+ if (conf.isHiveTypeCoercionMode) {
+ commonTypeCoercionRules :+
+ HiveInConversion :+
+ HivePromoteStrings
+ } else {
+ commonTypeCoercionRules :+
+ InConversion :+
+ PromoteStrings
--- End diff --
These two rules are moved to the end of the whole batch. It should be fine
after https://github.com/apache/spark/pull/19867.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]