mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 20:12:02 +00:00
25 lines
614 B
C++
25 lines
614 B
C++
#pragma once
|
|
|
|
#include <Core/Block.h>
|
|
|
|
#include <memory>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class IDataType;
|
|
using DataTypePtr = std::shared_ptr<const IDataType>;
|
|
|
|
class Set;
|
|
using SetPtr = std::shared_ptr<Set>;
|
|
|
|
/** Get set elements for constant part of IN subquery.
|
|
* Throws exception if parameters are not valid for IN function.
|
|
*
|
|
* Example: SELECT id FROM test_table WHERE id IN (1, 2, 3, 4);
|
|
* Example: SELECT id FROM test_table WHERE id IN ((1, 2), (3, 4));
|
|
*/
|
|
Block getSetElementsForConstantValue(const DataTypePtr & expression_type, const Field & value, const DataTypePtr & value_type, bool transform_null_in);
|
|
|
|
}
|