在配置单元查询中使用不等号

RAV*_*ADA 2 hive

我需要在我的hive查询中使用带有分区的'!='符号.我试过类似的东西

from sample_table
insert overwrite table sample1
partition (src='a')
select * where act=10
insert overwrite table sample1
partition (src!='a')
select * where act=20
Run Code Online (Sandbox Code Playgroud)

但它在'!='符号处显示错误.我该怎么替换!=

Bal*_*man 10

尝试在配置单元中使用rlike/regex函数来指定条件.

我想你也可以使用not operator <>not!=