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
posta 2 mesi fa520 visualizzazioni
2 Risposte
0

Can yo try to remove the single quote around tweet?

profile pictureAWS
ESPERTO
con risposta 2 mesi fa
0

I use double quotes for column names and single for values

SELECT * FROM tweets WHERE "tweet" LIKE '%cool%';
profile picture
ESPERTO
con risposta 2 mesi fa
profile picture
ESPERTO
verificato 2 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande