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

   ### 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
   
   doris-2.1.8-1-834d802457
   
   ### What's Wrong?
   
   Although SELECT CONVERT_TZ('2025-04-20', 'UTC', 'Africa/Casablanca') works, 
CONVERT_TZ function does not work on 'Africa/Casablanca' when SELECT from table.
   
   ### What You Expected?
   
   CONVERT_TZ function should work for 'Africa/Casablanca' when SELECT from 
table.
   
   ### How to Reproduce?
   
   CREATE TABLE tz(
        tz varchar(50)
   )
   UNIQUE key(tz)
   DISTRIBUTED BY HASH(tz)
   properties (
        "replication_num"=1
   );
   
   INSERT INTO tz(tz) SELECT 'Africa/Casablanca';
   INSERT INTO tz(tz) SELECT 'Europe/Dublin';
   
   SELECT CONVERT_TZ('2025-04-20', 'UTC', 'Africa/Casablanca'); -- This works
   
   SELECT tz, CONVERT_TZ('2025-04-20', 'UTC', tz) AS converttz
   FROM tz; -- This does not work
   
   ### 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