[
https://issues.apache.org/jira/browse/BEAM-10925?focusedWorklogId=513176&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-513176
]
ASF GitHub Bot logged work on BEAM-10925:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 17/Nov/20 21:25
Start Date: 17/Nov/20 21:25
Worklog Time Spent: 10m
Work Description: apilloud commented on a change in pull request #13309:
URL: https://github.com/apache/beam/pull/13309#discussion_r525533663
##########
File path:
sdks/java/extensions/sql/zetasql/src/main/java/org/apache/beam/sdk/extensions/sql/zetasql/translation/SqlOperators.java
##########
@@ -158,7 +186,7 @@ public static SqlFunction createZetaSqlFunction(String
name, SqlTypeName returnT
SqlFunctionCategory.USER_DEFINED_FUNCTION);
}
- private static SqlUserDefinedAggFunction createUdafOperator(
+ public static SqlUserDefinedAggFunction createUdafOperator(
Review comment:
This (and `createUdfOperator`) is intended to be a (slightly hacky)
helper function for implementing ZetaSQL operators via the UDF interface. Why
do you need to make them public?
##########
File path:
sdks/java/extensions/sql/zetasql/src/main/java/org/apache/beam/sdk/extensions/sql/zetasql/translation/SqlOperators.java
##########
@@ -177,26 +205,25 @@ private static SqlUserDefinedFunction createUdfOperator(
Class<?> methodClass,
String methodName,
SqlReturnTypeInference returnTypeInference,
- List<RelDataType> paramTypes) {
+ List<RelDataType> paramTypes,
+ String funGroup) {
Review comment:
nit: It seems like `SqlAnalyzer.ZETASQL_FUNCTION_GROUP_NAME` is the only
thing ever passed to `funGroup` here and below. Should it really be an argument?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 513176)
Time Spent: 12.5h (was: 12h 20m)
> ZetaSQL: Support Java UDF
> -------------------------
>
> Key: BEAM-10925
> URL: https://issues.apache.org/jira/browse/BEAM-10925
> Project: Beam
> Issue Type: New Feature
> Components: dsl-sql-zetasql
> Reporter: Kyle Weaver
> Assignee: Kyle Weaver
> Priority: P2
> Time Spent: 12.5h
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)