xinrong-meng commented on code in PR #49424:
URL: https://github.com/apache/spark/pull/49424#discussion_r1931131934


##########
sql/connect/server/src/main/scala/org/apache/spark/sql/connect/planner/SparkConnectPlanner.scala:
##########
@@ -3759,6 +3759,18 @@ class SparkConnectPlanner(
         UnresolvedScalarSubqueryPlanId(planId)
       case proto.SubqueryExpression.SubqueryType.SUBQUERY_TYPE_EXISTS =>
         UnresolvedExistsPlanId(planId)
+      case proto.SubqueryExpression.SubqueryType.SUBQUERY_TYPE_TABLE_ARG =>
+        val options = getSubqueryExpression.getTableArgOptions

Review Comment:
   Added.



##########
sql/connect/server/src/main/scala/org/apache/spark/sql/connect/planner/SparkConnectPlanner.scala:
##########
@@ -3759,6 +3759,18 @@ class SparkConnectPlanner(
         UnresolvedScalarSubqueryPlanId(planId)
       case proto.SubqueryExpression.SubqueryType.SUBQUERY_TYPE_EXISTS =>
         UnresolvedExistsPlanId(planId)
+      case proto.SubqueryExpression.SubqueryType.SUBQUERY_TYPE_TABLE_ARG =>
+        val options = getSubqueryExpression.getTableArgOptions
+        UnresolvedTableArgPlanId(
+          planId,
+          partitionSpec = options.getPartitionSpecList.asScala
+            .map(transformExpression)
+            .toSeq,
+          orderSpec = options.getOrderSpecList.asScala
+            .map(transformSortOrder)
+            .toSeq,
+          withSinglePartition = options.getWithSinglePartition

Review Comment:
   Makes sense added.



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