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

17 lines
393 B
TypeScript
Raw Normal View History

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