Description
Users should have the ability to cancel a query on planning or execution stages.
Firstly we should have API to retrieve the identifier of the query and API to cancel a query by the identifier.
For cancel planning see AbstractRelOptPlanner.java:91, here CancelFlag is used to cancel planning loop. We need to pass it into a newly created context and bind its state with PlanningContext#queryCancel to break possible infinite planning loop. See also PlanningContext#unwrap
Attachments
Issue Links
- blocks
-
IGNITE-15487 Calcite integration. Implements DDL command KILL query
- Open
- incorporates
-
IGNITE-15394 Calcite integration. Query contexts refactoring
- Resolved
- is duplicated by
-
IGNITE-15323 Calcite engine. Query lifecycle refactoting
- Resolved
- is part of
-
IGNITE-12248 Apache Calcite based query execution engine
- Open
- links to