Skip to content

SQL LIKE pattern matching broken for non-ASCII/multibyte characters #8

@qianheng-aws

Description

@qianheng-aws

Issue

LIKE queries don't work correctly with multibyte characters (Chinese, Japanese, Korean, etc).

Example:

SELECT * FROM products WHERE description LIKE '%中文%'

Returns empty result even though there are matching documents. Works fine with ASCII strings.

This appears to be an encoding issue in the LIKE operator implementation.

Environment: OpenSearch 2.18, SQL plugin 2.18.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    autocloseIssue will be auto-closed as duplicateduplicateThis issue or pull request already existsuntriaged

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions