You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Builder for creating wheel indicespubstructIndexBuilder{/// The column to build the wheel index onpubcol:Column,/// The type of aggregation to usepubagg_type:AggregateType,/// Optional filter to apply to the columnpubfilter:Option<Expr>,/// Wheel configurationpubconf:HawConf,}// Build an index on fare_amount column using SUM() where id equals to ´1`let builder = IndexBuilder::with_col_and_aggregate("fare_amount",AggregateType::Sum).with_filter(col("id").eq(lit(1)));// Add the index to the optimizer
optimizer.build_index(builder).await?;// which would then enable the following query to execute through our index.let sum_plan = ctx
.sql("SELECT SUM(fare_amount) FROM yellow_tripdata WHERE tpep_dropoff_datetime >= '2022-01-01T00:00:00Z' AND tpep_dropoff_datetime < '2022-02-01T00:00:00Z' AND id = 1",).await?
The text was updated successfully, but these errors were encountered:
Define the API to build wheel indices.
Current approach:
The text was updated successfully, but these errors were encountered: