-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(duckdb): generate
SIMILAR TO
instead of tilde to workaround sql…
…glot issue
- Loading branch information
Showing
11 changed files
with
150 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
ibis/backends/tests/snapshots/test_string/test_rlike/bigquery/out.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
SELECT | ||
t0.* | ||
FROM `ibis-gbq.ibis_gbq_testing.functional_alltypes` AS t0 | ||
WHERE | ||
REGEXP_CONTAINS(t0.`string_col`, '0') |
5 changes: 5 additions & 0 deletions
5
ibis/backends/tests/snapshots/test_string/test_rlike/clickhouse/out.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
SELECT | ||
* | ||
FROM functional_alltypes AS t0 | ||
WHERE | ||
match(t0.string_col, '0') |
19 changes: 19 additions & 0 deletions
19
ibis/backends/tests/snapshots/test_string/test_rlike/duckdb/out.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
SELECT | ||
t0.index, | ||
t0."Unnamed: 0", | ||
t0.id, | ||
t0.bool_col, | ||
t0.tinyint_col, | ||
t0.smallint_col, | ||
t0.int_col, | ||
t0.bigint_col, | ||
t0.float_col, | ||
t0.double_col, | ||
t0.date_string_col, | ||
t0.string_col, | ||
t0.timestamp_col, | ||
t0.year, | ||
t0.month | ||
FROM functional_alltypes AS t0 | ||
WHERE | ||
t0.string_col SIMILAR TO '0' |
5 changes: 5 additions & 0 deletions
5
ibis/backends/tests/snapshots/test_string/test_rlike/impala/out.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
SELECT | ||
t0.* | ||
FROM ibis_testing.`functional_alltypes` AS t0 | ||
WHERE | ||
t0.`string_col` RLIKE '0' |
19 changes: 19 additions & 0 deletions
19
ibis/backends/tests/snapshots/test_string/test_rlike/mysql/out.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
SELECT | ||
t0.`index`, | ||
t0.`Unnamed: 0`, | ||
t0.id, | ||
t0.bool_col = 1 AS bool_col, | ||
t0.tinyint_col, | ||
t0.smallint_col, | ||
t0.int_col, | ||
t0.bigint_col, | ||
t0.float_col, | ||
t0.double_col, | ||
t0.date_string_col, | ||
t0.string_col, | ||
t0.timestamp_col, | ||
t0.year, | ||
t0.month | ||
FROM functional_alltypes AS t0 | ||
WHERE | ||
REGEXP_LIKE(t0.string_col, '0') |
19 changes: 19 additions & 0 deletions
19
ibis/backends/tests/snapshots/test_string/test_rlike/postgres/out.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
SELECT | ||
t0.index, | ||
t0."Unnamed: 0", | ||
t0.id, | ||
t0.bool_col, | ||
t0.tinyint_col, | ||
t0.smallint_col, | ||
t0.int_col, | ||
t0.bigint_col, | ||
t0.float_col, | ||
t0.double_col, | ||
t0.date_string_col, | ||
t0.string_col, | ||
t0.timestamp_col, | ||
t0.year, | ||
t0.month | ||
FROM functional_alltypes AS t0 | ||
WHERE | ||
t0.string_col ~ '0' |
19 changes: 19 additions & 0 deletions
19
ibis/backends/tests/snapshots/test_string/test_rlike/snowflake/out.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
SELECT | ||
t0."index", | ||
t0."Unnamed: 0", | ||
t0."id", | ||
t0."bool_col", | ||
t0."tinyint_col", | ||
t0."smallint_col", | ||
t0."int_col", | ||
t0."bigint_col", | ||
t0."float_col", | ||
t0."double_col", | ||
t0."date_string_col", | ||
t0."string_col", | ||
t0."timestamp_col", | ||
t0."year", | ||
t0."month" | ||
FROM ibis_testing.voltrondataphillip."FUNCTIONAL_ALLTYPES" AS t0 | ||
WHERE | ||
REGEXP_LIKE(t0."string_col", '0') |
19 changes: 19 additions & 0 deletions
19
ibis/backends/tests/snapshots/test_string/test_rlike/sqlite/out.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
SELECT | ||
t0."index", | ||
t0."Unnamed: 0", | ||
t0.id, | ||
t0.bool_col, | ||
t0.tinyint_col, | ||
t0.smallint_col, | ||
t0.int_col, | ||
t0.bigint_col, | ||
t0.float_col, | ||
t0.double_col, | ||
t0.date_string_col, | ||
t0.string_col, | ||
STRFTIME('%Y-%m-%d %H:%M:%f', t0.timestamp_col) AS timestamp_col, | ||
t0.year, | ||
t0.month | ||
FROM main.functional_alltypes AS t0 | ||
WHERE | ||
_IBIS_SQLITE_REGEX_SEARCH(t0.string_col, '0') |
19 changes: 19 additions & 0 deletions
19
ibis/backends/tests/snapshots/test_string/test_rlike/trino/out.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
SELECT | ||
t0.index, | ||
t0."unnamed: 0", | ||
t0.id, | ||
t0.bool_col, | ||
t0.tinyint_col, | ||
t0.smallint_col, | ||
t0.int_col, | ||
t0.bigint_col, | ||
t0.float_col, | ||
t0.double_col, | ||
t0.date_string_col, | ||
t0.string_col, | ||
t0.timestamp_col, | ||
t0.year, | ||
t0.month | ||
FROM functional_alltypes AS t0 | ||
WHERE | ||
REGEXP_POSITION(t0.string_col, '0') <> -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters