wangyum commented on a change in pull request #31504:
URL: https://github.com/apache/spark/pull/31504#discussion_r571756745



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolveTableValuedFunctions.scala
##########
@@ -103,6 +106,46 @@ object ResolveTableValuedFunctions extends 
Rule[LogicalPlan] {
           "numPartitions" -> IntegerType) {
         case Seq(start: Long, end: Long, step: Long, numPartitions: Int) =>
           Range(start, end, step, Some(numPartitions))
+      }),
+
+    "show_namespaces" -> Map(
+      /* show_namespaces() */

Review comment:
       This implementation will add a lot of TVFs. How about just add one TVF, 
something like this:
   ```sql
   SELECT * FROM SELECT_FROM_COMMAND('show_namespaces') WHERE identifier='a' 
AND pattern = 'b';
   ```




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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to