add testcase

This commit is contained in:
高铁
2021-04-18 15:38:22 +08:00
parent e37202aa75
commit 4ce95c7791
3 changed files with 20 additions and 0 deletions
@@ -64,6 +64,14 @@ public class HiveResourceTest extends TestCase {
exec_test("bvt/parser/hive-7.txt");
}
public void test_8() throws Exception {
exec_test("bvt/parser/hive-8.txt");
}
public void test_9() throws Exception {
exec_test("bvt/parser/hive-9.txt");
}
public void exec_test(String resource) throws Exception {
// System.out.println(resource);
InputStream is = null;
+6
View File
@@ -0,0 +1,6 @@
SELECT account_id FROM taobao_logs.x_view WHERE ip = '192.168.1.1' AND dt = '2021-04-14'
---------------------------
SELECT account_id
FROM taobao_logs.x_view
WHERE ip = '192.168.1.1'
AND dt = '2021-04-14'
+6
View File
@@ -0,0 +1,6 @@
SELECT account_id FROM taobao_office.cloud_yunpan WHERE dt='2021-04-12' AND target='update'
---------------------------
SELECT account_id
FROM taobao_office.cloud_yunpan
WHERE dt = '2021-04-12'
AND target = 'update'