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

   pick (#38199)
   
   Use the sql to query routine load records:
   ```
   show routine load for db.job1\G
   ```
   return all routine load job in the db:
   ```
   10 rows in set (0.02 sec)
   ```
   
   why the bug happen is there is no correct assignment when analyze the sql:
   ```
   if (Strings.isNullOrEmpty(dbName)) {
               dbFullName = analyzer.getContext().getDatabase();
               if (Strings.isNullOrEmpty(dbFullName)) {
                   
ErrorReport.reportAnalysisException(ErrorCode.ERR_NO_DB_ERROR);
               }
   }
   ```
   dbFullName will always null if dbName is not null or empty.
   
   The bug is introduce by: https://github.com/apache/doris/pull/27861
   
   


-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to