test: hivesql abort syntax unit tests

This commit is contained in:
hayden 2023-07-10 10:21:16 +08:00
parent c6f6599126
commit faabeffe8a
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,16 @@
import HiveSQL from '../../../../src/parser/hive';
import { readSQL } from '../../../helper';
const parser = new HiveSQL();
const features = {
aborts: readSQL(__dirname, 'abort.sql'),
};
describe('Hive Abort Syntax Tests', () => {
features.aborts.forEach((ab) => {
it(ab, () => {
expect(parser.validate(ab).length).toBe(0);
});
});
});

View File

@ -0,0 +1 @@
ABORT TRANSACTIONS 0000007 0000008 0000010 0000015;