mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 18:02:24 +00:00
19 lines
387 B
C++
19 lines
387 B
C++
#include <IO/ReadBufferFromString.h>
|
|
|
|
#include <Interpreters/Context.h>
|
|
#include <Interpreters/executeQuery.h>
|
|
#include <Interpreters/InterpreterShowProcesslistQuery.h>
|
|
|
|
#include <Parsers/ASTQueryWithOutput.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
BlockIO InterpreterShowProcesslistQuery::execute()
|
|
{
|
|
return executeQuery("SELECT * FROM system.processes ORDER BY elapsed DESC", getContext(), true);
|
|
}
|
|
|
|
}
|