...
Page properties |
---|
...
|
...
|
...
...
|
POC Demo: https://asciinema.org/a/446247?speed=3.0
...
JIRA: here (<- link to https://issues.apache.org/jira/browse/FLINK-XXXX)
Released: <Flink Version>
Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).
...
Code Block | ||||
---|---|---|---|---|
| ||||
public enum BuiltInDialect { DEFAULT("FlinkSQLDefaultDialect", () -> SqlAbstractParserImpl.getSql92ReservedWordskeywords(), '`', '\'', "\"", Pair.of("/*", "*/"), Pair.of("/*+", "*/"), "--"); private final Supplier<Set<String>> keywords; private final char quote; private final char sqlIdentifierQuote; private final Pair<String, String> blockComments; private final Pair<String, String> hints; private final String lineComments; ... } |
So that means that adding a new dialect should be relatively simple.
Prompts
LineReader#readLine among other arguments has prompt and right prompt value.
Widgets
Jline allows to define widgets implementing org.jline.reader.Widget and bind them to key strokes.
...
Supported prompt options (both for left and right prompts)
Option | Description |
---|---|
\c | Current catalog |
\d | Current database |
\:property_name : | The value of Flink property_name property |
\[ ... \] | Prompts can contain terminal control characters which, for example, change the color, background, or style of the prompt text. These non-printing control characters must be designated as invisible by surrounding them with \[ and \]. Multiple pairs of these can occur within the prompt. |
\{...\} | Datetime pattern to convert current datetime. Compatible with Java’s SimpleDateFormat. |
\D | The full current date (yyyy-MM-dd HH:mm:ss.SSS) |
\m | Minutes of the current time |
\O | The current month in three-letter format (Jan, Feb, …) |
\o | The current month in numeric format |
\P | am/pm |
\R | The current time, in 24-hour military time (0–23) |
\r | The current time, standard 12-hour time (1–12) |
\s | Seconds of the current time |
\w | The current day of the week in three-letter format (Mon, Tue, …) |
\Y | The current year, four digits |
\y | The current year, two digits |
\\ | A literal \ backslash character |
\x |
|
Compatibility, Deprecation, and Migration Plan
...