ilike (列)

不区分大小写的 SQL LIKE 模式匹配。

Syntax

ilike(other)

参数

参数 类型 Description
other str SQL LIKE 模式字符串

退货

列(布尔值)

示例

df = spark.createDataFrame(
     [(2, "Alice"), (5, "Bob")], ["age", "name"])
df.filter(df.name.ilike('%Ice')).collect()
# [Row(age=2, name='Alice')]