MaxGekk commented on code in PR #48750:
URL: https://github.com/apache/spark/pull/48750#discussion_r1827975532


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/ExprUtils.scala:
##########
@@ -40,8 +40,8 @@ object ExprUtils extends EvalHelper with QueryErrorsBase {
         case s: UTF8String if s != null =>
           val dataType = DataType.parseTypeWithFallback(
             s.toString,
-            DataType.fromDDL,
-            DataType.fromJson)
+            DataType.fromJson,
+            DataType.fromDDL)

Review Comment:
   Comparing to python code, `ExprUtils.evalTypeExpr` is used from many more 
places, and you might acidentally change behaviour there.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to