怎样才能指定分区查询

请问这个sql语句报错了,要怎样才能指定分区呢?

select count(*) from loadTable('dfs://db1','table1','202311M')
请先 登录 后评论

1 个回答

wale

 用where条件指定分区,类似下面:

select count(*) from loadTable('dfs://db1','table1') where month(date)=2023.11M
请先 登录 后评论