cloud-fan commented on code in PR #50329:
URL: https://github.com/apache/spark/pull/50329#discussion_r2004760685
##########
sql/catalyst/src/test/scala/org/apache/spark/sql/connector/catalog/InMemoryTableCatalog.scala:
##########
@@ -187,20 +187,22 @@ class InMemoryTableCatalog extends
BasicInMemoryTableCatalog with SupportsNamesp
new util.HashMap[Identifier, UnboundProcedure]
procedures.put(Identifier.of(Array("dummy"), "increment"), UnboundIncrement)
- protected def allNamespaces: Seq[Seq[String]] = {
- (tables.keySet.asScala.map(_.namespace.toSeq) ++
namespaces.keySet.asScala).toSeq.distinct
+ protected def allNamespaces(): Seq[Seq[String]] = {
Review Comment:
```suggestion
protected def allNamespaces: Seq[Seq[String]] = {
```
##########
sql/catalyst/src/test/scala/org/apache/spark/sql/connector/catalog/InMemoryTableCatalog.scala:
##########
@@ -187,20 +187,22 @@ class InMemoryTableCatalog extends
BasicInMemoryTableCatalog with SupportsNamesp
new util.HashMap[Identifier, UnboundProcedure]
procedures.put(Identifier.of(Array("dummy"), "increment"), UnboundIncrement)
- protected def allNamespaces: Seq[Seq[String]] = {
- (tables.keySet.asScala.map(_.namespace.toSeq) ++
namespaces.keySet.asScala).toSeq.distinct
+ protected def allNamespaces(): Seq[Seq[String]] = {
+ (tables.keySet.asScala.map(_.namespace.toSeq)
+ ++ namespaces.keySet.asScala
+ ++ procedures.keySet.asScala.map(_.namespace.toSeq)).toSeq.distinct
}
override def namespaceExists(namespace: Array[String]): Boolean = {
- allNamespaces.exists(_.startsWith(namespace))
+ allNamespaces().exists(_.startsWith(namespace))
Review Comment:
```suggestion
allNamespaces.exists(_.startsWith(namespace))
```
--
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]