ClickHouse/src/Analyzer/SetUtils.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
599 B
C++
Raw Normal View History

2022-07-22 15:09:56 +00:00
#pragma once
#include <Core/Settings.h>
#include <DataTypes/IDataType.h>
#include <QueryPipeline/SizeLimits.h>
namespace DB
{
class Set;
using SetPtr = std::shared_ptr<Set>;
2023-06-22 14:23:04 +00:00
/** Get set elements for constant part of IN subquery.
2022-07-22 15:09:56 +00:00
* 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));
*/
2023-06-22 14:23:04 +00:00
Block getSetElementsForConstantValue(const DataTypePtr & expression_type, const Field & value, const DataTypePtr & value_type, bool transform_null_in);
2022-07-22 15:09:56 +00:00
}