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 个月前515 查看次数
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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则