AWS Athena - 不支持这种类型的查询[基本查询]

AWS Athena - Queries of this type are not supported [basic query]

我是 运行 以下查询,我得到了 'queries of this type are not supported'。

我做错了什么?

select 
t.pol_number,
t.pdb_id

from
static_filters T
where left(cast(t.pdb_id as string), 1) = '5'

limit 10

这两个字段都是整数

athena 对 left 一无所知所以使用 substr

可以看看here支持哪些功能

select 
    t.pol_number,
    t.pdb_id
from
    static_filters t
where substr((cast(t.pdb_id as string), 1,1) = '5'
limit 10

您的查询仍然需要,ORDER BY没有它限制就没有多大意义