You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/04/26 03:40:43 UTC

[GitHub] [spark] HyukjinKwon commented on a diff in pull request #36344: [SPARK-39012][SQL]SparkSQL infer schema does not support all data types

HyukjinKwon commented on code in PR #36344:
URL: https://github.com/apache/spark/pull/36344#discussion_r858233808


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/PartitioningUtils.scala:
##########
@@ -486,6 +486,12 @@ object PartitioningUtils extends SQLConfHelper{
       DateType
     }
 
+    val binaryTry = Try {
+      val binaryValue = Hex.unhex(raw.getBytes())

Review Comment:
   Wouldn't this infer binary type virally from all the string types?



-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org