Skip to content

Fix: Do not attach correlation_id for Athena queries#4935

Merged
VaggelisD merged 2 commits intomainfrom
vaggelisd/fix_athena_correlation_id
Jul 8, 2025
Merged

Fix: Do not attach correlation_id for Athena queries#4935
VaggelisD merged 2 commits intomainfrom
vaggelisd/fix_athena_correlation_id

Conversation

@VaggelisD
Copy link
Contributor

Athena does not seem to deal with comments well, e.g:

>>> self._execute('/* test */ DESCRIBE foo')
pyathena.error.OperationalError: FAILED: ParseException line 1:0 cannot recognize input near '/' '*' 'test'

This can cause base.py::table_exists() to fail silently (due to the try/catch) and thus not drop tables when needed.

@VaggelisD VaggelisD merged commit 40bb6c8 into main Jul 8, 2025
27 checks passed
@VaggelisD VaggelisD deleted the vaggelisd/fix_athena_correlation_id branch July 8, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants