ELVIA analysis of: SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applications — Problem 2: Removing DISTINCT with text operations changes valid SQL values and query structure
Original paper: Li, Jinyang; Li, Xiaolong; Qu, Ge; Jacobsson, Per; Qin, Bowen; Hui, Binyuan; Si, Shuzheng; Huo, Nan; Xu, Xiaohan; Zhang, Yue; Tang, Ziwei; Li, Yuanshuai; Widjaja, Florensia; Zhu, Xintong; Zhou, Feige; Huang, Yongfeng; Papakonstantinou, Yannis; Ozcan, Fatma; Ma, Chenhao; Cheng, Reynold. SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applications. Advances in Neural Information Processing Systems, vol. 38, 2025, pp. 97085–97120. https://doi.org/10.52202/085713-3247
Source version: arXiv:2506.18951v4 (24 January 2026)
Source location: Released PostgreSQL utility remove_distinct, lines 32–61; retained conference and current-source versions.
Question: What does the recorded analysis establish about “Removing DISTINCT with text operations changes valid SQL values and query structure”?
Bounded finding:
Removing DISTINCT with text operations changes valid SQL values and query structure.
Recorded check:
The current helper applies a case-insensitive whole-word regular expression to the entire SQL string.
Thus the valid statement SELECT 'DISTINCT' AS value is changed into SELECT '' AS value. This changes a string value, rather than a SQL keyword. The former split/join behavior that collapsed double spaces or moved a statement into a line comment has been fixed and is excluded from the current defect. Actual benchmark incidence remains unknown.
Case-wide limitations:
- No author-provided program, training procedure, model inference or wet-lab experiment was executed in this review.
- Historical execution results are retained only with that attribution; a source-level defect alone does not identify the program or configuration used for the published experiments.
- No author contact, adoption, independent human scientific review or novelty determination is established.
- The findings apply only to the identified claims, source versions and stated assumptions; they do not certify or invalidate the entire paper.
Source problem ID: p2
Source report index: 2
Original source excerpts (verbatim):
We begin with raw StackOverflow issue data and enforce two principles against data overlap: (i) any issue used to construct BIRD-CRITIC tasks is excluded from SIX-GYM, and (ii) SQL-Rewind operates only on the 12 databases in the training databases of BIRD-SQL, while BIRD-CRITIC evaluation is confined to databases drawn solely from the BIRD-SQL dev set.
Source: arXiv:2506.18951v4 (24 January 2026)
Locator: PDF p. 5
Source PDF SHA-256: 46d803ed78e06cf51240970f4c7f80dd1ab082adb257afa4fbc0fc54a90dc547
Review status: Independent review pending
Case: neurips2025-0142-swe-sql-illuminating-llm-pathways-to-solve-user-sql-issues-in-r
Revision: 1
Record created: 2026-10-21T07:13:27.568206+00:00
Permalink: https://elvia-atlas.org/atlas/cases/neurips2025-0142-swe-sql-illuminating-llm-pathways-to-solve-user-sql-issues-in-r.html#problem-2
Versioned public record: https://elvia-atlas.org/atlas/evidence/neurips2025-0142-swe-sql-illuminating-llm-pathways-to-solve-user-sql-issues-in-r/records/neurips2025-0142-swe-sql-illuminating-llm-pathways-to-solve-user-sql-issues-in-r.r1.json
Canonical record SHA-256: 1a61fbbffe55aa21850964a5b700710b5bd9b77cc81dbf2ccca0d74f7c24e468
The page follows the latest revision; the versioned record identifies this snapshot.
Analysis citation:
Minhao Liu. ELVIA analysis of: SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applications — Problem 2: Removing DISTINCT with text operations changes valid SQL values and query structure. ELVIA, 2026. https://elvia-atlas.org/atlas/cases/neurips2025-0142-swe-sql-illuminating-llm-pathways-to-solve-user-sql-issues-in-r.html#problem-2
Case neurips2025-0142-swe-sql-illuminating-llm-pathways-to-solve-user-sql-issues-in-r; revision 1; Independent review pending. Assessment is limited to the inspected claims. Versioned record: https://elvia-atlas.org/atlas/evidence/neurips2025-0142-swe-sql-illuminating-llm-pathways-to-solve-user-sql-issues-in-r/records/neurips2025-0142-swe-sql-illuminating-llm-pathways-to-solve-user-sql-issues-in-r.r1.json
Source claim (paraphrase):
The conference remove_distinct, lines 32–61 of the PostgreSQL utility, splits each complete SQL string on whitespace, removes tokens equal to distinct, and joins the remainder with single spaces. The current version instead uses a case-insensitive regular expression replacing every whole-word occurrence of DISTINCT with an empty string. The authors’ README explicitly announces an evaluation-code update to this function on \(8\) January 2026.
Full finding analysis:
The current helper applies a case-insensitive whole-word regular expression to the entire SQL string.
Thus the valid statement SELECT 'DISTINCT' AS value is changed into SELECT '' AS value. This changes a string value, rather than a SQL keyword. The former split/join behavior that collapsed double spaces or moved a statement into a line comment has been fixed and is excluded from the current defect. Actual benchmark incidence remains unknown.
Finding and scope:
Removing DISTINCT with text operations changes valid SQL values and query structure.
Displayed problem statement:
The conference remove_distinct, lines 32–61 of the PostgreSQL utility, splits each complete SQL string on whitespace, removes tokens equal to distinct, and joins the remainder with single spaces. The current version instead uses a case-insensitive regular expression replacing every whole-word occurrence of DISTINCT with an empty string. The authors’ README explicitly announces an evaluation-code update to this function on \(8\) January 2026.
Source PDF SHA-256: 46d803ed78e06cf51240970f4c7f80dd1ab082adb257afa4fbc0fc54a90dc547
Repair verification: pending
Author adoption: not_requested