Adaptive Query Execution (AQE): How Spark Re-Optimizes Queries at Runtime

Two Spark queries can return exactly the same result.