Closed rustyconover closed 2 weeks ago
Appreciate the reports @rustyconover, PRs are also welcome if you wanna take a stab at them. Just let us know so we don't do overlapping work.
Hi @georgesittas I don't have any PRs yet, but I'd be happy to polish up my test suite that discovered these issues.
It enumerates all functions available in duckdb then just formulates example queries, then I pass that through sqlglot to make sure that the query parses and the result is the same.
Rusty
@georgesittas Just posted two PRs for the easy ones, the rest of the operator parsing cases I'll leave up you experts.
When testing SQLGlot with DuckDB, the
~~
operator is incorrectly handled. This operator, which functions similarly to the SQLLIKE
pattern matching, is being translated into an invalid SQL expression.Original Query:
SQLGlot Output:
Expected Behavior:
SQLGlot should retain the
~~
operator for pattern matching in DuckDB, as it is equivalent toLIKE
. The correct output should be: