mirror of
https://github.com/apache/superset.git
synced 2026-07-26 16:42:32 +00:00
routine_mode only triggered when FUNCTION appeared immediately after WITH, so a WITH clause defining a regular CTE before the inline UDF (e.g. `WITH cte AS (...), FUNCTION f() ...`) never entered routine mode, letting semicolons inside the function body incorrectly split the statement. Detect FUNCTION as a fresh WITH-list entry whenever it follows WITH or a top-level comma, not just at the very start. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>