Skip to content

Commit

Permalink
Fixed R network.py test.
Browse files Browse the repository at this point in the history
After upgrading to R 4.3 putting a column from the UDFContext directly into the require function doesn't work.
  • Loading branch information
tkilias committed Jul 27, 2023
1 parent eadbee9 commit 81f5a51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test_container/tests/test/r/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def check_for_package(self, pkg_name):
check_for_package(pkg_name VARCHAR(300))
RETURNS BOOL as
run <- function(ctx) {
require(ctx$pkg_name)
package_name <- ctx$pkg_name
require(package_name)
};
'''))
rows = self.query(udf.fixindent(f"SELECT check_for_package('{pkg_name}') FROM DUAL"))
Expand Down

0 comments on commit 81f5a51

Please sign in to comment.