diff --git a/src/test/java/com/alibaba/druid/bvt/sql/hive/HiveResourceTest.java b/src/test/java/com/alibaba/druid/bvt/sql/hive/HiveResourceTest.java index 678e770785..88f0fb411f 100644 --- a/src/test/java/com/alibaba/druid/bvt/sql/hive/HiveResourceTest.java +++ b/src/test/java/com/alibaba/druid/bvt/sql/hive/HiveResourceTest.java @@ -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; diff --git a/src/test/resources/bvt/parser/hive-8.txt b/src/test/resources/bvt/parser/hive-8.txt new file mode 100644 index 0000000000..38c93405eb --- /dev/null +++ b/src/test/resources/bvt/parser/hive-8.txt @@ -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' \ No newline at end of file diff --git a/src/test/resources/bvt/parser/hive-9.txt b/src/test/resources/bvt/parser/hive-9.txt new file mode 100644 index 0000000000..201155e29d --- /dev/null +++ b/src/test/resources/bvt/parser/hive-9.txt @@ -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' \ No newline at end of file