AWS Athena: use SELECT ... LIKE doesn't return any result

0

I have created a table using AWS Glue crawler and ran a test query: Enter image description here As you can see, the first row has the word "cool" in column 'tweet'. However, when I use SELECT ... WHERE ...LIKE to find that row, nothing returns. Enter image description here Any idea why this is happening?

yuan
已提問 1 個月前檢視次數 514 次
2 個答案
0

Can yo try to remove the single quote around tweet?

profile pictureAWS
專家
已回答 1 個月前
0

I use double quotes for column names and single for values

SELECT * FROM tweets WHERE "tweet" LIKE '%cool%';
profile picture
專家
已回答 1 個月前
profile picture
專家
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南