This is an automated email from the ASF dual-hosted git repository. srowen pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push: new 5c4aef4d4ca [SPARK-45338][SQL][FOLLOWUP] Remove useless `toSeq` 5c4aef4d4ca is described below commit 5c4aef4d4caf753ce9c45d07472df67479371738 Author: Jia Fan <fanjiaemi...@qq.com> AuthorDate: Thu Sep 28 19:10:03 2023 -0500 [SPARK-45338][SQL][FOLLOWUP] Remove useless `toSeq` ### What changes were proposed in this pull request? This is a follow up PR for #43126 , remove useless invoke `toSeq` ### Why are the changes needed? Remove useless convert. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? exist test ### Was this patch authored or co-authored using generative AI tooling? No Closes #43172 from Hisoka-X/SPARK-45338-followup-remove-toseq. Authored-by: Jia Fan <fanjiaemi...@qq.com> Signed-off-by: Sean Owen <sro...@gmail.com> --- .../apache/spark/sql/hive/thriftserver/SparkGetColumnsOperation.scala | 2 +- .../apache/spark/sql/hive/thriftserver/SparkGetFunctionsOperation.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkGetColumnsOperation.scala b/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkGetColumnsOperation.scala index 990a7162ea4..5dd8caf3f22 100644 --- a/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkGetColumnsOperation.scala +++ b/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkGetColumnsOperation.scala @@ -87,7 +87,7 @@ private[hive] class SparkGetColumnsOperation( }.toMap if (isAuthV2Enabled) { - val privObjs = getPrivObjs(db2Tabs).toSeq.asJava + val privObjs = getPrivObjs(db2Tabs).asJava authorizeMetaGets(HiveOperationType.GET_COLUMNS, privObjs, cmdStr) } diff --git a/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkGetFunctionsOperation.scala b/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkGetFunctionsOperation.scala index 7fa492befa0..53a94a128c0 100644 --- a/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkGetFunctionsOperation.scala +++ b/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkGetFunctionsOperation.scala @@ -68,7 +68,7 @@ private[hive] class SparkGetFunctionsOperation( if (isAuthV2Enabled) { // authorize this call on the schema objects val privObjs = - HivePrivilegeObjectUtils.getHivePrivDbObjects(matchingDbs.toSeq.asJava) + HivePrivilegeObjectUtils.getHivePrivDbObjects(matchingDbs.asJava) authorizeMetaGets(HiveOperationType.GET_FUNCTIONS, privObjs, cmdStr) } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org