Github user eatoncys commented on a diff in the pull request: https://github.com/apache/spark/pull/18240#discussion_r120840468 --- Diff: sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/HiveFileFormat.scala --- @@ -142,7 +142,8 @@ class HiveOutputWriter( override def write(row: InternalRow): Unit = { var i = 0 - while (i < fieldOIs.length) { + val fieldOIsLength = fieldOIs.length + while (i < fieldOIsLength) { --- End diff -- I have tried the test 10 times , and the average cost is almost same, I will close the PR, thanks!
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org