ulysses-you commented on a change in pull request #36011: URL: https://github.com/apache/spark/pull/36011#discussion_r840349465
########## File path: sql/core/src/main/scala/org/apache/spark/sql/SparkSessionExtensions.scala ########## @@ -294,4 +295,23 @@ class SparkSessionExtensions { def injectTableFunction(functionDescription: TableFunctionDescription): Unit = { injectedTableFunctions += functionDescription } + + private[this] val runtimeOptimizerRules = mutable.Buffer.empty[RuleBuilder] + + private[sql] def buildRuntimeOptimizerRules(session: SparkSession): Seq[Rule[LogicalPlan]] = { + runtimeOptimizerRules.map(_.apply(session)).toSeq + } + + /** + * Inject a runtime `Rule` builder into the [[SparkSession]]. + * The injected rules will be executed once after built-in Review comment: fixed -- 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-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org