-
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.
feat(ir): make impure ibis.random() and ibis.uuid() functions return …
…unique node instances
- Loading branch information
Showing
23 changed files
with
157 additions
and
24 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
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
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
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
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
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
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
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
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
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
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
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
12 changes: 12 additions & 0 deletions
12
...apshots/test_sql/test_selects_with_impure_operations_not_merged/clickhouse-value0/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,12 @@ | ||
SELECT | ||
"t1"."x", | ||
"t1"."y", | ||
"t1"."z", | ||
CASE WHEN "t1"."y" = "t1"."z" THEN 'big' ELSE 'small' END AS "size" | ||
FROM ( | ||
SELECT | ||
"t0"."x", | ||
randCanonical() AS "y", | ||
randCanonical() AS "z" | ||
FROM "t" AS "t0" | ||
) AS "t1" |
12 changes: 12 additions & 0 deletions
12
...apshots/test_sql/test_selects_with_impure_operations_not_merged/clickhouse-value1/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,12 @@ | ||
SELECT | ||
"t1"."x", | ||
"t1"."y", | ||
"t1"."z", | ||
CASE WHEN "t1"."y" = "t1"."z" THEN 'big' ELSE 'small' END AS "size" | ||
FROM ( | ||
SELECT | ||
"t0"."x", | ||
generateUUIDv4() AS "y", | ||
generateUUIDv4() AS "z" | ||
FROM "t" AS "t0" | ||
) AS "t1" |
12 changes: 12 additions & 0 deletions
12
...s/snapshots/test_sql/test_selects_with_impure_operations_not_merged/duckdb-value0/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,12 @@ | ||
SELECT | ||
"t1"."x", | ||
"t1"."y", | ||
"t1"."z", | ||
CASE WHEN "t1"."y" = "t1"."z" THEN 'big' ELSE 'small' END AS "size" | ||
FROM ( | ||
SELECT | ||
"t0"."x", | ||
RANDOM() AS "y", | ||
RANDOM() AS "z" | ||
FROM "t" AS "t0" | ||
) AS "t1" |
12 changes: 12 additions & 0 deletions
12
...s/snapshots/test_sql/test_selects_with_impure_operations_not_merged/duckdb-value1/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,12 @@ | ||
SELECT | ||
"t1"."x", | ||
"t1"."y", | ||
"t1"."z", | ||
CASE WHEN "t1"."y" = "t1"."z" THEN 'big' ELSE 'small' END AS "size" | ||
FROM ( | ||
SELECT | ||
"t0"."x", | ||
UUID() AS "y", | ||
UUID() AS "z" | ||
FROM "t" AS "t0" | ||
) AS "t1" |
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
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
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
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
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
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
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