mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 20:32:43 +00:00
Merge pull request #6837 from filimonov/fix_some_pvs_reported_issues
Fix some pvs reported issues
(cherry picked from commit c90dfc1e48
)
This commit is contained in:
parent
1602daba59
commit
242bdeda5f
@ -30,7 +30,7 @@ Context removeUserRestrictionsFromSettings(const Context & context, const Settin
|
||||
/// Set as unchanged to avoid sending to remote server.
|
||||
new_settings.max_concurrent_queries_for_user.changed = false;
|
||||
new_settings.max_memory_usage_for_user.changed = false;
|
||||
new_settings.max_memory_usage_for_all_queries = false;
|
||||
new_settings.max_memory_usage_for_all_queries.changed = false;
|
||||
|
||||
Context new_context(context);
|
||||
new_context.setSettings(new_settings);
|
||||
|
@ -1222,8 +1222,8 @@ void Context::setCurrentQueryId(const String & query_id)
|
||||
} words;
|
||||
} random;
|
||||
|
||||
random.words.a = thread_local_rng();
|
||||
random.words.b = thread_local_rng();
|
||||
random.words.a = thread_local_rng(); //-V656
|
||||
random.words.b = thread_local_rng(); //-V656
|
||||
|
||||
/// Use protected constructor.
|
||||
struct qUUID : Poco::UUID
|
||||
|
@ -418,8 +418,6 @@ QueryPipeline InterpreterSelectQuery::executeWithProcessors()
|
||||
|
||||
Block InterpreterSelectQuery::getSampleBlockImpl()
|
||||
{
|
||||
FilterInfoPtr filter_info;
|
||||
|
||||
/// Need to create sets before analyzeExpressions(). Otherwise some sets for index won't be created.
|
||||
query_analyzer->makeSetsForIndex(getSelectQuery().where());
|
||||
query_analyzer->makeSetsForIndex(getSelectQuery().prewhere());
|
||||
@ -431,8 +429,9 @@ Block InterpreterSelectQuery::getSampleBlockImpl()
|
||||
options.to_stage,
|
||||
context,
|
||||
storage,
|
||||
true,
|
||||
filter_info);
|
||||
true, // only_types
|
||||
{} // filter_info
|
||||
);
|
||||
|
||||
if (options.to_stage == QueryProcessingStage::Enum::FetchColumns)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user