lava-oushudb-dt-sql-parser/test/parser/flinksql/syntax.test.ts
2020-10-23 17:52:43 +08:00

20 lines
540 B
TypeScript

import SQLParser from '../../../src/parser/flinksql';
describe('FlinkSQL Syntax Tests', () => {
const parser = new SQLParser();
test('Test simple CreateTable Statement', () => {
const sql = `
CREATE TABLE Orders (
user BIGINT
) WITH (
"connector" = "kafka",
"scan.startup.mode" = "earliest-offset"
);
`;
const result = parser.validate(sql);
console.log(result);
expect(result.length).toBe(0);
});
});