2024-01-19 21:10:00 +08:00
|
|
|
import HiveSQL from 'src/parser/hive';
|
|
|
|
import { readSQL } from 'test/helper';
|
2023-07-10 10:19:30 +08:00
|
|
|
|
|
|
|
const parser = new HiveSQL();
|
|
|
|
|
|
|
|
const features = {
|
|
|
|
desc: readSQL(__dirname, 'describe.sql'),
|
|
|
|
};
|
|
|
|
|
2023-09-06 15:15:04 +08:00
|
|
|
describe('HiveSQL Describe Syntax Tests', () => {
|
2023-07-10 10:19:30 +08:00
|
|
|
features.desc.forEach((des) => {
|
|
|
|
it(des, () => {
|
|
|
|
expect(parser.validate(des).length).toBe(0);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|