lava-oushudb-dt-sql-parser/test/parser/hive/syntax/abortStatement.test.ts

17 lines
382 B
TypeScript
Raw Normal View History

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