test: hivesql abort syntax unit tests
This commit is contained in:
parent
c6f6599126
commit
faabeffe8a
16
test/parser/hive/syntax/abortStatement.test.ts
Normal file
16
test/parser/hive/syntax/abortStatement.test.ts
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import HiveSQL from '../../../../src/parser/hive';
|
||||||
|
import { readSQL } from '../../../helper';
|
||||||
|
|
||||||
|
const parser = new HiveSQL();
|
||||||
|
|
||||||
|
const features = {
|
||||||
|
aborts: readSQL(__dirname, 'abort.sql'),
|
||||||
|
};
|
||||||
|
|
||||||
|
describe('Hive Abort Syntax Tests', () => {
|
||||||
|
features.aborts.forEach((ab) => {
|
||||||
|
it(ab, () => {
|
||||||
|
expect(parser.validate(ab).length).toBe(0);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
1
test/parser/hive/syntax/fixtures/abort.sql
Normal file
1
test/parser/hive/syntax/fixtures/abort.sql
Normal file
@ -0,0 +1 @@
|
|||||||
|
ABORT TRANSACTIONS 0000007 0000008 0000010 0000015;
|
Loading…
Reference in New Issue
Block a user