Skip to content

Commit

Permalink
Update 01a_Data_Extraction_DuckDB_PyIceberg.ipynb
Browse files Browse the repository at this point in the history
use bbox. for filter
  • Loading branch information
rtroilo authored Sep 7, 2024
1 parent 65cbc55 commit 7b05d85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions book/01a_Data_Extraction_DuckDB_PyIceberg.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@
" row_filter=(\n",
" f\"status = '{status}' \"\n",
" f\"and geometry_type = '{geometry_type}' \"\n",
" f\"and (xmax >= {xmin} and xmin <= {xmax}) \"\n",
" f\"and (ymax >= {ymin} and ymin <= {ymax}) \"\n",
" f\"and (bbox.xmax >= {xmin} and bbox.xmin <= {xmax}) \"\n",
" f\"and (bbox.ymax >= {ymin} and bbox.ymin <= {ymax}) \"\n",
" ),\n",
" selected_fields=(\n",
" \"user_id\",\n",
Expand Down

0 comments on commit 7b05d85

Please sign in to comment.