diff --git a/pyogrio/_io.pyx b/pyogrio/_io.pyx index de8de43f..8487c728 100644 --- a/pyogrio/_io.pyx +++ b/pyogrio/_io.pyx @@ -1206,7 +1206,7 @@ def ogr_read( fids = np.asarray(fids, dtype=np.intc) if sql is not None and layer is not None: - raise ValueError("'sql' paramater cannot be combined with 'layer'") + raise ValueError("'sql' parameter cannot be combined with 'layer'") if not (read_geometry or return_fids or columns is None or len(columns) > 0): raise ValueError( @@ -1467,7 +1467,7 @@ def ogr_open_arrow( ) if sql is not None and layer is not None: - raise ValueError("'sql' paramater cannot be combined with 'layer'") + raise ValueError("'sql' parameter cannot be combined with 'layer'") if not (read_geometry or return_fids or columns is None or len(columns) > 0): raise ValueError( @@ -2739,4 +2739,4 @@ cdef create_fields_from_arrow_schema( f"Error while creating field from Arrow for field {i} with name " f"'{get_string(child.name)}' and type {get_string(child.format)}" f"{gdal_msg}." - ) \ No newline at end of file + ) diff --git a/pyogrio/tests/test_geopandas_io.py b/pyogrio/tests/test_geopandas_io.py index a8a7b94c..ed9facb2 100644 --- a/pyogrio/tests/test_geopandas_io.py +++ b/pyogrio/tests/test_geopandas_io.py @@ -769,7 +769,7 @@ def test_read_sql_invalid(naturalearth_lowres_all_ext, use_arrow): ) with pytest.raises( - ValueError, match="'sql' paramater cannot be combined with 'layer'" + ValueError, match="'sql' parameter cannot be combined with 'layer'" ): read_dataframe( naturalearth_lowres_all_ext,