apache / apache/arrow

[C++][Python] replace_substring_regex hangs indefinitely for negative max_replacements

Aperta
#39,149 4 commenti 0 reazioni 1 assegnatario Rivendicata da @mason142 Vedi su GitHub
Component: C++ Component: Python good-first-issue Type: bug
Lingua principale
C++
Stelle
17.1k
Fork
4.3k
Merge medio
3g 23h
PR unite (30g)
101

Descrizione

### Describe the bug, including details regarding any error messages, version, and platform.

`pa.compute.replace_substring_regex("abc", "", "", max_replacements=-3)`

This call hangs indefinitely

```
>>> pa.__version__
'14.0.0'
```

### Component(s)

C++, Python

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.