-
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.
- Loading branch information
1 parent
e8ebf23
commit e74328b
Showing
9 changed files
with
331 additions
and
181 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
21 changes: 21 additions & 0 deletions
21
...nds/bigquery/tests/unit/udf/snapshots/test_usage/test_multiple_calls_redefinition/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,21 @@ | ||
CREATE TEMPORARY FUNCTION my_len_0(s STRING) | ||
RETURNS FLOAT64 | ||
LANGUAGE js AS """ | ||
'use strict'; | ||
function my_len(s) { | ||
return s.length; | ||
} | ||
return my_len(s); | ||
"""; | ||
|
||
CREATE TEMPORARY FUNCTION my_len_1(s STRING) | ||
RETURNS FLOAT64 | ||
LANGUAGE js AS """ | ||
'use strict'; | ||
function my_len(s) { | ||
return (s.length + 1); | ||
} | ||
return my_len(s); | ||
"""; | ||
|
||
SELECT (my_len_0('abcd') + my_len_0('abcd')) + my_len_1('abcd') AS `tmp` |
12 changes: 12 additions & 0 deletions
12
.../backends/bigquery/tests/unit/udf/snapshots/test_usage/test_udf_determinism/False/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 @@ | ||
CREATE TEMPORARY FUNCTION my_len_0(s STRING) | ||
RETURNS FLOAT64 | ||
NOT DETERMINISTIC | ||
LANGUAGE js AS """ | ||
'use strict'; | ||
function my_len(s) { | ||
return s.length; | ||
} | ||
return my_len(s); | ||
"""; | ||
|
||
SELECT my_len_0('abcd') AS `tmp` |
11 changes: 11 additions & 0 deletions
11
ibis/backends/bigquery/tests/unit/udf/snapshots/test_usage/test_udf_determinism/None/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,11 @@ | ||
CREATE TEMPORARY FUNCTION my_len_0(s STRING) | ||
RETURNS FLOAT64 | ||
LANGUAGE js AS """ | ||
'use strict'; | ||
function my_len(s) { | ||
return s.length; | ||
} | ||
return my_len(s); | ||
"""; | ||
|
||
SELECT my_len_0('abcd') AS `tmp` |
12 changes: 12 additions & 0 deletions
12
ibis/backends/bigquery/tests/unit/udf/snapshots/test_usage/test_udf_determinism/True/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 @@ | ||
CREATE TEMPORARY FUNCTION my_len_0(s STRING) | ||
RETURNS FLOAT64 | ||
DETERMINISTIC | ||
LANGUAGE js AS """ | ||
'use strict'; | ||
function my_len(s) { | ||
return s.length; | ||
} | ||
return my_len(s); | ||
"""; | ||
|
||
SELECT my_len_0('abcd') AS `tmp` |
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
Oops, something went wrong.