fix(flink): clear useless comments
This commit is contained in:
parent
3054e90917
commit
771b562c78
@ -37,21 +37,14 @@ function lexer(input: string): Token[] {
|
|||||||
*/
|
*/
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
const matchQuotation = (currentChar: string, validator: RegExp, TokenType: TokenType) => {
|
const matchQuotation = (currentChar: string, validator: RegExp, TokenType: TokenType) => {
|
||||||
// let value = '';
|
|
||||||
// let start = current;
|
|
||||||
// let startLine = line;
|
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if (currentChar === '\n') {
|
if (currentChar === '\n') {
|
||||||
line++;
|
line++;
|
||||||
}
|
}
|
||||||
// value += currentChar;
|
|
||||||
currentChar = input[++current];
|
currentChar = input[++current];
|
||||||
} while (!validator.test(currentChar));
|
} while (!validator.test(currentChar));
|
||||||
|
|
||||||
// value += currentChar;
|
|
||||||
++current;
|
++current;
|
||||||
// console.log(TokenType, value, start, startLine, current)
|
|
||||||
};
|
};
|
||||||
|
|
||||||
while (current < input.length) {
|
while (current < input.length) {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import SQLParser from '../../../src/parser/flinksql';
|
import SQLParser from '../../../src/parser/flinksql';
|
||||||
import sqlMockData from '../../mock/flinkSql';
|
import sqlMockData from '../../mock/flinkSql';
|
||||||
import * as utils from '../../../src/utils';
|
|
||||||
|
|
||||||
describe('FlinkSQL Syntax Tests', () => {
|
describe('FlinkSQL Syntax Tests', () => {
|
||||||
const parser = new SQLParser();
|
const parser = new SQLParser();
|
||||||
@ -219,13 +218,4 @@ describe('FlinkSQL Syntax Tests', () => {
|
|||||||
const result = parser.validate(sql);
|
const result = parser.validate(sql);
|
||||||
expect(result.length).toBe(0);
|
expect(result.length).toBe(0);
|
||||||
});
|
});
|
||||||
// test('Test complex sql Statement with splitSql', () => {
|
|
||||||
// const sql = sqlMockData.allSqlStr;
|
|
||||||
// const result = [];
|
|
||||||
// utils.splitSql(sql).forEach((ele) => {
|
|
||||||
// const tempRul = parser.validate(utils.cleanSql(ele));
|
|
||||||
// result.push(...tempRul);
|
|
||||||
// });
|
|
||||||
// expect(result.length).toBe(0);
|
|
||||||
// });
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user