Skip to content

Commit

Permalink
Set DF to 42.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
timsaucer committed Nov 9, 2024
1 parent c0d06e1 commit 3dfb266
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -581,10 +581,8 @@ impl PySessionContext {
let capsule = capsule.downcast::<PyCapsule>()?;
// validate_pycapsule(capsule, "arrow_array_stream")?;

let provider = unsafe { FFI_TableProvider::from_raw(capsule.pointer() as _) };
let provider = unsafe { capsule.reference::<FFI_TableProvider>() };
let provider = ForeignTableProvider::new(provider);
let schema = provider.schema();
println!("Got schema through TableProvider trait.");

let _ = self.ctx.register_table(name, Arc::new(provider))?;
}
Expand Down
2 changes: 1 addition & 1 deletion src/udf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl PyScalarUDF {
let function = create_udf(
name,
input_types.0,
return_type.0,
Arc::new(return_type.0),
parse_volatility(volatility)?,
to_scalar_function_impl(func),
);
Expand Down

0 comments on commit 3dfb266

Please sign in to comment.