Skip to content

Commit

Permalink
[Enhancement] Add Trino HLL Function Compatibility Mapping and last_d…
Browse files Browse the repository at this point in the history
…ay_of_month Support(StarRocks#40894)

Signed-off-by: happut <[email protected]>
  • Loading branch information
happut committed Jun 26, 2024
1 parent fafc0b1 commit d1e089e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,6 @@ private static void registerBinaryFunctionTransformer() {
}

private static void registerHLLFunctionTransformer() {
// cardinality -> hll_cardinality
registerFunctionTransformer("cardinality", 1, "hll_cardinality", List.of(Expr.class));

// approx_set -> HLL_HASH
registerFunctionTransformer("approx_set", 1, "hll_hash", List.of(Expr.class));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -448,9 +448,6 @@ public void testHllFunction() throws Exception {
String sql = "select empty_approx_set()";
assertPlanContains(sql, "<slot 2> : HLL_EMPTY()");

sql = "select cardinality(empty_approx_set())";
assertPlanContains(sql, "<slot 2> : hll_cardinality(HLL_EMPTY())");

sql = "select approx_set(\"tc\") from tall";
assertPlanContains(sql, "<slot 12> : hll_hash(CAST(3: tc AS VARCHAR))");

Expand Down

0 comments on commit d1e089e

Please sign in to comment.