You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "wangyum (via GitHub)" <gi...@apache.org> on 2024/09/04 04:13:27 UTC
Re: [PR] [SPARK-49408][SQL] Use IndexedSeq in ProjectingInternalRow [spark]
wangyum commented on code in PR #47890:
URL: https://github.com/apache/spark/pull/47890#discussion_r1743008599
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/ProjectingInternalRow.scala:
##########
@@ -116,3 +117,9 @@ case class ProjectingInternalRow(schema: StructType, colOrdinals: Seq[Int]) exte
row.get(colOrdinals(ordinal), dataType)
}
}
+
+object ProjectingInternalRow {
+ def apply(schema: StructType, colOrdinals: Seq[Int]): ProjectingInternalRow = {
+ new ProjectingInternalRow(schema, colOrdinals.toIndexedSeq)
Review Comment:
Do you have benchmark number? cc @yaooqinn
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org