diff --git a/src/IO/WriteBufferFromArena.h b/src/IO/WriteBufferFromArena.h index b5fd9fac5a3..0e8a11fb5d6 100644 --- a/src/IO/WriteBufferFromArena.h +++ b/src/IO/WriteBufferFromArena.h @@ -13,7 +13,7 @@ namespace DB * * While using this object, no other allocations in arena are possible. */ -class WriteBufferFromArena : public WriteBuffer +class WriteBufferFromArena final : public WriteBuffer { private: Arena & arena; diff --git a/src/Interpreters/DDLWorker.cpp b/src/Interpreters/DDLWorker.cpp index e18b92b4bd5..05370a6a3b7 100644 --- a/src/Interpreters/DDLWorker.cpp +++ b/src/Interpreters/DDLWorker.cpp @@ -1203,7 +1203,7 @@ void DDLWorker::runCleanupThread() } -class DDLQueryStatusInputStream : public IBlockInputStream +class DDLQueryStatusInputStream final : public IBlockInputStream { public: diff --git a/src/Interpreters/InterpreterKillQueryQuery.h b/src/Interpreters/InterpreterKillQueryQuery.h index e1ea23d3dec..788703f8e6d 100644 --- a/src/Interpreters/InterpreterKillQueryQuery.h +++ b/src/Interpreters/InterpreterKillQueryQuery.h @@ -12,7 +12,7 @@ class Context; class AccessRightsElements; -class InterpreterKillQueryQuery : public IInterpreter +class InterpreterKillQueryQuery final : public IInterpreter { public: InterpreterKillQueryQuery(const ASTPtr & query_ptr_, Context & context_)