You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If someone could point me in the right direction why it suggests tablePropertyList instead of tablePropertyKey, I could make a PR contribution, so that the library will be able to provide contextual information about table properties. This can become very useful to implement custom suggestions later on in editors like monaco. E.g.: suggest list of Kafka topics from some external storage if tableProperyKey = 'topic'.
The text was updated successfully, but these errors were encountered:
When the antlr4-c3 engine collects rule context, if it matches a rule defined by 'preferredRules', it will directly return it.
So you need to remove FlinkSqlParser.RULE_tablePropertyList and FlinkSqlParser.RULE_tableProperty, they will include in ruleList when c3 collect RULE_tablePropertyKey .
Topic
Enhance existing features
Description
Greetings.
Current Flink parser has defined rules for:
Would it be possible to expose them as?
============================
I have tried to modify the
prefferedRules
forFlinkSQL
, e.g.:and then updated
processCandidates
with:Then ran a small test:
But for some reason
getSuggestionAtCaretPosition
returns only the RULE_tablePropertyList, even if the carret is on tablePropertyKey.Debug output:
If someone could point me in the right direction why it suggests tablePropertyList instead of tablePropertyKey, I could make a PR contribution, so that the library will be able to provide contextual information about table properties. This can become very useful to implement custom suggestions later on in editors like monaco. E.g.: suggest list of Kafka topics from some external storage if tableProperyKey = 'topic'.
The text was updated successfully, but these errors were encountered: