id bigint from deserializer
created_at string from deserializer
source string from deserializer
favorited boolean from deserializer
retweeted_status struct<text:string,user:struct<screen_name:string,name:string>,retweet_count:int> from deserializer
entities struct<urls:array<struct<expanded_url:string>>,user_mentions:array<struct<screen_name:string,name:string>>,hashtags:array<struct<text:string>>> from deserializer
text string from deserializer
user struct<screen_name:string,name:string,friends_count:int,followers_count:int,statuses_count:int,verified:boolean,utc_offset:int,time_zone:string,location:string> from deserializer
in_reply_to_screen_name string from deserializer
.
select id from election order by election.retweeted_status.retweet_count desc limit 10
此查询不起作用。错误为“semanticexception[error 10002]:行1:53无效列引用'retweeted\u status'”
select * from election order by election.retweeted_status.retweet_count desc limit 10
但这个查询是有效的
1条答案
按热度按时间ubby3x7f1#
查询按以下顺序执行
1 from子句
2 where子句
3 group by子句
4有从句
5选择子句
6订货条款
7限制
当我们从select子句获得结果集后执行order时,由于您没有在select子句中选择列,orderby子句将无法找到要执行操作的列引用。