xing-sudo opened a new pull request, #64704: URL: https://github.com/apache/doris/pull/64704
### What problem does this PR solve? Issue Number: This PR implements `human_readable_seconds` from the doris-future task list (https://github.com/apache/doris/issues/#48203) Problem Summary: Add `human_readable_seconds` function for Trino compatibility. Converts a double value of seconds into a human-readable string containing weeks, days, hours, minutes, and seconds. Example: - human_readable_seconds(96) → "1 minute, 36 seconds" - human_readable_seconds(3762) → "1 hour, 2 minutes, 42 seconds" - human_readable_seconds(56363463) → "93 weeks, 1 day, 8 hours, 31 minutes, 3 seconds" ### Release note Add `human_readable_seconds` scalar function (Trino compatible). ### Check List (For Author) - Test - [ ] Regression test (to be added) - [x] Unit Test (BE unit test passed: 9/9) - [ ] Manual test - [ ] No need to test - Behavior changed: - [x] No. - [ ] Yes. - Does this need documentation? - [ ] No. - [x] Yes. (Documentation PR to be added) -- 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]
