ClickHouse/src/Interpreters/InterpreterShowProcesslistQuery.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
387 B
C++
Raw Normal View History

#include <IO/ReadBufferFromString.h>
2016-12-12 07:24:56 +00:00
2017-05-23 18:24:43 +00:00
#include <Interpreters/Context.h>
#include <Interpreters/executeQuery.h>
#include <Interpreters/InterpreterShowProcesslistQuery.h>
2016-12-12 07:24:56 +00:00
#include <Parsers/ASTQueryWithOutput.h>
2016-12-12 07:24:56 +00:00
namespace DB
{
BlockIO InterpreterShowProcesslistQuery::execute()
{
2023-03-31 09:36:03 +00:00
return executeQuery("SELECT * FROM system.processes ORDER BY elapsed DESC", getContext(), true);
2016-12-12 07:24:56 +00:00
}
}