| 220 | } |
| 221 | |
| 222 | StorageID AsynchronousInsertQueue::InsertQuery::getStorageID() const |
| 223 | { |
| 224 | if (!query) |
| 225 | throw Exception(ErrorCodes::LOGICAL_ERROR, "InsertQuery AST is null"); |
| 226 | |
| 227 | auto * insert_query = query->as<ASTInsertQuery>(); |
| 228 | if (!insert_query) |
| 229 | throw Exception(ErrorCodes::LOGICAL_ERROR, "AST is not type of ASTInsertQuery"); |
| 230 | |
| 231 | return insert_query->table_id; |
| 232 | } |
| 233 | |
| 234 | AsynchronousInsertQueue::InsertData::Entry::Entry( |
| 235 | DataChunk && chunk_, |
no test coverage detected