How to select rows with one of two column values can't be null?

For example: hive> select mid, tag1, tag2, dt from message_use_tags where dt="20211107" and (tag1 != ” or tag2 != ‘NULL’) limit 50; I want to specify: date = ‘20211107’ tag1 and tag2 can’t be both empty string at the same time. One of them can be empty. However, the following doesn’t achieve the purpose: tag1… Read More How to select rows with one of two column values can't be null?