metabase / metabase/metabase

We should be moving the cursor to the problematic line when there's an error in the SQL

Open
#78,558 0 comments 0 reactions 0 assignees View on GitHub
.Needs Triage .Team/QueryingPlatform Priority:P3 Type:New Feature
Dominant language
Clojure
Stars
49.3k
Forks
6.8k
Avg merge
1d 13h
Merged PRs (30d)
653

Description

**What problem will this feature request solve?**
Right now on our SQL editor, if there's an error on the SQL the database will send us the error and we're hoping the user to locate the line and fix it.

**Describe the solution you'd like.**
We should be moving the cursor to the line where the error is! much like every single other SQL IDE out there

**How does this feature request impact you?**
It will reduce so much frustration from SQL heavy users that need to find the offending line

**Additional information**
We should have a SQL parsing endpoint that's super fast to make this happen

Contributor guide

Open the contributing guide

Research direction

Start by tracing the SQL editor's handling of database errors and how the reported line could reach the cursor. The issue also proposes a fast SQL parsing endpoint, so determine whether that is needed for the editor flow. Done means the cursor moves to the problematic SQL line when an error is returned.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql
Domain
api, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.