feat(flinksql): add some lexer

This commit is contained in:
Erindcl
2020-10-23 17:52:43 +08:00
parent b7df08f012
commit 6082c2b151
11 changed files with 2281 additions and 1690 deletions

View File

@ -6,15 +6,14 @@ describe('FlinkSQL Syntax Tests', () => {
test('Test simple CreateTable Statement', () => {
const sql = `
CREATE TABLE Orders (
user BIGINT,
product STRING
user BIGINT
) WITH (
"connector" = "kafka",
"scan.startup.mode" = "earliest-offset"
);
`;
const result = parser.validate(sql);
console.log(result);
expect(result.length).toBe(0);
});
});