我對retweet_count 即鳴叫的基礎上擁有最高retweet_count將是1等上....在蜂巢
這裏是選表發現蜂巢中排名前10位的趨勢鳴叫細節
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 text
from election
where retweeted_status.retweet_count IN
(select retweeted_status.retweet_count as zz
from election
order by zz desc
limit 10);
它返回我一樣鳴叫的10倍。 (TWEET-ABC, TWEET-ABC, TWEET-ABC, 。 。 。 TWEET-ABC)
因此,我所做的就是打破嵌套查詢,當我運行內部查詢
select retweeted_status.retweet_count as zz
from election
order by zz desc
limit 10
它返回10個不同的值(1210,1209,1208,1207,1206,.... 1201)
後來,當我跑我的外部查詢
select text
from election
where retweeted_status.retweet_count
IN (1210,1209,1208,1207,1206,....1201);
的結果是相同的10個鳴叫 (TWEET-ABC, TWEET-ABC, TWEET-ABC, 。 。 。 TWEET-ABC)
我的查詢邏輯有什麼問題?
林不熟悉的鳴叫和再鳴叫......但也許你有最銳推'{鳴叫-ABC,轉推1209}',然後你再轉推你'{tweet- abc,retweet 1210}'所以你最轉發的是一樣的......只是在增長 –
你看過我的評論嗎?任何惡意?向我們顯示示例數據 –