Skip to content

[fix](doc) v2.1: fix point-query backtick and SECOND() expected output#3857

Merged
morningman merged 1 commit into
apache:masterfrom
boluor:fix/point-query-second-typos-2.1
May 30, 2026
Merged

[fix](doc) v2.1: fix point-query backtick and SECOND() expected output#3857
morningman merged 1 commit into
apache:masterfrom
boluor:fix/point-query-second-typos-2.1

Conversation

@boluor

@boluor boluor commented May 30, 2026

Copy link
Copy Markdown
Contributor

Backport of #3853 + #3854 to version-2.1 (both are EN-only typos/expected-value fixes; ZH already correct on these pages).

Problems

  1. high-concurrent-point-query.md — misplaced backtick in DISTRIBUTED BY HASH(k1)`` (should be HASH(k1`)`). The malformed column reference makes the parser reject the whole `CREATE TABLE`: `missing ')' at 'BUCKETS'`.
  2. second.md — the example select second('2018-12-31 23:59:59') is documented with value 0 and a mismatched header cast('2018-12-30' ...); the correct result is 59.

Cluster verification (Doris 2.1.11-rc01)

-- point-query CREATE TABLE with HASH(`k1`)  -> Query OK; table created
-- second:
mysql> select second('2018-12-31 23:59:59');
+-------------------------------+
| second('2018-12-31 23:59:59') |
+-------------------------------+
|                            59 |
+-------------------------------+

🤖 Generated with Claude Code

Backport of v3.x fixes (apache#3853, apache#3854).

1. high-concurrent-point-query.md: misplaced backtick in DISTRIBUTED BY
   HASH(`k1)` -> HASH(`k1`); the malformed column ref makes the parser
   reject the CREATE TABLE (missing ')' at 'BUCKETS').
2. second.md: the example select second('2018-12-31 23:59:59') documented the
   value as 0 with a mismatched header cast('2018-12-30' ...); the correct
   result is 59.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@morningman morningman merged commit 93cb1ce into apache:master May 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants