Skip to content

Unable to convert from existing arrow dataset from polars-st #251

@msmitherdc

Description

@msmitherdc

Datafile is in public s3 location

import polars as pl
import polars_st as st
import pyarrow.dataset as ds
import rustac

dataset = ds.dataset("s3://grid-partner-share/stac_11764_nzimagery_rasters.parquet", format="parquet")
df = pl.scan_pyarrow_dataset(dataset).collect()
gdf = st.GeoDataFrame(data=df)
ruarrow = rustac.from_arrow(gdf.to_arrow())

results in

thread '<unnamed>' (322187) panicked at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-array-56.2.0/src/cast.rs:868:29:
binary array
---------------------------------------------------------------------------
PanicException                            Traceback (most recent call last)
Cell In[24], line 1
----> 1 rustac.from_arrow(gdf)

PanicException: binary array

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions