mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add testcase
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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'
|
||||
@@ -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'
|
||||
Reference in New Issue
Block a user