Bypassing AWS Athena "Query Exhausted Resources" When Performing Geospatial Operations

The Problem If you work with Amazon Web Services (AWS) Athena SQL, chances are that you&rsquo;ve encountered the following error: Query exhausted resources at this scale factor This generally indicates that you are hitting memory limits on the Athena cluster that runs your query (reference 1, reference 2, reference 3). AWS provides several performance optimization strategies, including data…