add new comment

This commit is contained in:
HSunboy
2018-07-02 19:36:09 +08:00
parent 537ac36a25
commit b2c7777fb6
5 changed files with 72 additions and 13 deletions

View File

@ -5,11 +5,11 @@ const example={
JOIN muyun_test_down2
ON muyun_test_down1.id = muyun_test_down2.id
`,
test1:`create table sql_task_comment_test(id int comment 'id') comment 'sql test';
test1:`/*asf*/create table sql_task_comment_test(id int comment 'id') comment 'sql test';
--sdfsss`,
test2:` INSERT INTO TABLE muyun_test_down4
SELECT muyun_test_down1.id, muyun_test_down1.name, muyun_test_down2.age
FROM muyun_test_down1
test2:` /**/INSERT INTO TABLE muyun_test_down4
SELECT /*lkaslfklasf*/ muyun_test_down1.id, muyun_test_down1.name, muyun_test_down2.age
FROM /**/ muyun_test_down1
JOIN muyun_test_down2
ON muyun_test_down1.id = muyun_test_down2.id;`,
test3:`--alter table sx_622_1 add partition(pa=${"${bdp.system.bizdate}"});

View File

@ -6,7 +6,8 @@ for(let [key,value] of testMap){
console.log(`******${key}********`)
console.log(value)
console.log(`******result********`)
console.log(dtSqlParser.parser.parse(value));
// console.log(dtSqlParser.parser.parse(value));
console.log(dtSqlParser.filter.filterComments(value))
console.log(`********************`)
}