mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
GetQueryExecution reported OutputLocation as a directory prefix (<base>/<queryId>/) while the result was written to results.csv inside it, so a client GET on the reported location failed with NoSuchKey. Real Athena names result files <QueryID>.csv and saves them directly to the result location for API queries. Resolve the location to <base>/<queryId>.csv and write the CSV to exactly that key. The reader lists by prefix, so it finds the new form and still reads executions persisted with the old prefix form. Closes #1752