Skip to content

Commit a38ea52

Browse files
author
danielsparing
committed
copy illustration to top
1 parent 0dcb3e8 commit a38ea52

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

stfunctions/duckdb_udf.ipynb

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
"source": [
1616
"# Define a Spark UDF using a DuckDB Spatial function\n",
1717
"\n",
18+
"%md\n",
19+
"![lamanche](img/lamanche.png)\n",
20+
"\n",
1821
"Databricks SQL now contains lots of [ST Functions](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-st-geospatial-functions). However, at some point you might just need a geospatial function not (yet) available natively in Databricks, but maybe available in DuckDB Spatial. For example, as of Aug 2025, the `st_shortestline` function.\n",
1922
"\n",
2023
"Then we can register the DuckDB function as a Spark UDF as follows:"
@@ -38,7 +41,7 @@
3841
},
3942
{
4043
"cell_type": "code",
41-
"execution_count": null,
44+
"execution_count": 0,
4245
"metadata": {
4346
"application/vnd.databricks.v1+cell": {
4447
"cellMetadata": {
@@ -80,7 +83,7 @@
8083
},
8184
{
8285
"cell_type": "code",
83-
"execution_count": null,
86+
"execution_count": 0,
8487
"metadata": {
8588
"application/vnd.databricks.v1+cell": {
8689
"cellMetadata": {
@@ -137,7 +140,7 @@
137140
},
138141
{
139142
"cell_type": "code",
140-
"execution_count": null,
143+
"execution_count": 0,
141144
"metadata": {
142145
"application/vnd.databricks.v1+cell": {
143146
"cellMetadata": {
@@ -186,7 +189,7 @@
186189
},
187190
{
188191
"cell_type": "code",
189-
"execution_count": null,
192+
"execution_count": 0,
190193
"metadata": {
191194
"application/vnd.databricks.v1+cell": {
192195
"cellMetadata": {
@@ -275,7 +278,7 @@
275278
},
276279
{
277280
"cell_type": "code",
278-
"execution_count": null,
281+
"execution_count": 0,
279282
"metadata": {
280283
"application/vnd.databricks.v1+cell": {
281284
"cellMetadata": {
@@ -323,7 +326,7 @@
323326
},
324327
{
325328
"cell_type": "code",
326-
"execution_count": null,
329+
"execution_count": 0,
327330
"metadata": {
328331
"application/vnd.databricks.v1+cell": {
329332
"cellMetadata": {

0 commit comments

Comments
 (0)