(&self)
| 91 | } |
| 92 | |
| 93 | async fn run(&self) -> Result<()> { |
| 94 | match self { |
| 95 | ExampleKind::All => { |
| 96 | for example in ExampleKind::runnable() { |
| 97 | println!("Running example: {example}"); |
| 98 | Box::pin(example.run()).await?; |
| 99 | } |
| 100 | } |
| 101 | ExampleKind::AdvUdaf => advanced_udaf::advanced_udaf().await?, |
| 102 | ExampleKind::AdvUdf => advanced_udf::advanced_udf().await?, |
| 103 | ExampleKind::AdvUdwf => advanced_udwf::advanced_udwf().await?, |
| 104 | ExampleKind::AsyncUdf => async_udf::async_udf().await?, |
| 105 | ExampleKind::Udaf => simple_udaf::simple_udaf().await?, |
| 106 | ExampleKind::Udf => simple_udf::simple_udf().await?, |
| 107 | ExampleKind::Udtf => simple_udtf::simple_udtf().await?, |
| 108 | ExampleKind::Udwf => simple_udwf::simple_udwf().await?, |
| 109 | ExampleKind::TableListUdtf => table_list_udtf::table_list_udtf().await?, |
| 110 | } |
| 111 | |
| 112 | Ok(()) |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | #[tokio::main] |
no test coverage detected