[CH] Different behavior on function regexp_extract with spark
Open
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
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