Skip to content

Commit

Permalink
Remove unnecessary test
Browse files Browse the repository at this point in the history
Signed-off-by: liuyehcf <1559500551@qq.com>
  • Loading branch information
liuyehcf authored and wanpengfei-git committed Nov 17, 2023
1 parent 9d0801c commit 67822d9
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -552,18 +552,4 @@ void testAnalyzeDecimalArithmeticExprIdempotently()
" | cardinality: 1"));
}
}

@Test
void testArraySubfieldsPrune() {
try {
String sql = "select str_to_map('age=18&sex=1&gender=1','&','=')['age'] AS age, " +
"str_to_map('age=18&sex=1&gender=1','&','=')['sex'] AS sex;";
String plan = UtFrameUtils.getVerboseFragmentPlan(starRocksAssert.getCtx(), sql);
Assert.assertTrue(plan, plan.contains("str_to_map[([4: split, ARRAY<VARCHAR>, true], '='); " +
"args: INVALID_TYPE,VARCHAR; result: MAP<VARCHAR,VARCHAR>; " +
"args nullable: true; result nullable: true]"));
} catch (Exception e) {
Assert.fail("Should not throw an exception");
}
}
}

0 comments on commit 67822d9

Please sign in to comment.