Github user dongjoon-hyun commented on a diff in the pull request:
https://github.com/apache/spark/pull/21582#discussion_r195947273
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/orc/OrcSerializer.scala
---
@@ -223,6 +223,6 @@ class OrcSerializer(dataSchema: StructType) {
* Return a Orc value object for the given Spark schema.
*/
private def createOrcValue(dataType: DataType) = {
-
OrcStruct.createValue(TypeDescription.fromString(dataType.catalogString))
+
OrcStruct.createValue(TypeDescription.fromString(OrcFileFormat.getQuotedSchemaString(dataType)))
--- End diff --
Thank you for review, @viirya . ORC 1.5 checks the field name syntax more
strictly. For example, a field name having `dot`.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]