Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,9 @@ The following regular expression patterns are not yet supported on the GPU and w
- Possessive quantifiers, such as `a*+`
- Character classes that use union, intersection, or subtraction semantics, such as `[a-d[m-p]]`, `[a-z&&[def]]`,
or `[a-z&&[^bc]]`
- Lookahead/lookbehind groups: `(?=a)`, `(?!a)`, `(?<=a)`, `(?<!a)`
- Independent groups: `(?>a)`
- Named capture groups: `(?<n>a)`
- Empty groups: `()`
- Empty pattern: `""`

Expand Down
4 changes: 2 additions & 2 deletions integration_tests/src/main/python/regexp_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1042,9 +1042,9 @@ def test_rlike_fallback_possessive_quantifier():
conf=_regexp_conf)

@allow_non_gpu('ProjectExec', 'RLike')
def test_rlike_fallback_lookaheads():
def test_rlike_fallback_lookarounds_independent_named():
gen = mk_str_gen('(\u20ac|\\w){0,3}a[|b*.$\r\n]{0,2}c\\w{0,3}')
for pattern in ['a(?=a*)', 'a(?!a*)']:
for pattern in ['a(?=a*)', 'a(?!a*)', 'a(?<=a)', 'a(?<!a)', 'a(?>a*)', 'a(?<n>a*)']:
assert_gpu_fallback_collect(
lambda spark, pattern=pattern: unary_op_df(spark, gen).selectExpr(
f'a rlike "{pattern}"'),
Expand Down
Loading
Loading