-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support shaded UDF resolution for static registration
- Loading branch information
Showing
13 changed files
with
215 additions
and
18 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
17 changes: 17 additions & 0 deletions
17
coral-hive/src/test/java/shade_prefix/com/linkedin/coral/hive/hive2rel/CoralTestUDF.java
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,17 @@ | ||
/** | ||
* Copyright 2018-2024 LinkedIn Corporation. All rights reserved. | ||
* Licensed under the BSD-2 Clause license. | ||
* See LICENSE in the project root for license information. | ||
*/ | ||
package shade_prefix.com.linkedin.coral.hive.hive2rel; | ||
|
||
import org.apache.hadoop.hive.ql.exec.UDF; | ||
|
||
|
||
// This is used in TestUtils to set up as dali function | ||
// This needs in a separate file for Hive to correctly load for setup | ||
public class CoralTestUDF extends UDF { | ||
public boolean evaluate(int input) { | ||
return input < 100; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
coral-service/src/main/java/com/linkedin/coral/coralservice/metastore/MetastoreProvider.java
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
17 changes: 17 additions & 0 deletions
17
coral-spark/src/test/java/shade_prefix/com/linkedin/coral/hive/hive2rel/CoralTestUDF.java
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,17 @@ | ||
/** | ||
* Copyright 2018-2024 LinkedIn Corporation. All rights reserved. | ||
* Licensed under the BSD-2 Clause license. | ||
* See LICENSE in the project root for license information. | ||
*/ | ||
package shade_prefix.com.linkedin.coral.hive.hive2rel; | ||
|
||
import org.apache.hadoop.hive.ql.exec.UDF; | ||
|
||
|
||
// This is used in TestUtils to set up as dali function | ||
// This needs in a separate file for Hive to correctly load for setup | ||
public class CoralTestUDF extends UDF { | ||
public boolean evaluate(int input) { | ||
return input < 100; | ||
} | ||
} |
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
17 changes: 17 additions & 0 deletions
17
coral-trino/src/test/java/shade_prefix/com/linkedin/coral/hive/hive2rel/CoralTestUdf.java
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,17 @@ | ||
/** | ||
* Copyright 2018-2024 LinkedIn Corporation. All rights reserved. | ||
* Licensed under the BSD-2 Clause license. | ||
* See LICENSE in the project root for license information. | ||
*/ | ||
package shade_prefix.com.linkedin.coral.hive.hive2rel; | ||
|
||
import org.apache.hadoop.hive.ql.exec.UDF; | ||
|
||
|
||
// This is used in TestUtils to set up as dali function | ||
// This needs in a separate file for Hive to correctly load for setup | ||
public class CoralTestUdf extends UDF { | ||
public boolean evaluate(int input) { | ||
return input < 100; | ||
} | ||
} |