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

17 lines
377 B
TypeScript
Raw Normal View History

import { HiveSQL } from '../../../filters';
2023-07-10 10:09:28 +08:00
import { readSQL } from '../../../helper';
const parser = new HiveSQL();
const features = {
shows: readSQL(__dirname, 'show.sql'),
};
describe('HiveSQL Show Syntax Tests', () => {
2023-07-10 10:09:28 +08:00
features.shows.forEach((show) => {
it(show, () => {
expect(parser.validate(show).length).toBe(0);
});
});
});