-
-
Save corasaurus-hex/a6a4b47acd047e4def359931b5714a2b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use datafusion::{execution::options::ArrowReadOptions, prelude::*}; | |
| #[tokio::main] | |
| async fn main() { | |
| let ctx = SessionContext::new(); | |
| ctx.register_arrow("my_table", "file.arrow", ArrowReadOptions::default()) | |
| .await | |
| .unwrap(); | |
| ctx.sql("SELECT * FROM my_table LIMIT 10") | |
| .await | |
| .unwrap() | |
| .show() | |
| .await | |
| .unwrap(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment