Skip to content

Commit

Permalink
Support super sql parser 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
lingo-xp authored and wenshao committed Jan 6, 2025
1 parent cf1dc39 commit 9e75b93
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ protected Keywords loadKeywords() {
map.put("OVERWRITE", Token.OVERWRITE);
map.put("PARTITION", Token.PARTITION);
map.put("PARTITIONED", Token.PARTITIONED);
map.put("RLIKE", Token.RLIKE);

return new Keywords(map);
}
Expand Down
7 changes: 6 additions & 1 deletion core/src/test/resources/bvt/parser/supersql/0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,9 @@ CREATE TABLE IF NOT EXISTS gpark_dwd.dwd_game_review_publish_success_ios (
)
PARTITIONED BY (
ymd string
);
);
------------------------------------------------------------------------------------------------------------------------
select if(gameid rlike '^[0-9]+$', 'UGC', 'PGC') from a;
--------------------
SELECT if(gameid RLIKE '^[0-9]+$', 'UGC', 'PGC')
FROM a;

0 comments on commit 9e75b93

Please sign in to comment.