Open pan3793 opened 8 months ago
This ticket is for Spark, can we achieve a similar functionality in other engines? cc @YesOrNo828 @iodone @Yikf
The Trino engine currently does not support an API for keyword retrieval.
Hi @iodone , I found a newer commit that provided the API, but I didn't track its previous status, FYI: https://github.com/trinodb/trino/blob/master/core/trino-grammar/src/main/java/io/trino/grammar/sql/SqlKeywords.java#L31
It appears that the trino-cli
has used this API, rather than the sql keyword information provided by the trino server.
Hi @iodone , I found a newer commit that provided the API, but I didn't track its previous status, FYI: https://github.com/trinodb/trino/blob/master/core/trino-grammar/src/main/java/io/trino/grammar/sql/SqlKeywords.java#L31
Code of Conduct
Search before asking
Describe the feature
SPARK-43119(Spark 3.5.0) added a
SQLKeywordUtils.keywords
to preserve all SQL keywords, and return such value throughGetInfo#CLI_ODBC_KEYWORDS
, we can do similar things at the Kyuubi side.Motivation
No response
Describe the solution
No response
Additional context
No response
Are you willing to submit PR?