()
| 2402 | |
| 2403 | #[tokio::test] |
| 2404 | async fn test_cache_mismatch() -> Result<()> { |
| 2405 | let ctx = SessionContext::new(); |
| 2406 | let df = ctx |
| 2407 | .sql("SELECT CASE WHEN true THEN NULL ELSE 1 END") |
| 2408 | .await?; |
| 2409 | let cache_df = df.cache().await; |
| 2410 | assert!(cache_df.is_ok()); |
| 2411 | Ok(()) |
| 2412 | } |
| 2413 | |
| 2414 | #[tokio::test] |
| 2415 | async fn cache_test() -> Result<()> { |