snuyanzin opened a new pull request, #22063:
URL: https://github.com/apache/flink/pull/22063

   ## What is the purpose of the change
   
   This is syntax highlighting part of FLIP-189.
   Jline3 itself provides some basic api for syntax highlighting. The only 
thing that should be done is implementation of custom highlighter which is done 
within this PR.
   It highlights keywords, quoted string, quoted sql identifiers , comments, 
hints. 
   Keywords are hardcoded in resource file for flink and hive dialects.
   Sql identifiers quotes are different  for flink and hive dialect.
   It provides several color schemas and a widget which allows to switch 
between them pressing `alt-h` or `Esc-h` in case of Mac. 
   
   ## Verifying this change
   
   
_flink-table/flink-sql-client/src/test/java/org/apache/flink/table/client/cli/parser/SqlClientHighlighterTest.java_
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): ( no)
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: ( no)
     - The serializers: (yes )
     - The runtime per-record code paths (performance sensitive): ( no)
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: ( no)
     - The S3 file system connector: ( no)
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (yes)
     - If yes, how is the feature documented? (docs / JavaDocs)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to