support clickhouse asof join

This commit is contained in:
高铁
2020-12-26 14:11:20 +08:00
parent 8db98751e6
commit c22f0f0bfd
7 changed files with 50 additions and 1 deletions
@@ -154,6 +154,14 @@ public class SQLParser {
return null;
}
return ident;
} else if (hash == FnvHash.Constants.ASOF && dbType == DbType.clickhouse) {
Lexer.SavePoint mark = lexer.mark();
lexer.nextToken();
if (lexer.token == Token.LEFT || lexer.token == Token.JOIN) {
lexer.reset(mark);
return null;
}
return ident;
}
}
}