8f72a5af60
* fix: #236 export AbstractParseTreeVisitor * build: set isolatedModules true * feat: import parser about from filters
17 lines
417 B
TypeScript
17 lines
417 B
TypeScript
import { SparkSQL } from '../../../filters';
|
|
import { readSQL } from '../../../helper';
|
|
|
|
const parser = new SparkSQL();
|
|
|
|
const features = {
|
|
analyzeTable: readSQL(__dirname, 'analyzeTable.sql'),
|
|
};
|
|
|
|
describe('Spark Analyze Table Syntax Tests', () => {
|
|
features.analyzeTable.forEach((itemSql) => {
|
|
it(itemSql, () => {
|
|
expect(parser.validate(itemSql).length).toBe(0);
|
|
});
|
|
});
|
|
});
|