[英]AWS Athena - Queries of this type are not supported [basic query]
我正在运行以下查询,但收到“不支持此类型的查询”。
我究竟做错了什么?
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 一无所知所以使用 use substr
你可以在这里查看支持哪些功能
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
仍然没有多大意义
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.