stalary opened a new issue, #25804:
URL: https://github.com/apache/doris/issues/25804

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   2.0.2
   
   ### What's Wrong?
   
   Jdbc catalog query error when use udf
   query
   ```
   select sectors,
          dwd.format_invest_amount(financing_date, money) as financing_amount,
          finance_create_time,
          now()
   from jdbc_mysql.test_eb.test_table
   where update_time >= DATE_FORMAT(TIMESTAMPADD(DAY, -3, now()), 'yyyy-MM-dd');
   ```
   error message
   ```
   WHERE (update_time >= date_format(days_add(now(), -3), '%Y-%m-%d')), 
msg=[INTERNAL_ERROR]UdfRuntimeException: JDBC executor sql has error: CAUSED 
BY: SQLSyntaxErrorException: execute command denied to user 'doris_query'@'%' 
for routine 'db1.days_add' 0. 
/root/src/doris-2.0/be/src/common/stack_trace.cpp:302: StackTrace::tryCapture() 
@ 0x000000000ba1f197 in /opt/doris/be/lib/doris_be 1. 
/root/src/doris-2.0/be/src/common/stack_trace.h:0: 
doris::get_stack_trace[abi:cxx11]() @ 0x000000000ba1d72d in 
/opt/doris/be/lib/doris_be 2. 
/var/local/ldb-toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/unique_ptr.h:173:
 doris::S ...
   ```
   
   ### What You Expected?
   
   query success as 1.2.5
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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