Skip to content

Commit

Permalink
持续调整单测
Browse files Browse the repository at this point in the history
持续调整单测
  • Loading branch information
lizongbo committed Apr 20, 2024
1 parent b5f6f15 commit 44dc265
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void test_0() throws Exception {
"\t\twhere tc_order_record.contract_no = d.contract_no\n" +
"\t) as orderSumNum\n" +
"\t, (\n" +
"\t\tselect COALESCE(d.num, 0) - COALESCE(sum(num1), 0)\n" +
"\t\tselect (COALESCE(d.num, 0) - COALESCE(sum(num1), 0))\n" +
"\t\tfrom tc_order_record\n" +
"\t\twhere tc_order_record.contract_no = d.contract_no\n" +
"\t) as avai\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void test_0() throws Exception {
"\tSERDE 'org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe'\n" +
"STORED AS RCFile\n" +
"AS\n" +
"SELECT key % 1024 AS new_key, concat(key, value) AS key_value_pair\n" +
"SELECT (key % 1024) AS new_key, concat(key, value) AS key_value_pair\n" +
"FROM key_value_store\n" +
"SORT BY new_key, key_value_pair;", text);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ public void test_0() throws Exception {
"\t\tFROM bpm_department_t4 b\n" +
"\t\tWHERE 1 = 1\n" +
"\t\t\tAND b.ENABLED_FLAG = 'Y'\n" +
"\t\tSTART WITH b.flex_value = 'C019998'\n" +
"\t\t\tOR b.flex_value LIKE 'ZF%'\n" +
"\t\tSTART WITH (b.flex_value = 'C019998'\n" +
"\t\t\tOR b.flex_value LIKE 'ZF%')\n" +
"\t\tCONNECT BY PRIOR b.flex_value = b.parent_flex_value\n" +
"\t) c\n" +
"\tWHERE 1 = 1\n" +
Expand All @@ -108,8 +108,8 @@ public void test_0() throws Exception {
"\t\tfrom bpm_department_t4 b\n" +
"\t\twhere 1 = 1\n" +
"\t\t\tand b.ENABLED_FLAG = 'Y'\n" +
"\t\tstart with b.flex_value = 'C019998'\n" +
"\t\t\tor b.flex_value like 'ZF%'\n" +
"\t\tstart with (b.flex_value = 'C019998'\n" +
"\t\t\tor b.flex_value like 'ZF%')\n" +
"\t\tconnect by prior b.flex_value = b.parent_flex_value\n" +
"\t) c\n" +
"\twhere 1 = 1\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ public void test_0() throws Exception {
"\t\t\tFROM (\n" +
"\t\t\t\tSELECT xzqh, sglx\n" +
"\t\t\t\t\t, CASE \n" +
"\t\t\t\t\t\tWHEN swrs7 < 3 THEN '1'\n" +
"\t\t\t\t\t\tWHEN swrs7 < 5 THEN '2'\n" +
"\t\t\t\t\t\tWHEN swrs7 <= 9 THEN '3'\n" +
"\t\t\t\t\t\tWHEN (swrs7 < 3) THEN '1'\n" +
"\t\t\t\t\t\tWHEN (swrs7 < 5) THEN '2'\n" +
"\t\t\t\t\t\tWHEN (swrs7 <= 9) THEN '3'\n" +
"\t\t\t\t\t\tELSE '4'\n" +
"\t\t\t\t\tEND AS swrslx, 1 AS swrs_count\n" +
"\t\t\t\tFROM acduser.vw_acd_info\n" +
Expand Down Expand Up @@ -111,9 +111,9 @@ public void test_0() throws Exception {
"\t\t\tfrom (\n" +
"\t\t\t\tselect xzqh, sglx\n" +
"\t\t\t\t\t, case \n" +
"\t\t\t\t\t\twhen swrs7 < 3 then '1'\n" +
"\t\t\t\t\t\twhen swrs7 < 5 then '2'\n" +
"\t\t\t\t\t\twhen swrs7 <= 9 then '3'\n" +
"\t\t\t\t\t\twhen (swrs7 < 3) then '1'\n" +
"\t\t\t\t\t\twhen (swrs7 < 5) then '2'\n" +
"\t\t\t\t\t\twhen (swrs7 <= 9) then '3'\n" +
"\t\t\t\t\t\telse '4'\n" +
"\t\t\t\t\tend as swrslx, 1 as swrs_count\n" +
"\t\t\t\tfrom acduser.vw_acd_info\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void test_0() throws Exception {
"\t\tLEFT JOIN BAS_VEHICLE D ON B.VECL_ID = D.ID \n" +
"\t\t\tLEFT JOIN BAS_APPLICATION E ON A.APP_ID = E.ID \n" +
"\t\tWHERE 1 = 1\n" +
"\t\t\tAND A.SIM_NO LIKE ('%' || ? || '%')\n" +
"\t\t\tAND A.SIM_NO LIKE '%' || ? || '%'\n" +
"\t\tORDER BY A.SIM_NO ASC\n" +
"\t) a\n" +
")\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ public void test_0() throws Exception {
"LEFT JOIN tcc_cpr.tcc_cpr_payment c ON a.contract_header_id = c.contract_header_id\n" +
"\tAND c.payment_condition_code = 'ZTE_PAYMENT_YUFU'\n" +
"\tAND c.enabled_flag = 'Y' \n" +
"\tLEFT JOIN tcc_cust.tcc_cust_customer d ON a.customer_id = d.id\n" +
"\tLEFT JOIN tcc_cust.tcc_cust_customer d ON (a.customer_id = d.id\n" +
"\tAND (d.enable_flag = 'Y'\n" +
"\t\tOR d.enable_flag = 'T') \n" +
"\t\tOR d.enable_flag = 'T')) \n" +
"WHERE a.enabled_flag = 'Y'", text);
}
// Assert.assertTrue(visitor.getColumns().contains(new TableStat.Column("acduser.vw_acd_info", "xzqh")));
Expand Down

0 comments on commit 44dc265

Please sign in to comment.