dutyu opened a new pull request, #22684:
URL: https://github.com/apache/doris/pull/22684

   
   ## Proposed changes
   
   Issue Number: close #xxx
   
   Assume that there is a hive catalog named hive_ctl, a hive db named db1 and 
a table named tbl1, if we connect a slave FE and execute following commands:
   
   1. `switch hive_ctl`
   2. `show partitions from db1.tbl1`
   
   Then we will meet the error like this:
   ```
   MySQL [(none)]> show partitions from db1.tbl1;
   ERROR 1049 (42000): errCode = 2, detailMessage = Unknown database 
'default_cluster:db1'
   ```
   
   The reason is that the `ShowPartitionStmt` will forward the query to master 
FE but we do not sync the default catalog information, so the parser can not 
find the db and throws this exception.
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[[email protected]](mailto:[email protected]) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


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