| 29 | namespace |
| 30 | { |
| 31 | std::string getStringFromLiteral(ASTPtr ast) |
| 32 | { |
| 33 | try |
| 34 | { |
| 35 | return ast->as<ASTLiteral &>().value.safeGet<String>(); |
| 36 | } |
| 37 | catch (Exception & e) |
| 38 | { |
| 39 | throw Exception("invalid reproduce query: " + e.message(), ErrorCodes::BAD_ARGUMENTS); |
| 40 | } |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | BlockIO InterpreterReproduceQuery::execute() |