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

17 lines
368 B
TypeScript
Raw Normal View History

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