foskey51 commented on issue #18749:
URL: https://github.com/apache/datafusion/issues/18749#issuecomment-3540444477
similar behavior with datafusion-ffi too
```
cargo test --package datafusion-ffi
```
produces following errors :
```
error[E0599]: no method named `sql` found for struct
`datafusion::prelude::SessionContext` in the current scope
--> datafusion/ffi/src/table_provider.rs:583:14
|
582 | let result = ctx
| ______________________-
583 | | .sql("INSERT INTO t VALUES (128.0);")
| | -^^^ method not found in
`datafusion::prelude::SessionContext`
| |_____________|
|
error[E0599]: no method named `sql` found for struct
`datafusion::prelude::SessionContext` in the current scope
--> datafusion/ffi/src/table_provider.rs:629:14
|
628 | let result = ctx
| ______________________-
629 | | .sql("SELECT COUNT(*) as cnt FROM t")
| | -^^^ method not found in
`datafusion::prelude::SessionContext`
| |_____________|
|
error[E0277]: the size for values of type `[arrow::array::RecordBatch]`
cannot be known at compilation time
--> datafusion/ffi/src/table_provider.rs:628:13
|
628 | let result = ctx
| ^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for
`[arrow::array::RecordBatch]`
= note: all local variables must have a statically known size
error[E0277]: the size for values of type `[arrow::array::RecordBatch]`
cannot be known at compilation time
--> datafusion/ffi/src/table_provider.rs:628:22
|
628 | let result = ctx
| ______________________^
629 | | .sql("SELECT COUNT(*) as cnt FROM t")
630 | | .await?
631 | | .collect()
632 | | .await?;
| |___________________^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for
`[arrow::array::RecordBatch]`
= note: all local variables must have a statically known size
error[E0277]: the size for values of type `[arrow::array::RecordBatch]`
cannot be known at compilation time
--> datafusion/ffi/src/table_provider.rs:632:19
|
632 | .await?;
| ^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for
`[arrow::array::RecordBatch]`
note: required by a bound in `Break`
-->
/usr/local/rustup/toolchains/1.91.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/control_flow.rs:88:25
|
88 | pub enum ControlFlow<B, C = ()> {
| ^^^^^^ required by this bound in `Break`
...
96 | Break(B),
| ----- required by a bound in this variant
error[E0277]: the size for values of type `[arrow::array::RecordBatch]`
cannot be known at compilation time
--> datafusion/ffi/src/table_provider.rs:628:22
|
628 | let result = ctx
| ______________________^
629 | | .sql("SELECT COUNT(*) as cnt FROM t")
630 | | .await?
631 | | .collect()
632 | | .await?;
| |___________________^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for
`[arrow::array::RecordBatch]`
note: required by a bound in `std::ops::ControlFlow::Continue`
-->
/usr/local/rustup/toolchains/1.91.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/control_flow.rs:88:25
|
88 | pub enum ControlFlow<B, C = ()> {
| ^^^^^^ required by this bound in
`ControlFlow::Continue`
...
92 | Continue(C),
| -------- required by a bound in this variant
Some errors have detailed explanations: E0277, E0599.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `datafusion-ffi` (lib test) due to 6 previous errors
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]