amaliujia commented on code in PR #36586:
URL: https://github.com/apache/spark/pull/36586#discussion_r888374320
##########
sql/core/src/main/scala/org/apache/spark/sql/catalog/interface.scala:
##########
@@ -64,12 +64,26 @@ class Database(
@Stable
class Table(
val name: String,
- @Nullable val database: String,
+ @Nullable val qualifier: Array[String],
@Nullable val description: String,
val tableType: String,
val isTemporary: Boolean)
extends DefinedByConstructorParams {
+ def database: String = parseQualifier
+
+ def parseQualifier: String = {
+ if (qualifier == null) {
+ null
+ } else if (qualifier.length == 2) {
+ qualifier(1)
+ } else if (qualifier.length == 1) {
Review Comment:
for example if a table is `catalog1.db1.table1`,
In this case `catalog_name=catalog1, qualifier=[db1], table_name=table1`?
--
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]