yaooqinn commented on a change in pull request #490:
URL: https://github.com/apache/submarine/pull/490#discussion_r557923844
##########
File path:
submarine-security/spark-security/src/main/scala/org/apache/spark/sql/catalyst/optimizer/SubmarineDataMaskingExtension.scala
##########
@@ -233,7 +233,20 @@ case class SubmarineDataMaskingExtension(spark:
SparkSession) extends Rule[Logic
case p if hasCatalogTable(p) => SubmarineDataMasking(p)
}
- marked transformAllExpressions {
+ // Extract global/local limit if any and apply after masking projection
+ val limitExpr: Option[Expression] = plan match {
+ case unaryNode: UnaryNode =>
+ unaryNode match {
Review comment:
redundant here?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]