opensearch-project / sql

Query your data using familiar SQL or intuitive Piped Processing Language (PPL)
https://opensearch.org/docs/latest/search-plugins/sql/index/
Apache License 2.0
117 stars 134 forks source link

[FEATURE] Come up with a way to update/test grammar validation when updating spark version #3041

Open ykmr1224 opened 1 week ago

ykmr1224 commented 1 week ago

Is your feature request related to a problem? We implemented SQL grammar validation in SQL Plugin(https://github.com/opensearch-project/sql/pull/3039). As it's heavily depends on the grammar file structure, there is no automatic way to update when we update Spark version. Especially the function names are listed in the code, and we cannot detect even if new function is added in new Spark version.

What solution would you like? We need a mechanism to thoroughly test the grammar validation logic with spark version.

What alternatives have you considered? A clear and concise description of any alternative solutions or features you've considered.

Do you have any additional context?