mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 09:52:38 +00:00
Fix style
This commit is contained in:
parent
62baeb4c2a
commit
8eafca65c9
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user