@@ -14,7 +14,7 @@ use crate::rb_modules::polars;
1414use crate :: ruby:: gvl:: GvlExt ;
1515use crate :: utils:: EnterPolarsExt ;
1616use crate :: utils:: to_rb_err;
17- use crate :: { RbResult , RbValueError , Wrap } ;
17+ use crate :: { RbResult , Wrap } ;
1818
1919macro_rules! rbdict_insert_keys {
2020 ( $dict: expr, { $a: expr} ) => {
@@ -268,29 +268,33 @@ impl RbCatalogClient {
268268 storage_root : Option < String > ,
269269 properties : Vec < ( String , String ) > ,
270270 ) -> RbResult < Value > {
271- let table_info = rb. detach ( || {
272- pl_async :: get_runtime ( )
273- . block_in_place_on (
271+ let table_info = rb
272+ . detach ( || {
273+ pl_async :: get_runtime ( ) . block_in_place_on (
274274 self_. client ( ) . create_table (
275275 & catalog_name,
276276 & namespace,
277277 & table_name,
278278 schema. as_ref ( ) . map ( |x| & x. 0 ) ,
279279 & TableType :: from_str ( & table_type)
280- . map_err ( |e| RbValueError :: new_err ( e. to_string ( ) ) ) ?,
280+ // TODO fix
281+ // .map_err(|e| RbValueError::new_err(e.to_string()))?,
282+ . unwrap ( ) ,
281283 data_source_format
282284 . as_deref ( )
283285 . map ( DataSourceFormat :: from_str)
284286 . transpose ( )
285- . map_err ( |e| RbValueError :: new_err ( e. to_string ( ) ) ) ?
287+ // TODO fix
288+ // .map_err(|e| RbValueError::new_err(e.to_string()))?
289+ . unwrap ( )
286290 . as_ref ( ) ,
287291 comment. as_deref ( ) ,
288292 storage_root. as_deref ( ) ,
289293 & mut properties. iter ( ) . map ( |( a, b) | ( a. as_str ( ) , b. as_str ( ) ) ) ,
290294 ) ,
291295 )
292- . map_err ( to_rb_err )
293- } ) ?;
296+ } )
297+ . map_err ( to_rb_err ) ?;
294298
295299 table_info_to_rbobject ( rb, table_info)
296300 }
0 commit comments