Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"lodash.throttle": "^4.1.1",
"maplibre-gl": "^3.6.2",
"memoize-one": "^6.0.0",
"parquet-wasm": "0.6.1",
"parquet-wasm": "0.7.0-beta.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-map-gl": "^7.1.7",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ dev = [
"palettable>=3.3.3",
"pandas-stubs>=2.2.2.240807",
"pre-commit>=3.5.0",
"pyarrow>=17.0.0",
"pyarrow>=21.0.0",
"pyogrio>=0.9.0",
"pytest>=8.3.4",
"ruff>=0.13.0",
Expand Down
2 changes: 1 addition & 1 deletion src/parquet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as arrow from "apache-arrow";

// NOTE: this version must be synced exactly with the parquet-wasm version in
// use.
const PARQUET_WASM_VERSION = "0.6.1";
const PARQUET_WASM_VERSION = "0.7.0-beta.2";
const PARQUET_WASM_CDN_URL = `https://cdn.jsdelivr.net/npm/parquet-wasm@${PARQUET_WASM_VERSION}/esm/parquet_wasm_bg.wasm`;
let WASM_READY: boolean = false;

Expand Down
17 changes: 17 additions & 0 deletions tests/test_geoarrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,20 @@ def test_geoarrow_geometry_with_crs():
geometry_array = points(coords, crs=crs).cast(geometry(crs=crs))
m = viz(geometry_array)
assert isinstance(m.layers[0], ScatterplotLayer)


def test_geoarrow_string_view_column():
# Note: this test is really for the _JavaScript_ side to ensure the Wasm code can
# load a Parquet file with a string view column. We don't have a headless setup in
# CI, but you can run this test manually and ensure it renders.
coords = np.array([[1, 4], [2, 5], [3, 6]], dtype=np.float64)
geometry_array = points(coords)

string_col = pa.array(["a", "b", "c"], type=pa.string_view())
table = Table.from_arrays(
[geometry_array, string_col],
names=["geometry", "string_view"],
)

m = viz(table)
assert isinstance(m.layers[0], ScatterplotLayer)
Loading