h3_ischildof
Retourne True si le premier ID de cellule H3 est un enfant du second ID de cellule H3. Prend en charge Spark Connect.
Pour la fonction Databricks SQL correspondante, consultez la fonctionh3_ischildof.
Syntaxe
Python
from pyspark.databricks.sql import functions as dbf
dbf.h3_ischildof(col1=<col1>, col2=<col2>)
parameter
Exemples
Python
from pyspark.databricks.sql import functions as dbf
df = spark.createDataFrame([(608693241318998015, 599686042433355775,),], ['h3l1', 'h3l2'])
df.select(dbf.h3_ischildof('h3l1', 'h3l2').alias('result')).collect()
Output
[Row(result=True)]