aokolnychyi commented on a change in pull request #32921: URL: https://github.com/apache/spark/pull/32921#discussion_r662536165
########## File path: sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSourceStrategy.scala ########## @@ -631,6 +631,25 @@ object DataSourceStrategy } } + /** + * Translates a runtime filter into a data source filter. + * + * Runtime filters usually contain a subquery that must be evaluated before the translation. + * If the underlying subquery hasn't completed yet, this method will throw an exception. + */ + protected[sql] def translateRuntimeFilter(expr: Expression): Option[Filter] = expr match { + case in @ InSubqueryExec(e @ PushableColumnAndNestedColumn(name), _, _, _) => + val values = in.values().getOrElse { + throw new AnalysisException(s"Can't translate $in to source filter, no subquery result") 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