Skip to content

Error when using functions ltrim and rtrim (aliases for trimLeft and trimRight) #90170

@Victor-Miklukha

Description

@Victor-Miklukha

Company or project name

No response

Describe what's wrong

When using ltrim/rtrim with trim characters, result is exception.
https://fiddle.clickhouse.com/c7e54224-4a3f-44e7-864e-29f90578b9c7

Does it reproduce on the most recent release?

Yes

How to reproduce

SELECT rtrim(' ClickHouse ', ' ')

Expected behavior

Same as trimLeft and trimRight functions

Error message and/or stacktrace

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugConfirmed user-visible misbehaviour in official release

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions