mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
30 lines
943 B
C++
30 lines
943 B
C++
#pragma once
|
|
|
|
#include <Core/Block.h>
|
|
#include <Core/NamesAndTypes.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
namespace Nested
|
|
{
|
|
std::string concatenateName(const std::string & nested_table_name, const std::string & nested_field_name);
|
|
|
|
std::pair<std::string, std::string> splitName(const std::string & name);
|
|
|
|
/// Returns the prefix of the name to the first '.'. Or the name is unchanged if there is no dot.
|
|
std::string extractTableName(const std::string & nested_name);
|
|
|
|
/// Replace Array(Tuple(...)) columns to a multiple of Array columns in a form of `column_name.element_name`.
|
|
Block flatten(const Block & block);
|
|
|
|
/// Collect Array columns in a form of `column_name.element_name` to single Array(Tuple(...)) column.
|
|
NamesAndTypesList collect(const NamesAndTypesList & names_and_types);
|
|
|
|
/// Check that sizes of arrays - elements of nested data structures - are equal.
|
|
void validateArraySizes(const Block & block);
|
|
}
|
|
|
|
}
|