How to send pyspark results to results.json in Athena Spark start_calculation_execution?

0

If I try to return the dataframe or use json.dumps(df) in Athena Spark start_calculation_execution codeBlock, they results appear in stdout file in S3 folder for the session and query execution. How do I make it appear in the results.json instead? It appears that the results.json is always empty ({}). And the stdout is always escaping the contents which is creating blockers downstream and I am not sure if that is the right place to store execution results.

Faiz
preguntada hace 5 meses247 visualizaciones
No hay respuestas

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