SQL RLIKE (正規表現 LIKE) パターン マッチング。
構文
rlike(other)
パラメーター
| パラメーター | タイプ | 説明 |
|---|---|---|
other |
str | 正規表現パターン文字列 |
返品
列 (ブール値)
例示
df = spark.createDataFrame(
[(2, "Alice"), (5, "Bob")], ["age", "name"])
df.filter(df.name.rlike('ice$')).collect()
# [Row(age=2, name='Alice')]