like (kolom)

SQL LIKE-patroonkoppeling.

Syntaxis

like(other)

Parameterwaarden

Kenmerk Typ Beschrijving
other str SQL LIKE-patroontekenreeks

Retouren

Kolom (Booleaanse waarde)

Examples

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