Creates the hits view with EventDate transformation from UInt16 to DATE. ClickBench encodes EventDate as UInt16 days since epoch (1970-01-01).
(ctx: &SessionContext)
| 339 | /// |
| 340 | /// ClickBench encodes EventDate as UInt16 days since epoch (1970-01-01). |
| 341 | async fn create_hits_view(ctx: &SessionContext) -> Result<()> { |
| 342 | ctx.sql(HITS_VIEW_DDL).await?.collect().await.map_err(|e| { |
| 343 | DataFusionError::Context( |
| 344 | "Creating 'hits' view with EventDate transformation".to_string(), |
| 345 | Box::new(e), |
| 346 | ) |
| 347 | })?; |
| 348 | Ok(()) |
| 349 | } |
| 350 | |
| 351 | fn iterations(&self) -> usize { |
| 352 | self.common.iterations |