cloud-fan commented on a change in pull request #34575:
URL: https://github.com/apache/spark/pull/34575#discussion_r755164613
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/DataSourceScanExec.scala
##########
@@ -212,7 +225,16 @@ case class FileSourceScanExec(
relation.fileFormat.vectorTypes(
requiredSchema = requiredSchema,
partitionSchema = relation.partitionSchema,
- relation.sparkSession.sessionState.conf)
+ relation.sparkSession.sessionState.conf).map { vectorTypes =>
+ val metadataVectorClz =
+ if
(relation.sparkSession.sessionState.conf.offHeapColumnVectorEnabled) {
+ classOf[OffHeapColumnVector].getName
+ } else {
+ classOf[OnHeapColumnVector].getName
Review comment:
since we will change to use a constant vector soon, how about we always
use `OnHeapColumnVector` for now, to simplify the code?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]