Skip to content

Autocomplete after INNER JOIN does not suggest available tables #1646

Closed

Description

@gkjoyes

What happened?

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

  1. Open a MySQL connection.

  2. Create or use multiple tables (for example: happiness_scores, country_stats, and inflation_rates).

  3. 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
    
  4. 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.

Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions