Hisoka-X commented on code in PR #42110:
URL: https://github.com/apache/spark/pull/42110#discussion_r1272968228
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolveInlineTables.scala:
##########
@@ -36,8 +37,16 @@ object ResolveInlineTables extends Rule[LogicalPlan] with
CastSupport with Alias
AlwaysProcess.fn, ruleId) {
case table: UnresolvedInlineTable if table.expressionsResolved =>
validateInputDimension(table)
- validateInputEvaluable(table)
- convert(table)
+ val newTable = replaceRuntimeReplaceable(table)
+ validateInputEvaluable(newTable)
+ convert(newTable)
+ }
+
+ private def replaceRuntimeReplaceable(table: UnresolvedInlineTable):
UnresolvedInlineTable = {
Review Comment:
Can't, `ReplaceExpressions` use children variable to replace `Expression`,
but `UnresolvedInlineTable` doesn't have children. Or we need to wrap a fake
logicalPlan to `ReplaceExpressions`.
--
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]