You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SQL Auto-completion Does Not Work for Aliases from Derived Tables #1697
When writing a query that joins a derived table (subquery) with an alias, auto-completion does not suggest columns for the derived table alias.
For example, in the query below, auto-completion works for hs.* but not for ahs.*.
Reproduction Query
SELECT YEAR,
hs.country,
happiness_score,
ahs.avg_happiness_scoreFROM happiness_scores hs
LEFT JOIN (
SELECT country,
AVG(happiness_score) AS avg_happiness_score
FROM happiness_scores
GROUP BY country
) ahs
ONhs.country=ahs.country;
Expected Behavior
Auto-completion should recognize the derived table alias ahs and suggest:
Activity