Breaking changes in 0.6.0
Each entry says what is different in 0.6.0 and what to do. A 0.5.x call that no longer exists raises an error with a Fix: that gives the new form. The migration guide maps each old install line, import and call to its new one.
Install
The env wheel replaces the light extras
- Install the env wheel for the runtime, with no light extra. The 0.5.x extras
light_env5,light_env6,light_dbr17,light_dbr18,light_dbr19and their_allforms fail at resolution. The error names the wheel to install. - To migrate, replace
"geobrix[light_env6,<extras>] @ …/geobrix-<version>-py3-none-any.whl"with"geobrix[<extras>] @ …/geobrix-<version>+env6-py3-none-any.whl".- Use
+env5where you usedlight_env5,light_dbr17orlight_dbr18. - An
_allform becomes[stac,vizx], plus[zarr]on env6.
- Use
[models],[photogrammetry],[overture]and[earthdata]are not extras. Install their packages as a separate step after the env wheel. See Installation.
GPU installs use the env6 wheel
- The GPU extras
photogrammetry_gpu_env5,models_gpu_env5andgpu_env5_allname the env6 wheel. The UDF workers of the Serverless GPU runtime run environment 6, even under an environment 5 driver. - To migrate, select environment 6 and install the env6 wheel for a notebook that runs UDFs, such as GeoSAM. Then install the GPU packages as a separate step:
- Photogrammetry:
pycolmap-cuda12==4.2.1. - Models (GeoSAM):
torch==2.9.0,torchvision==0.24.0,segment-geospatialandopencv-python-headless==4.11.0.86.
- Photogrammetry:
- A driver-only GPU step, such as dense MVS with
pycolmap-cuda12, can stay on the env5 wheel. See GeoSAM.
The init-script install is removed
- GeoBrix 0.6.0 has no GDAL init script and no GDAL bundle. The JVM level takes GDAL, PROJ and GEOS from the env wheel.
- To migrate, remove the init script and the GDAL bundle from the cluster. Then install the env wheel and the JAR as cluster libraries on a dedicated cluster.
- Stage the JAR with
gbx.stage_jar, which copies the env wheel's own JAR. You no longer need to download it. - A 0.6.0 wheel beside the init script's system GDAL puts two GDAL stacks in one cluster.
- Stage the JAR with
- See Cluster libraries and Which functions run where.
GeoBrix does not install PySpark
- Databricks provides PySpark. For a local Spark session, install
pyspark>=4.0.0beside GeoBrix. See Installation.
Python API and registration
pyrx, pygx and pyvx are internal
- The Python API is
rasterx,gridx.<grid>,vectorxandpmtiles. Thepyrx,pygxandpyvxpackages export nothing. - To migrate, change the import path. Each function keeps its name:
pyrx.functions.rst_widthisrasterx.functions.rst_width.- Python-only helpers moved to
rasterx.helpers,gridx.helpersandvectorx.helpers. gridx.h3.functions.h3_geomkringandh3_geomkloopreplacegeomkringandgeomkloop.- An old import path raises an error that gives the new path.
- Python-only helpers moved to
- See Entry points.
One registrar: gbx.register(spark)
- The per-package
register()functions are removed. That coversrasterx,gridx.<grid>,vectorx,pyrx,pygx,pyvx,databricks.labs.gbx.ds.registerandvectorx.jts.legacy. Each raises anAttributeErrorthat gives the fix. - Importing
databricks.labs.gbx.dsno longer registers the readers. - To migrate, call
from databricks.labs import gbx, thengbx.register(spark). It registers every function and every*_gbxdata source. See One registrar.
Scala registers no SQL
- The
registerfunction of every Scala package is removed. Register once from Python or SQL withgbx.register(spark), then call the SQL names from Scala. - Scala keeps the per-name wrappers only for the functions whose JVM form stays. Which functions run where lists them.
- For every other function, call
call_function("gbx_<name>", ...)orexpr(...). The JAR holds no JVM class for a function that runs at the Python level. Scala code that names such a class does not compile. - See Scala and SQL from a JVM job.
Readers and writers
The Scala readers and writers are retired
- The JAR registers no data source. A read with a retired format name gives "data source not found".
- To migrate, use the
*_gbxreader aftergbx.register(spark):
| Retired format | Use |
|---|---|
gdal, gtiff_gdal, netcdf_gdal | raster_gbx, gtiff_gbx, netcdf_gbx |
ogr, shapefile_ogr, geojson_ogr, gpkg_ogr, file_gdb_ogr | vector_gbx, shapefile_gbx, geojson_gbx, gpkg_gbx, file_gdb_gbx |
netcdf_ogr | netcdf_gbx with mode="vector" |
geojsonl_ogr (write), pmtiles (write) | geojsonl_gbx, pmtiles_gbx |
- Write rasters with
raster_gbx,gtiff_gbxorcog_gbx. A write with thegdalorgtiff_gdalformat fails with aFix:. See Raster Writer. - A Python data source cannot be queried by path in SQL. Create a view instead:
CREATE VIEW v USING raster_gbx OPTIONS (path '...').
gbx_file_write defaults to file_mode="fuse"
gbx_file_writeandopen_for_writewrite a plain Delta table by default. That table reads on every compute. The 0.5.x default,"auto", wrote a FILE column wherever the runtime had one.- To keep FILE columns, pass
file_mode="auto","external"or"managed". Passingfilespace=with nofile_modestill asks for FILE MANAGED.
Function calls
Renamed and reordered arguments
These changes affect callers that pass keywords or named arguments, or the changed positions.
rst_mapalgebra:json_specis nowexpression, in GDAL'smuparsergrammar. NumPy spellings raise. Write a condition asA > 0 ? A : 0.rst_color_relief(tile, color_table)takes the color table's text, not a file path. To use a file, read its text first.rst_transformcrs:crsis nowtarget_crs.rst_align_totakes(tile, reference_tile).rst_land_cover(tile, method, n_clusters, smooth)replaces the keyword-only form.classesis gone.rst_bng_rasterize_aggtakes twelve required arguments:cellid, value, out_srid, pixel_size, xmin, ymin, xmax, ymax, width, height, mode, kring_pad. Its optionalout_crsmust be NULL, because BNG output is always EPSG:27700.rst_custom_rasterize_agg(cellid, value, grid, ...)replaces(cellid, grid, value, ...).custom_pointascelltakespoint, andcustom_distancetakescellid1andcellid2.h3_cell_bbox(cellid, srid, mode, kring_pad, out_crs)names its SRID argumentsrid.pmtiles_agg(bytes, z, x, y, metadata_json=None)replacesbytes_col.rst_tilexyzreadsrescaleas'auto','none'or the text'min,max'. A tuple is refused.rst_derivedbandandrst_derivedband_aggtake the pixel function as a Python string only in Python. SQL is unchanged.rst_fillnodatatakes whole numbers formax_search_distandsmoothing_iter.- The
rst_fromfilePython default is a virtual tile. Passmaterialize=Truefor a materialized tile. - In Python,
rasterx.functions.rst_fromfiletakesgeom,clip_crsandresolutionbeforematerialize. Passmaterializeby keyword. - String arguments are literals. These names read a string as its value, not as a column name:
format,resampling,rescale,compression,overview_resampling,color_table,crs,metadata_json,new_format,operation,python_func,func_name,subset_name,new_type,method,driver,coverage,assignment,layer_name,attr_field,statistic,mode,algorithm,command,expression,formula_name,level,op,unit,dist_units,target_values,clip_crs,source_crsandtarget_crs.- Also every
out_crsexcept that ofh3_cell_bbox, the BNGresolution, and the TINsplit_point_finderandgrid_origin. - A column can no longer supply those arguments row by row.
- Also every
Generators and aggregates change shape
- Generators are DataFrame calls in Python.
rst_retile,rst_polygonize,rst_xyzpyramid,rst_maketiles, the tessellation, TIN and explode functions take the DataFrame and return it joined with the new rows.- Example:
rasterx.functions.rst_retile(df, "tile", 512, 512). - The retile rows carry the tile's fields as columns. To pass one to a tile function, rebuild it with
F.struct("cellid", "raster", "path", "path_mode", "window", "clip_polygon", "clip_crs", "crs", "metadata").alias("tile").
- Example:
- In SQL, call a generator with
FROM t, LATERAL f(...). This works on every compute. Therst_*_rastertogrid*reducers return rows, not anARRAY. - Aggregates return
BINARYGeoTIFF bytes on every compute. This coversrst_merge_agg,rst_combineavg_agg,rst_frombands_agg,rst_rasterize_aggand the cell rasterize aggregates. Wrap the result withrst_fromcontent(col, "GTiff")for a tile. - The four cell-fill aggregates return the
BINARYpayload. gbx_rst_summaryreturns GDAL's own JSON. A query that reads its keys must change:bands[].minandbands[].maxare nowbands[].minimumandbands[].maximum.coordinateSystem.epsgandcoordinateSystem.crsare nowcoordinateSystem.wkt. The EPSG code isstac."proj:epsg".
BNG tessellation drops the core geometry by default
bng_tessellateandbng_tessellateexplodedefaultkeep_core_geomto false in every API. A core cell'schipis NULL unless you ask for it. Border cells always carry their geometry.- To keep the 0.5.x wrapper result, pass
keep_core_geomas true. - JVM-level
bng_tessellateexplodereturnscellid,coreandchip, as the Python level does. A query that names the whole output with one alias needs one name per column.
Results
These changes alter results without a change to the call. Read each before you upgrade. Changes lists the rest.
rst_clipfills with NoData outside the cutline, not valid zeros. See NoData, alpha and mask bands.- TIN
snap_toleranceandmerge_tolerancecan change the triangles, because points now snap to break lines before triangulating. See TIN functions. - Centroid tessellation tiles are cropped to their cell. Code that stacks tiles as same-shape arrays must change. See Raster tessellation.
- British National Grid transforms use OSTN15, and move by up to about 5 m. See PROJ data and OSTN15.
Examples
Wireless Coverage Lakeflow: drop wc_lidar_pts once
wc_lidar_ptsis now a streaming table. It reads only the.laztiles that reached thelaz_inventorystream since the last update.- To upgrade a deployment, run
DROP MATERIALIZED VIEW <catalog>.<schema>.wc_lidar_ptsonce, then run the pipeline. Without it, the first update fails withCANNOT_CHANGE_DATASET_TYPE, and a full refresh does not fix it. - After changing
full_aoi,tile_morsrid, run the pipeline with--full-refresh wc_lidar_pts. See Wireless Coverage.
Genie Map: the AI Assistant calls a Unity Catalog model service
- The model is now
system.ai.gpt-5-2. The serving endpointdatabricks-gpt-5-2is refused withPERMISSION_DENIED. - To migrate, set
DATABRICKS_LLM_MODELinapp.yamland the bundle variablellm_model, to the same value. They replaceDATABRICKS_SERVING_ENDPOINT_NAMEandserving_endpoint_name. - The app's resource grants
EXECUTEon the model service, in place ofCAN_QUERYon a serving endpoint. See Genie Map.