遇到了查询doris es外表 需要保证某个字段不为空的情况,经过多次实验,查询方法如下
select *
from table
where field1 = '' and field2 = ''
and esquery(`field3`,'{
"wildcard": {
"field3": {
"value": "*"
}
}
}')
order by xxx
本文介绍了在Doris中查询ES外表时,如何确保特定字段不为空的场景。通过示例SQL展示了查询field1和field2为空但field3不为空字符串的方法,并提到可以结合排序和限制条件使用。同时,建议参考Doris on ES的官方文档了解更多ES查询语句。
遇到了查询doris es外表 需要保证某个字段不为空的情况,经过多次实验,查询方法如下
select *
from table
where field1 = '' and field2 = ''
and esquery(`field3`,'{
"wildcard": {
"field3": {
"value": "*"
}
}
}')
order by xxx
1231
6372
1497
2万+

被折叠的 条评论
为什么被折叠?