【StarRocks版本】2.2.8
【建表语句】
【问题】
表中部分列如union_id,部分有值,部分值为null
但查询时:
select count() from tb where union_id is not null; – 结果为表总条数
select count() from tb where union_id is null; – 结果为0
select * from tb where union_id is not null limit 1; – 查询出一条union_id值为null的数据