Skip to content

Non-ASCII (Arabic/Chinese) column identifiers rejected even when backtick-quoted (error 1064) — v4.0.0-rc2 #25014

Closed

Description

@dengn

Version

8.0.30-OmniFabric-v4.0.0-rc2 (output of SELECT version())

Description

MatrixOne's SQL parser rejects non-ASCII column identifiers / aliases (Arabic, Chinese, …) with error 1064, even when they are backtick-quoted. MySQL 8 accepts backtick-quoted non-ASCII identifiers, so portable SQL that uses them fails on MatrixOne.

Reproduction

SELECT 1 AS qty;          -- OK
SELECT 1 AS الكمية;       -- ERROR 1064
SELECT 1 AS `الكمية`;     -- ERROR 1064  (backtick-quoted Arabic, still rejected)
SELECT 1 AS `数量`;       -- ERROR 1064  (backtick-quoted Chinese, still rejected)

Actual

ERROR 1064 (HY000): SQL parser error: You have an error in your SQL syntax; check the manual that corresponds to your MatrixOne server version for the right syntax ...

Expected

Backtick-quoted non-ASCII identifiers are accepted (as in MySQL 8), so aliases like `数量` / `الكمية` are usable.

Impact

Hit by a natural-language-to-SQL assistant answering Arabic / Chinese questions: the model sometimes names an alias in the user's language (e.g. SELECT COUNT(*) AS القيمة FROM dim_site), and the whole query fails. The practical workaround is to force ASCII aliases, but accepting backtick-quoted non-ASCII identifiers would match MySQL behavior and avoid the failure.

Activity

  1. added
    severity/s1
    on Jun 30, 2026
  2. added this to the MO-202607 milestone on Jun 30, 2026
  3. added
    kind/bug
    severity/s0
    and removed
    severity/s1
    on Jul 14, 2026
  4. added theissue type on Jul 14, 2026
  5. linked a pull request that will close this issuefix(parser): support Unicode select aliases #25793on Jul 16, 2026
  6. VioletQwQ-0 commented on Jul 22, 2026

    @VioletQwQ-0
    Collaborator

    Closed by the regression coverage merged in #25879. Current main already accepts the reported backtick-quoted Arabic and Chinese aliases; the PR records that behavior and preserves raw client-charset bytes. Broader charset-aware identifier validation remains outside this issue and must happen after COM_QUERY client-charset normalization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s0

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions