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

17 lines
375 B
TypeScript
Raw Normal View History

import { HiveSQL } from '../../../filters';
2023-07-10 10:21:16 +08:00
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);
});
});
});