mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Add Const column test cases for mapContains/Keys/Values
This commit is contained in:
parent
143b84240e
commit
0f05b0ac9a
@ -177,6 +177,8 @@ public:
|
||||
return std::make_shared<DataTypeUInt8>();
|
||||
}
|
||||
|
||||
bool useDefaultImplementationForConstants() const override { return true; }
|
||||
|
||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr & result_type, size_t input_rows_count) const override
|
||||
{
|
||||
const ColumnMap * col_map = typeid_cast<const ColumnMap *>(arguments[0].column.get());
|
||||
|
@ -17,4 +17,5 @@
|
||||
[1000]
|
||||
[1001]
|
||||
[1002]
|
||||
{'aa':4,'44':5} ['aa','44'] [4,5]
|
||||
{'aa':4,'bb':5} ['aa','bb'] [4,5]
|
||||
{'aa':4,'bb':5} 1 0
|
||||
|
@ -23,4 +23,5 @@ drop table if exists table_map;
|
||||
|
||||
|
||||
-- Const column
|
||||
select map( 'aa', 4, '44' , 5) as c, mapKeys(c), mapValues(c);
|
||||
select map( 'aa', 4, 'bb' , 5) as m, mapKeys(m), mapValues(m);
|
||||
select map( 'aa', 4, 'bb' , 5) as m, mapContains(m, 'aa'), mapContains(m, 'k');
|
||||
|
Loading…
Reference in New Issue
Block a user