sql查询语句中,如果 where 条件带 st_intersects,那么 sample 不生效

【 使用环境 】生产环境
【 OB or 其他组件 】OBServer
【 使用版本 】v4.2.5 BP3
【问题描述】

select xxx from table sample(5) where xxx=xxx
语句中,如果 where 条件是常规字段的过滤,sample 正确生效,如果 where 条件中存在 gis 计算,则 sample 不生效。

@辞霜

这边查看OceanBase 的文档中,并没有名为 SAMPLE(5) 的函数

有可能当做 别名没 ???? explain 看下呢?

文档上有,并且经过实际验证,where 条件不带 gis 计算的话,是正常生效的

image