Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "[SPARK-37965][SQL]Remove check field name when reading/writin…
…g existing data in Orc"

This reverts commit c4fbc9c.
  • Loading branch information
AngersZhuuuu committed Jan 21, 2022
commit c3d6386521a81afe296afcabd08e4f6c54b7c39a
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,13 @@ class OrcFileFormat

case _ => false
}

override def supportFieldName(name: String): Boolean = {
try {
TypeDescription.fromString(s"struct<`$name`:int>")
true
} catch {
case _: IllegalArgumentException => false
}
}
}