fix hive insert syntax

This commit is contained in:
HSunboy
2020-03-26 11:47:47 +08:00
parent 364dc5fcae
commit 0c5f6164f4
7 changed files with 697 additions and 692 deletions

View File

@ -76,6 +76,11 @@ describe('syntax test', () => {
const result = parser.parseSyntax([sql, ''], dtSqlParser.parser.sqlType.Hive);
expect(result).toBe(false);
});
test('insert', () => {
const sql = `insert into table user1 values (1, 'a'), (2, 'b')`;
const result = parser.parseSyntax([sql, ''], dtSqlParser.parser.sqlType.Hive);
expect(result).toBe(false);
});
test('select table should not be null', () => {
const sql = 'select id,name from ';
const result = parser.parseSyntax([sql, ''], dtSqlParser.parser.sqlType.Hive) as SyntaxResult;