apache / apache/gluten

[CH] Different behavior on function regexp_extract with spark

Open
#5,897 0 comments 0 reactions 0 assignees View on GitHub
bug triage
Dominant language
Scala
Stars
1.6k
Forks
657
Avg merge
2d 21h
Merged PRs (30d)
85

Description

### Backend

CH (ClickHouse)

### Bug description

select regexp_extract('1-A', '([0-9][[\.][0-9]]*)', 1)

Spark behavior:
`1`
actual behavior:
``

### Spark version

None

### Spark configurations

_No response_

### System information

_No response_

### Relevant logs

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the provided regexp_extract query against the ClickHouse backend and compare its result with the stated Spark result of `1`. Trace the implementation of this function and add coverage for the example; done means the query returns the Spark-compatible result without regressing related regular-expression cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
clickhouse
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.