File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
core/src/main/java/com/dtstack/flink/sql/table Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public abstract class AbsSourceParser extends AbsTableParser {
4242
4343 private static Pattern virtualFieldKeyPattern = Pattern .compile ("(?i)^(\\ S+\\ ([^\\ )]+\\ ))\\ s+AS\\ s+(\\ w+)$" );
4444 private static Pattern waterMarkKeyPattern = Pattern .compile ("(?i)^\\ s*WATERMARK\\ s+FOR\\ s+(\\ S+)\\ s+AS\\ s+withOffset\\ (\\ s*(\\ S+)\\ s*,\\ s*(\\ d+)\\ s*\\ )$" );
45- private static Pattern notNullKeyPattern = Pattern .compile ("(?i)(\\ w+)\\ s+(\\ w+)\\ s+NOT\\ s+NULL?$" );
45+ private static Pattern notNullKeyPattern = Pattern .compile ("(?i)^ (\\ w+)\\ s+(\\ w+)\\ s+NOT\\ s+NULL?$" );
4646
4747 static {
4848 keyPatternMap .put (VIRTUAL_KEY , virtualFieldKeyPattern );
Original file line number Diff line number Diff line change 11CREATE TABLE MyTable(
2- channel varchar not null,
3- pv INT,
2+ channel varchar as sss not null,
3+ pv INT not null ,
44 xctime bigint,
55 CHARACTER_LENGTH(channel) as timeLeng,
66 WATERMARK FOR xctime AS withOffset(xctime,1000)
You can’t perform that action at this time.
0 commit comments