cloud-fan commented on code in PR #37415:
URL: https://github.com/apache/spark/pull/37415#discussion_r943101147


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/identifiers.scala:
##########
@@ -113,6 +88,7 @@ object AliasIdentifier {
  */
 case class TableIdentifier(table: String, database: Option[String], catalog: 
Option[String])
   extends CatalystIdentifier {
+  assert(catalog.isEmpty || database.isDefined)

Review Comment:
   yea, it's super weird of an identifier has catalog field but not database.



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