Fix style

This commit is contained in:
Igor Nikonov 2022-08-02 17:58:31 +00:00
parent 62baeb4c2a
commit 8eafca65c9
2 changed files with 3 additions and 5 deletions

View File

@ -10,11 +10,11 @@
namespace DB
{
static bool isSortingPreserved(const SortDescription& sort_description, const ActionsDAGPtr& actions_dag)
static bool isSortingPreserved(const SortDescription & sort_description, const ActionsDAGPtr & actions_dag)
{
for(const auto& column_sort_desc: sort_description)
for (const auto & column_sort_desc : sort_description)
{
const auto* node = actions_dag->tryFindInIndex(column_sort_desc.column_name);
const auto * node = actions_dag->tryFindInIndex(column_sort_desc.column_name);
if (node && node->type == ActionsDAG::ActionType::ALIAS)
{
// todo: check if alias keep order

View File

@ -5,6 +5,4 @@ INSERT INTO optimize_sorting SELECT number, number%5, number%2 from numbers(10);
SELECT a as a from optimize_sorting order by a;
SELECT sipHash64(a) as a from optimize_sorting order by a;
-- { echoOff }
DROP TABLE IF EXISTS optimize_sorting;