boluor opened a new pull request, #3801:
URL: https://github.com/apache/doris-website/pull/3801
## Summary
Doc page (4.x): \`scalar-functions/date-time-functions/hours-diff.md\` (ZH).
The second example on the ZH page is missing two small things:
\`\`\`
---结束时间早于开始时间,返回负数
select hours_diff('2020-12-25 20:00:00', '2020-12-25 21:00:00') ← no \`;\`
| hours_diff('2020-12-25 20:00:00', '2020-12-25 21:00:00') | ← no
opening \`+---+\` divider
+----------------------------------------------------------+
| -1 |
+----------------------------------------------------------+
\`\`\`
Without the semicolon the SELECT runs together with the ASCII grid that
follows and the parser chokes on the bare \`|\` lines. EN has both the
semicolon and the matching opening divider in the same spot.
## Verification
After the fix the example parses and runs cleanly on Apache Doris 4.1.1 and
returns the documented \`-1\`.
## Test plan
- [x] Run the corrected SQL on a 4.1.1 cluster — returns \`-1\` as
documented.
- [x] No other change.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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]