lava-oushudb-dt-sql-parser/test/parser/hive/syntax/showStatement.test.ts
2023-07-10 10:09:28 +08:00

17 lines
381 B
TypeScript

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