leesf created HUDI-4315:
---------------------------

             Summary: Do not throw exception when using toTableIdentifier 
                 Key: HUDI-4315
                 URL: https://issues.apache.org/jira/browse/HUDI-4315
             Project: Apache Hudi
          Issue Type: Improvement
            Reporter: leesf
            Assignee: leesf


When using other CatalogPlugin with name leesf along with HoodieCatalog, the 
sql for the following

`insert into leesf.db.table select id, name from hudi_db.hudi_table`, the 
BaseSpark3Adapter#toTableIdentifier method will throw the following exception 

 

```

org.apache.spark.sql.AnalysisException: leesf.db.table is not a valid 
TableIdentifier as it has more than 2 name parts.
    at 
org.apache.spark.sql.errors.QueryCompilationErrors$.identifierHavingMoreThanTwoNamePartsError(QueryCompilationErrors.scala:1394)

```



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to