h3_stringtoh3

Konverterar strängrepresentationen H3-cell-ID till dess stora heltalsrepresentation. Stöder Spark Connect.

För motsvarande Databricks SQL-funktion, se h3_stringtoh3 funktion.

Syntax

from pyspark.databricks.sql import functions as dbf

dbf.h3_stringtoh3(col=<col>)

Parameterar

Parameter Typ Description
col pyspark.sql.Column eller str Ett H3-cell-ID som representeras som en sträng.

Examples

from pyspark.databricks.sql import functions as dbf
df = spark.createDataFrame([('85283473fffffff',)], ['h3s'])
df.select(dbf.h3_stringtoh3('h3s').alias('result')).collect()
[Row(result=599686042433355775)]