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
@@ -44,6 +44,10 @@ public class ClickHouseResourceTest extends OracleTest {
exec_test("bvt/parser/clickhouse-1.txt");
}
public void test_2() throws Exception {
exec_test("bvt/parser/clickhouse-2.txt");
}
public void exec_test(String resource) throws Exception {
System.out.println(resource);
InputStream is = null;
@@ -0,0 +1,10 @@
SELECT expressions_list
FROM table_1
ASOF LEFT JOIN table_2
ON equi_cond AND closest_match_cond
---------------------------
SELECT expressions_list
FROM table_1
ASOF LEFT JOIN table_2
ON equi_cond
AND closest_match_cond