mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
dbms: style [#METR-10071].
This commit is contained in:
parent
26848b6803
commit
eba3126077
@ -810,7 +810,7 @@ struct ReplaceStringImpl
|
||||
match = false;
|
||||
if (match)
|
||||
{
|
||||
replace_cnt ++;
|
||||
++replace_cnt;
|
||||
res_data += replacement;
|
||||
i = i + needle.size() - 1;
|
||||
} else
|
||||
|
@ -985,7 +985,7 @@ public:
|
||||
{
|
||||
external_tables.push_back(ExternalTable(external_options));
|
||||
if (external_tables.back().file == "-")
|
||||
stdin_count ++;
|
||||
++stdin_count;
|
||||
if (stdin_count > 1)
|
||||
throw Exception("Two or more external tables has stdin (-) set as --file field", ErrorCodes::BAD_ARGUMENTS);
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ String chooseSuffixForSet(const NamesAndTypesList & columns, const std::vector<S
|
||||
}
|
||||
if (done)
|
||||
break;
|
||||
id ++;
|
||||
++id;
|
||||
current_suffix = toString<Int32>(id);
|
||||
}
|
||||
return current_suffix;
|
||||
|
@ -1190,7 +1190,7 @@ void ExpressionAnalyzer::processGlobalOperations()
|
||||
{
|
||||
String external_table_name = "_data";
|
||||
while (context.tryGetExternalTable(external_table_name + toString(id)))
|
||||
id ++;
|
||||
++id;
|
||||
addExternalStorage(dynamic_cast<ASTFunction *>(&*global_nodes[i]), id);
|
||||
}
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ Block LogBlockInputStream::readImpl()
|
||||
if (mark_number > 0)
|
||||
current_row += marks[mark_number-1].rows;
|
||||
while (current_mark < marks.size() && marks[current_mark].rows <= current_row)
|
||||
current_mark ++;
|
||||
++current_mark;
|
||||
|
||||
current_table = storage.getTableFromMark(current_mark);
|
||||
current_table.second = std::min(current_table.second, marks.size() - 1);
|
||||
|
@ -256,7 +256,7 @@ bool makeMerge(int cur_time) {
|
||||
mergeScheduled --;
|
||||
std::vector<DataPtr> e;
|
||||
if (!selectPartsToMerge(e)) return 1;
|
||||
int curId = uniqId ++;
|
||||
int curId = ++uniqId;
|
||||
size_t size = 0;
|
||||
for (size_t i = 0; i < e.size(); ++i)
|
||||
{
|
||||
@ -300,11 +300,11 @@ void process(pair<int, pair<int, int> > ev)
|
||||
size += (*it)->size;
|
||||
st = min(st, (*it)->time);
|
||||
DataParts::iterator nxt = it;
|
||||
nxt ++;
|
||||
++nxt;
|
||||
data_parts.erase(it);
|
||||
it = nxt;
|
||||
} else
|
||||
it ++;
|
||||
++it;
|
||||
}
|
||||
data_parts.insert(new DataPart(st, size, 0, cur_time));
|
||||
} else if (type == 3) /// do merge
|
||||
@ -342,7 +342,7 @@ int main()
|
||||
averageNumberOfParts += 1.0 * (cur_time - last_time) * data_parts.size();
|
||||
if (cur_time > total_time) break;
|
||||
updateStat(cur_time);
|
||||
iter ++;
|
||||
++iter;
|
||||
if (iter % 3000 == 0)
|
||||
{
|
||||
printf("Current time: %d\n", cur_time);
|
||||
|
Loading…
Reference in New Issue
Block a user