Skip to content

Concatenate contiguous literal arguments of CONCAT during the expression simplification. #3683

@HaoYang670

Description

@HaoYang670

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
For an expression concat(col1, 'a', 'b', col2, 'd', 'f', ...) we can simplify it to concat(col1, 'ab', col2, 'df ...)`

Describe the solution you'd like
A clear and concise description of what you want to happen.

  1. Ignore all null literals
  2. cast all literals to UTF8
  3. concatenate contiguous literals.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
We could not do this.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions