DuckDB requires all selected columns to be aggregate expressions when there is no GROUP BY. latest.max_date is a scalar CTE value but still needs ANY_VALUE() wrapping to satisfy the binder. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The file is empty.