MCPcopy Create free account
hub / github.com/apache/datafusion / create_hits_view

Method create_hits_view

benchmarks/src/clickbench.rs:341–349  ·  view source on GitHub ↗

Creates the hits view with EventDate transformation from UInt16 to DATE. ClickBench encodes EventDate as UInt16 days since epoch (1970-01-01).

(ctx: &SessionContext)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

newFunction · 0.85
collectMethod · 0.80
sqlMethod · 0.80
ContextClass · 0.50
to_stringMethod · 0.45

Tested by

no test coverage detected