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

19 lines
456 B
TypeScript
Raw Normal View History

2023-07-07 11:19:28 +08:00
import HiveSQL from '../../../../src/parser/hive';
import { readSQL } from '../../../helper';
const parser = new HiveSQL();
const features = {
indexes: readSQL(__dirname, 'dropIndex.sql'),
};
describe('Hive Drop Syntax Tests', () => {
describe('DROP INDEX', () => {
features.indexes.forEach((index) => {
it(index, () => {
expect(parser.validate(index).length).toBe(0);
});
});
});
});