added the test and comment

This commit is contained in:
myrrc 2020-09-09 15:52:44 +03:00
parent 91edd2bba1
commit a8f5d9e70f
3 changed files with 7 additions and 0 deletions

View File

@ -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(); }

View File

@ -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;