mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
added the test and comment
This commit is contained in:
parent
91edd2bba1
commit
a8f5d9e70f
@ -171,6 +171,10 @@ public:
|
||||
bool isNumeric() const override { return getDictionary().isNumeric(); }
|
||||
bool lowCardinality() const override { return true; }
|
||||
|
||||
/**
|
||||
* Checks if the dictionary column is Nullable(T).
|
||||
* So LC(Nullable(T)) would return true, LC(U) -- false.
|
||||
*/
|
||||
bool nestedIsNullable() const { return isColumnNullable(*dictionary.getColumnUnique().getNestedColumn()); }
|
||||
|
||||
const IColumnUnique & getDictionary() const { return dictionary.getColumnUnique(); }
|
||||
|
@ -80,3 +80,4 @@
|
||||
1
|
||||
1
|
||||
1
|
||||
2
|
||||
|
@ -217,4 +217,6 @@ SELECT count() FROM lc_nullable WHERE has(date_time, toDateTime('1970-01-01 03:0
|
||||
SELECT count() FROM lc_nullable WHERE has(str, '100');
|
||||
SELECT count() FROM lc_nullable WHERE has(fixed_string, toFixedString('100', 5));
|
||||
|
||||
SELECT count() FROM lc_nullable WHERE has(date, toDate(has(u64, 1), '1970-01\002'));
|
||||
|
||||
DROP TABLE IF EXISTS lc_nullable;
|
||||
|
Loading…
Reference in New Issue
Block a user