MCPcopy Create free account
hub / github.com/ByConity/ByConity / getStringFromLiteral

Function getStringFromLiteral

src/Interpreters/InterpreterReproduceQuery.cpp:31–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29namespace
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
44BlockIO InterpreterReproduceQuery::execute()

Callers 1

executeMethod · 0.85

Calls 1

ExceptionClass · 0.70

Tested by

no test coverage detected