geruh commented on code in PR #15040:
URL: https://github.com/apache/iceberg/pull/15040#discussion_r2688658021


##########
spark/v3.4/spark-extensions/src/main/scala/org/apache/spark/sql/catalyst/analysis/RewriteOperationForRowLineage.scala:
##########
@@ -42,6 +42,7 @@ trait RewriteOperationForRowLineage extends 
RewriteRowLevelIcebergCommand {
         r.table match {
           case sparkTable: SparkTable =>
             TableUtil.supportsRowLineage(sparkTable.table())

Review Comment:
   I agree with Prashant on this and as a nit you could also be simplified by 
flattening the nested match
   
   ```
   case DataSourceV2Relation(sparkTable: SparkTable, _, _, _, _) =>
     TableUtil.supportsRowLineage(sparkTable.table())
   case _ => false
   ```



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

Reply via email to