SELECT p.norecopk FROM events p WHERE MBRINTERSECTS(p.spatialdata, ST_GeomFromText('LINESTRING(1552435200000 1, 1552435200000 -1)')) | { "steps": [ { "join_preparation": { "select#": 1, "steps": [ { "expanded_query": "/* select#1 */ select `p`.`norecopk` AS `norecopk` from `events` `p` where mbrintersects(`p`.`spatialdata`,st_geomfromtext('LINESTRING(1552435200000 1, 1552435200000 -1)'))" } ] } }, { "join_optimization": { "select#": 1, "steps": [ { "condition_processing": { "condition": "WHERE", "original_condition": "mbrintersects(`p`.`spatialdata`,st_geomfromtext('LINESTRING(1552435200000 1, 1552435200000 -1)'))", "steps": [ { "transformation": "equality_propagation", "resulting_condition": "mbrintersects(`p`.`spatialdata`,st_geomfromtext('LINESTRING(1552435200000 1, 1552435200000 -1)'))" }, { "transformation": "constant_propagation", "resulting_condition": "mbrintersects(`p`.`spatialdata`,st_geomfromtext('LINESTRING(1552435200000 1, 1552435200000 -1)'))" }, { "transformation": "trivial_condition_removal", "resulting_condition": "mbrintersects(`p`.`spatialdata`,st_geomfromtext('LINESTRING(1552435200000 1, 1552435200000 -1)'))" } ] } }, { "substitute_generated_columns": { } }, { "table_dependencies": [ { "table": "`events` `p`", "row_may_be_null": false, "map_bit": 0, "depends_on_map_bits": [ ] } ] }, { "ref_optimizer_key_uses": [ ] }, { "rows_estimation": [ { "table": "`events` `p`", "range_analysis": { "table_scan": { "rows": 581235, "cost": 91872 }, "potential_range_indexes": [ { "index": "PRIMARY", "usable": false, "cause": "not_applicable" }, { "index": "events_spatialdata", "usable": true, "key_parts": [ "spatialdata", "norecopk" ] } ], "setup_range_conditions": [ ], "group_index_range": { "chosen": false, "cause": "not_group_by_or_distinct" }, "skip_scan_range": { "potential_skip_scan_indexes": [ { "index": "events_spatialdata", "usable": false, "cause": "query_references_nonkey_column" } ] }, "analyzing_range_alternatives": { "range_scan_alternatives": [ { "index": "events_spatialdata", "ranges": [ "spatialdata unprintable_geometry_value" ], "index_dives_for_eq_ranges": true, "rowid_ordered": false, "using_mrr": false, "index_only": false, "rows": 1, "cost": 1.8647, "chosen": true } ], "analyzing_roworder_intersect": { "usable": false, "cause": "too_few_roworder_scans" } }, "chosen_range_access_summary": { "range_access_plan": { "type": "range_scan", "index": "events_spatialdata", "rows": 1, "ranges": [ "spatialdata unprintable_geometry_value" ] }, "rows_for_plan": 1, "cost_for_plan": 1.8647, "chosen": true } } } ] }, { "considered_execution_plans": [ { "plan_prefix": [ ], "table": "`events` `p`", "best_access_path": { "considered_access_paths": [ { "rows_to_scan": 1, "access_type": "range", "range_details": { "used_index": "events_spatialdata" }, "resulting_rows": 1, "cost": 1.9647, "chosen": true } ] }, "condition_filtering_pct": 100, "rows_for_plan": 1, "cost_for_plan": 1.9647, "chosen": true } ] }, { "attaching_conditions_to_tables": { "original_condition": "mbrintersects(`p`.`spatialdata`,st_geomfromtext('LINESTRING(1552435200000 1, 1552435200000 -1)'))", "attached_conditions_computation": [ ], "attached_conditions_summary": [ { "table": "`events` `p`", "attached": "mbrintersects(`p`.`spatialdata`,st_geomfromtext('LINESTRING(1552435200000 1, 1552435200000 -1)'))" } ] } }, { "finalizing_table_conditions": [ { "table": "`events` `p`", "original_table_condition": "mbrintersects(`p`.`spatialdata`,st_geomfromtext('LINESTRING(1552435200000 1, 1552435200000 -1)'))", "final_table_condition ": "mbrintersects(`p`.`spatialdata`,(st_geomfromtext('LINESTRING(1552435200000 1, 1552435200000 -1)')))" } ] }, { "refine_plan": [ { "table": "`events` `p`" } ] } ] } }, { "join_execution": { "select#": 1, "steps": [ ] } } ] }