You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "boluor (via GitHub)" <gi...@apache.org> on 2026/05/26 12:13:24 UTC

[PR] [fix](doc) hours-diff.md zh: add missing semicolon and top divider on negative-difference example [doris-website]

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

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


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


Re: [PR] [fix](doc) hours-diff.md zh: add missing semicolon and top divider on negative-difference example [doris-website]

Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman closed pull request #3801: [fix](doc) hours-diff.md zh: add missing semicolon and top divider on negative-difference example
URL: https://github.com/apache/doris-website/pull/3801


-- 
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-unsubscribe@doris.apache.org

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


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


Re: [PR] [fix](doc) hours-diff.md zh: add missing semicolon and top divider on negative-difference example [doris-website]

Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman merged PR #3801:
URL: https://github.com/apache/doris-website/pull/3801


-- 
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-unsubscribe@doris.apache.org

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


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