cloud-fan commented on code in PR #54038:
URL: https://github.com/apache/spark/pull/54038#discussion_r2739600317


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/text/TextFileFormat.scala:
##########
@@ -142,7 +142,10 @@ case class TextFileFormat() extends TextBasedFileFormat 
with DataSourceRegister
     }
   }
 
-  override def supportDataType(dataType: DataType): Boolean =
-    dataType.isInstanceOf[StringType]
+  override def supportDataType(dataType: DataType): Boolean = dataType match {
+    case _: GeometryType | _: GeographyType => false

Review Comment:
   do we need this change? text format supports string type only



-- 
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