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

17 lines
366 B
TypeScript
Raw Normal View History

import { HiveSQL } from 'src/parser/hive';
import { readSQL } from 'test/helper';
2023-07-10 10:21:16 +08:00
const hive = new HiveSQL();
2023-07-10 10:21:16 +08:00
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(hive.validate(ab).length).toBe(0);
2023-07-10 10:21:16 +08:00
});
});
});