Skip to content

Commit

Permalink
fix: clickhouse uses match function
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi committed Jun 13, 2023
1 parent 560145b commit 4beff3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prql-compiler/src/sql/std.sql.prql
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ module clickhouse {
# https://clickhouse.com/docs/en/sql-reference/functions/arithmetic-functions#divide
@{binding_strength=11}
let div_f = l r -> s"({l} / {r})"

let regex_search = text pattern -> s"match({text:0}, {pattern:0})"
}

module duckdb {
Expand Down

0 comments on commit 4beff3d

Please sign in to comment.