Skip to main content

detect_query_type

Function detect_query_type 

Source
pub fn detect_query_type(query: &Query) -> QueryType
Expand description

Detect query type from parsed AST (EPIC-052 US-006).

Priority order:

  1. DDL (CREATE/DROP COLLECTION) -> Ddl
  2. DML (INSERT/UPDATE/DELETE) -> Dml
  3. MATCH clause -> Graph
  4. GROUP BY or aggregates -> Aggregation
  5. Vector search -> Search
  6. Default -> Rows