DTStack / dt-sql-parser

SQL Parsers for BigData, built with antlr4.
https://dtstack.github.io/monaco-sql-languages/
MIT License
297 stars 94 forks source link

[Feature Request]: whereClause can complete with column name #322

Open liuxy0551 opened 4 months ago

liuxy0551 commented 4 months ago

Topic

Enhance existing features

Description

SparkSQL、HiveSQL and MySQL, and others

like SELECT col1 FROM t1 WHERE col2 = 'any';

liuxy0551 commented 3 months ago

SELECT columnName、ORDER BY columnName、SORT BY columnName、GROUP BY columnName 等使用到 columnName 的地方,有些使用了 expression,不好提示,不好在使用 expression 的地方都提示 columnName。

思路:在自动补全的地方判断哪里是 columnName