lava-oushudb-dt-sql-parser/test/parser/hive/syntax/alterStatement.test.ts
2023-07-07 14:52:59 +08:00

19 lines
459 B
TypeScript

import HiveSQL from '../../../../src/parser/hive';
import { readSQL } from '../../../helper';
const parser = new HiveSQL();
const features = {
indexes: readSQL(__dirname, 'alterIndex.sql'),
};
describe('Hive Alter Syntax Tests', () => {
describe('ALTER INDEX', () => {
features.indexes.forEach((index) => {
it(index, () => {
expect(parser.validate(index).length).toBe(0);
});
});
});
});