Error While querying in Athena query editor.

0

Dears,

I have a file in S3, and while querying got the following error: Need your suggestion to get this fixed.

**Qry **: SELECT * FROM "de-dup-db"."input_data" limit 10;

**Error **: SYNTAX_ERROR: line 1:8: Column 'name' cannot be resolved This query ran against the "de-dup-db" database, unless qualified by the query. Please post the error message on our forum or contact customer support with Query Id: c7dde2fc-69be-4814-831f-71448486d4cb

Regards, Keshava

preguntada hace 2 años3936 visualizaciones
1 Respuesta
0

Can you execute SHOW CREATE TABLE de-dup-db.input_data; to validate that the column is called name and that there are no additional characters or encodings?

This error is typically caused when the column does not exist. If you think it should exist, there may be a misspelling or extra character due to encoding.

profile pictureAWS
EXPERTO
Chris_G
respondido hace 2 años
  • I Executed the above script, got an error as : "Queries of this type are not supported"

    Following are the columns: name, id, age, salary

  • Also these tables are created via AWS Glue, hence data source should be AwsDataCatalog.

  • In the Athena Query Editor, can you click the 3 dots next to the table and click "Generate Table DDL"?

  • Even that's not coming up Chris. Error thrown out. Gave all the relevant data lake permissions on databse, tables as well as on the columns. Am observing this for the first time.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas