Skip to content

Commit

Permalink
Support UDTF with Java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-bli committed Dec 14, 2023
1 parent 9414376 commit a8e6faf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/precommit-udf-multiple-jdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
env:
PROFILE_PASSWORD: ${{ secrets.PROFILE_PASSWORD }}
- name: Run test
run: mvn -Dgpg.skip test -Dsuites="com.snowflake.snowpark_test.AlwaysCleanUDFSuite"
run: mvn -Dgpg.skip test -Dsuites="com.snowflake.snowpark_test.UDTFSuite,com.snowflake.snowpark_test.AlwaysCleanUDFSuite"
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,8 @@ class UDXRegistrationHandler(session: Session) extends Logging {
} else ""
val createUdfQuery = s"CREATE $tempType " +
s"FUNCTION $udfName($sqlFunctionArgs) RETURNS " +
s"$returnSqlType LANGUAGE JAVA IMPORTS = ($allImports) HANDLER='$udtfClassName' " +
s"$returnSqlType LANGUAGE JAVA $getRuntimeVersion " +
s"IMPORTS = ($allImports) HANDLER='$udtfClassName' " +
s"target_path='$targetJarStageLocation' " + packageSql +
"AS $$ \n" + code + "\n$$"
logInfo(s"""
Expand Down

0 comments on commit a8e6faf

Please sign in to comment.