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
Autocomplete after INNER JOIN does not suggest available tables #1646
While using TablePlus with MySQL, I noticed an issue with SQL autocomplete when writing queries that contain multiple JOIN clauses.
After typing INNER JOIN, I would expect the autocomplete dropdown to suggest available tables from the current database/schema so that I can quickly select a table name and continue writing the join condition.
Instead, the autocomplete only shows columns from tables that are already referenced in the query.
Steps to Reproduce
Open a MySQL connection.
Create or use multiple tables (for example: happiness_scores, country_stats, and inflation_rates).
Start writing a query similar to:
SELECT hs.year,
hs.country,
cs.continent,
cs.population,
ir.inflation_rate
FROM happiness_scores hs
INNER JOIN country_stats cs
ON hs.country = cs.country
INNER JOIN
Trigger autocomplete after INNER JOIN.
Current Behavior
The autocomplete popup only shows columns from tables that are already present in the query (e.g., hs.year, hs.country, cs.country, etc.).
Expected Behavior
After typing INNER JOIN, the autocomplete should prioritize or include available table names from the current database/schema, allowing users to quickly select the next table to join.
For example, suggestions could include:
inflation_rates
country_stats
happiness_scores
and other tables available in the connected database.
Environment
TablePlus Version: 0.50.0 (97)
Database: MySQL
OS: macOS 26.5
Chip: M4 Max
Additional Notes
A screenshot is attached showing the autocomplete suggestions after INNER JOIN, where only column names are displayed. Suggesting tables in this context would significantly improve the query-writing experience, especially when working with queries involving multiple joins.
Thank you for the great work on TablePlus and for considering this enhancement.
Activity
fix(editor): detect SQL clause at cursor so JOIN suggests tables (#1646…