Docs
Docs /SQL Editor /Auto-completions
SQL EditorCompletions

Auto-completions

The dropdown that opens as you type. It knows where the cursor is in the statement, so after SELECT it lists columns and aggregates, after FROM it lists tables, and after a dot it lists what's inside the thing before the dot.

after SELECT: * first, then keywords and aggregate functions
1
SELECT 
* Select all columns
DISTINCT
COUNT
AVG
SUM
MAX
MIN
COUNTIF
STRING_AGG
ARRAY_AGG

Opening, accepting, dismissing

ActionKey
OpenAppears as you type; CtrlSpace opens it anywhere
AcceptTab or Enter
Move
DismissEsc

Typing a dot always opens the list, and so do (, =, comparison and arithmetic operators, ' and " (see value suggestions), and a space when there are columns or tables to offer.

Ghost text can be visible at the same time as the dropdown. Tab takes the ghost text; the arrow keys take the dropdown. See ghost completions.

What’s in the list

The list changes with the clause the cursor is in. Each kind has its own icon and a short detail on the right.

Keywords and phrases

Multi-word keywords complete as one item — GRO gives GROUP BY, LEF gives LEFT JOIN, ORD gives ORDER BY.

12
SELECT * FROM `ace-analytics.warehouse.events`
GRO
GROUP BY SQL Phrase

On an empty line the list starts with statement keywords, a SELECT statement snippet, and functions that match what you’ve typed:

1
S
SELECT SQL Keyword
SELECT statement
SAFE_PARSE_DATE
SAFE_CAST
SUBSTR
SPLIT

Tables

After FROM and JOIN: tables from the projects you’ve connected, as full project.dataset.table paths, plus CTEs defined earlier in the query. Type any part of the path to filter — events matches ace-analytics.warehouse.events. Dot-by-dot navigation through project → dataset → table is covered in hierarchical completions.

Columns

Once a table is in the FROM clause, its columns appear in SELECT, WHERE, GROUP BY, ORDER BY, and ON. The detail shows the column’s type.

1
SELECT * FROM `ace-analytics.warehouse.fact_mot_test` WHERE 
mot_test_id mot_test_id: STRING
vehicle_id STRING
completed_date DATE
completed_timestamp TIMESTAMP
data_source STRING
defects ARRAY<STRUCT>
expiry_date DATE
make STRING
odometer INT64

No FROM yet means no columns — Querylab.io never loads every table in a project to guess. Write the FROM first, or use the ghost text after SELECT to fill it in.

STRUCT fields and ARRAY elements

A dot after a STRUCT column lists its fields. Without the dot, the list already includes two levels of nested fields (device.category, geo.country), so you can type country and let filtering find geo.country.

1
SELECT device.
FROM `ace-analytics.warehouse.events`
category STRING
operating_system STRING
language STRING
is_limited_ad_tracking BOOL

After UNNEST(event_params) AS p, p. lists the element’s fields.

Functions and signature help

Functions complete with their parentheses. Typing ( or , inside a call opens signature help with the current parameter in bold:

1
SELECT DATE_DIFF(completed_date, expiry_date, 
DATE_DIFF(date_expression_a, date_expression_b, date_part)
Gets the number of unit boundaries between two DATE values. date_part: DAY, WEEK, MONTH, QUARTER, YEAR.

Namespaced functions chain the same way as tables: ML., SAFE., NET., AI. each open their own list.

Values

Inside a comparison (WHERE country = '¦') the list holds real values from that column, sampled at no cost. That has its own page: value suggestions.

Turning it off or tuning it

Settings → Editor → SQL Editor → Completions (also listed under Settings).

Completions
Auto-completion
Choose when completion suggestions appear. Dot notation (table.column) always triggers completions.
Automatic (show as you type)
Manual (Ctrl+Space only)
Chain completionsAutomatically show next completions after accepting keywords or tables (e.g., FROM → show tables, users → show columns)
Enable ghost completionsShow inline suggestions that you can accept with Tab
Enable INFORMATION_SCHEMA completionsShow INFORMATION_SCHEMA prefix and tables in completions (e.g., dataset.INFORMATION_SCHEMA.TABLES)
Enable BigFunctionsShow community BigQuery UDFs (150+ functions) in completions
Completion style
How keywords and functions are filtered in autocomplete suggestions
Smart (context-aware)
Show keywords and functions based on SQL context
  • Auto-completion (default Automatic): Manual opens the list only on CtrlSpace or a dot.
  • Chain completions (default off): after you accept FROM or a table name, the next list opens by itself. Dot navigation chains regardless of this setting.
  • Enable INFORMATION_SCHEMA completions (default on): adds INFORMATION_SCHEMA after a dataset or region, and its views after that.
  • Enable BigFunctions (default off): adds the bigfunctions namespace. See hierarchical completions.
  • Completion style (default Smart (context-aware)): Permissive (show all) lists every keyword and function everywhere and leaves filtering to you.

A separate Identifier Formatting option chooses whether accepted table names get backticks always or only when needed (reserved words, dashes, special characters).