diff --git a/src/rust/src/expr/string.rs b/src/rust/src/expr/string.rs index 6645f280..8b30d05d 100644 --- a/src/rust/src/expr/string.rs +++ b/src/rust/src/expr/string.rs @@ -122,6 +122,13 @@ impl PlRExpr { .into()) } + // TODO: Work around for + #[cfg(target_arch = "wasm32")] + #[allow(unused_variables)] + fn str_json_path_match(&self, pat: &PlRExpr) -> Result { + Err(RPolarsErr::Other(format!("`Not supported in WASM")).into()) + } + // fn str_json_decode(&self, dtype: &PlRExpr, infer_schema_len: &PlRExpr) -> Result { // let dtype = robj_to!(Option, RPolarsDataType, dtype)?.map(|dty| dty.0); // let infer_schema_len = robj_to!(Option, usize, infer_schema_len)?; diff --git a/src/rust/src/expr/struct.rs b/src/rust/src/expr/struct.rs index e603ad45..67321e90 100644 --- a/src/rust/src/expr/struct.rs +++ b/src/rust/src/expr/struct.rs @@ -32,6 +32,13 @@ impl PlRExpr { Ok(self.inner.clone().struct_().json_encode().into()) } + // TODO: Work around for + #[cfg(target_arch = "wasm32")] + #[allow(unused_variables)] + fn struct_json_encode(&self) -> Result { + Err(RPolarsErr::Other(format!("`Not supported in WASM")).into()) + } + fn struct_with_fields(&self, fields: ListSexp) -> Result { let fields = >>::from(fields).0; let e = self diff --git a/src/rust/src/lazyframe/general.rs b/src/rust/src/lazyframe/general.rs index 1389d17f..bb3d54b8 100644 --- a/src/rust/src/lazyframe/general.rs +++ b/src/rust/src/lazyframe/general.rs @@ -460,6 +460,32 @@ impl PlRLazyFrame { Ok(r.finish().map_err(RPolarsErr::from)?.into()) } + // TODO: Work around for + #[cfg(target_arch = "wasm32")] + #[allow(unused_variables)] + fn new_from_parquet( + source: StringSexp, + cache: bool, + parallel: &str, + rechunk: bool, + low_memory: bool, + use_statistics: bool, + try_parse_hive_dates: bool, + retries: NumericScalar, + glob: bool, + allow_missing_columns: bool, + row_index_offset: NumericScalar, + storage_options: Option, + n_rows: Option, + row_index_name: Option<&str>, + hive_partitioning: Option, + schema: Option, + hive_schema: Option, + include_file_paths: Option<&str>, + ) -> Result { + Err(RPolarsErr::Other(format!("`Not supported in WASM")).into()) + } + // TODO: Refactor with adding `parquet` feature as like Python Polars #[cfg(not(target_arch = "wasm32"))] fn new_from_parquet( @@ -567,6 +593,29 @@ impl PlRLazyFrame { Ok(lf.into()) } + // TODO: Work around for + #[cfg(target_arch = "wasm32")] + #[allow(unused_variables)] + fn new_from_ndjson( + source: StringSexp, + low_memory: bool, + rechunk: bool, + ignore_errors: bool, + retries: NumericScalar, + row_index_offset: NumericScalar, + row_index_name: Option<&str>, + infer_schema_length: Option, + schema: Option, + schema_overrides: Option, + batch_size: Option, + n_rows: Option, + include_file_paths: Option<&str>, + storage_options: Option, + file_cache_ttl: Option, + ) -> Result { + Err(RPolarsErr::Other(format!("`Not supported in WASM")).into()) + } + // TODO: Refactor with adding `json` feature as like Python Polars #[cfg(not(target_arch = "wasm32"))] fn new_from_ndjson(