pub fn detect_query_type(query: &Query) -> QueryTypeExpand description
Detect query type from parsed AST (EPIC-052 US-006).
Priority order:
- DDL (CREATE/DROP COLLECTION) -> Ddl
- DML (INSERT/UPDATE/DELETE) -> Dml
- MATCH clause -> Graph
- GROUP BY or aggregates -> Aggregation
- Vector search -> Search
- Default -> Rows