Skip to content

Commit

Permalink
SNOW-991842 Support UDTF with Java 17 (#77)
Browse files Browse the repository at this point in the history
Support UDTF with Java 17
  • Loading branch information
sfc-gh-bli authored Dec 14, 2023
1 parent 9414376 commit 71f54ae
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 71f54ae

Please sign in to comment.