lava-oushudb-dt-sql-parser/test/parser/hive/syntax/setConfigProperties.test.ts
琉易 0e752fb9a8
fix: #298 support hive set configuration properties (#299)
* fix: #298 support hive set configuration properties

* feat: simplify the hive syntax file
2024-04-21 12:13:06 +08:00

17 lines
443 B
TypeScript

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