Skip to content

Commit e1116d1

Browse files
authored
Update overture notebook with new API names (#94)
1 parent f257f37 commit e1116d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/overture-examples.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@
360360
"metadata": {},
361361
"outputs": [],
362362
"source": [
363-
"# get all the divisions in Nova Scotia and save them in memory with collect()\n",
363+
"# get all the divisions in Nova Scotia and save them in memory with to_memtable()\n",
364364
"nova_scotia_bbox_wkt = (\n",
365365
" \"POLYGON((-66.5 43.4, -66.5 47.1, -59.8 47.1, -59.8 43.4, -66.5 43.4))\"\n",
366366
")\n",
@@ -370,7 +370,7 @@
370370
"FROM division_area\n",
371371
"WHERE\n",
372372
" ST_Intersects(geometry, ST_SetSRID(ST_GeomFromText('{nova_scotia_bbox_wkt}'), 4326))\n",
373-
"\"\"\").collect()"
373+
"\"\"\").to_memtable()"
374374
]
375375
},
376376
{
@@ -424,7 +424,7 @@
424424
],
425425
"source": [
426426
"%%time\n",
427-
"# this executes quickly because the Nova Scotia data was persisted in memory with collect()\n",
427+
"# this executes quickly because the Nova Scotia data was persisted in memory with to_memtable()\n",
428428
"df.show(2)"
429429
]
430430
}

0 commit comments

Comments
 (0)