Interactive SQL query editor with schema browsing, autocomplete, and result visualization.
## Overview The Query Explorer is the primary SQL workbench within the DeltaForge GUI. Analysts, data engineers, and administrators use this page to write, execute, and save SQL queries against all catalog objects including Delta tables, file tables, database tables, and views. The editor integrates a Language Server Protocol (LSP) backend that provides schema-aware autocomplete, inline error diagnostics, and go-to-definition navigation. Query results are rendered in a high-performance virtual-scrolling grid capable of handling large result sets without excessive memory consumption. ## Key Features - **SQL editor with syntax highlighting.** Write queries in a full-featured code editor with DeltaForge SQL syntax highlighting, bracket matching, and line numbering. - **Schema-aware autocomplete (LSP).** Receive context-sensitive suggestions for table names, column names, functions, and keywords as you type. The LSP resolves suggestions against the live catalog metadata. - **Query result grid with virtual scrolling.** View query output in a tabular grid that renders only the visible rows, enabling smooth scrolling through millions of result rows. Columns are sortable and resizable. - **Save and organize queries.** Persist frequently used queries with a name and optional description. Organize saved queries into folders for team sharing and reuse. - **Query execution plan viewer.** Inspect the logical and physical execution plan for any query. Identify expensive operators, scan statistics, and push-down optimizations to guide performance tuning. ## Workflow 1. Open the Query Explorer from the Catalog sidebar or by selecting "Open in Query Explorer" from any table context menu. 2. Write or paste a SQL query in the editor. Use autocomplete to discover available tables and columns. 3. Execute the query and review results in the grid panel. 4. Inspect the execution plan tab to understand query performance characteristics. 5. Save the query for future reuse or share it with team members. 6. Iterate on the query by modifying predicates, joins, or projections and re-executing.