Yohahaha commented on code in PR #3057:
URL: https://github.com/apache/fluss/pull/3057#discussion_r3067745644


##########
fluss-spark/fluss-spark-common/src/main/scala/org/apache/fluss/spark/read/FlussAppendPartitionReader.scala:
##########
@@ -29,6 +33,12 @@ class FlussAppendPartitionReader(
     flussConfig: Configuration)
   extends FlussPartitionReader(tablePath, flussConfig) {
 
+  private lazy val projectedRowType = rowType.project(projection)
+
+  override protected def convertToSparkRow(flussRow: FlussInternalRow): 
InternalRow = {
+    DataConverter.toSparkInternalRow(flussRow, projectedRowType)
+  }
+

Review Comment:
   could we move these common func to FlussPartitionReader? 



-- 
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]

Reply via email to