Lee Wei Hern Jason
08/25/2023, 5:20 AMSELECT start_timestamp_10mins, SUM(online_seconds)/3600.0 AS value FROM m_driver_supply_derived WHERE country_id = 6 AND city_id IN (84, 130, 20, 340, 369, 79, 360, 308, 98, 81, 230, 34, 349, 350, 370, 63, 372, 346, 231, 60, 86, 61, 218, 99, 43, 363, 222, 64, 367, 80, 15, 101, 348, 62, 361, 28, 75, 373, 356, 352, 69, 41, 362, 55, 347, 341, 374, 365, 219, 65, 275, 10, 66, 364, 40, 225, 366, 146, 35, 337, 354, 342, 344, 102, 345, 96, 132, 78, 18, 359, 36, 256, 77, 358, 343, 371, 100, 357, 368, 215, 26, 255, 44, 144, 351, 85, 353, 76) AND
business_vertical = 'BUSINESS_VERTICAL_TYPE_TRANSPORT' AND
granularity = 'GRANULARITY_BUSINESS' AND
start_timestamp_10mins >= '2023-08-15 17:00:00.0' AND start_timestamp_10mins < '2023-08-25 17:00:00.0' GROUP BY start_timestamp_10mins HAVING value >= 0 ORDER BY start_timestamp_10mins ASC LIMIT 10000000
Star Tree Index:
We are configuring it in the order of highest cardinality to lowest.
"starTreeIndexConfigs": [
{
"dimensionsSplitOrder": [
"vehicle_type_id",
"city_id",
"country_id",
"vehicle_mode",
"granularity",
"start_timestamp_10mins",
"start_timestamp_1hour",
"start_timestamp_4hour"
],
"skipStarNodeCreationForDimensions": [],
"functionColumnPairs": [
"SUM__online_seconds",
"SUM__online_count",
"SUM__in_transit_seconds"
],
"maxLeafRecords": 10000
}
],
Xiang Fu
Xiang Fu
Jackie
08/31/2023, 5:42 PMbusiness_vertical
is missingLee Wei Hern Jason
09/05/2023, 7:38 AM