mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 03:42:48 +00:00
21 lines
467 B
C++
21 lines
467 B
C++
#pragma once
|
|
|
|
#include <DataTypes/IDataType.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/** Knows the names and types of all possible virtual columns.
|
|
* It is necessary for engines that redirect a request to other tables without knowing in advance what virtual columns they contain.
|
|
*/
|
|
class VirtualColumnFactory
|
|
{
|
|
public:
|
|
static bool hasColumn(const String & name);
|
|
static DataTypePtr getType(const String & name);
|
|
|
|
static DataTypePtr tryGetType(const String & name);
|
|
};
|
|
|
|
}
|