[ 
https://issues.apache.org/jira/browse/BEAM-8362?focusedWorklogId=325210&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-325210
 ]

ASF GitHub Bot logged work on BEAM-8362:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 08/Oct/19 17:51
            Start Date: 08/Oct/19 17:51
    Worklog Time Spent: 10m 
      Work Description: amaliujia commented on pull request #9739: [BEAM-8362] 
Don't use ZetaSQL's unimplemented functions
URL: https://github.com/apache/beam/pull/9739#discussion_r332648527
 
 

 ##########
 File path: 
sdks/java/extensions/sql/zetasql/src/main/java/org/apache/beam/sdk/extensions/sql/zetasql/translation/ExpressionConverter.java
 ##########
 @@ -517,13 +517,7 @@ public RexNode convertResolvedLiteral(ResolvedLiteral 
resolvedLiteral) {
         ret = convertValueToRexNode(resolvedLiteral.getType(), 
resolvedLiteral.getValue());
         break;
       default:
-        throw new RuntimeException(
-            MessageFormat.format(
-                "Unsupported ResolvedLiteral type: {0}, kind: {1}, value: {2}, 
class: {3}",
-                resolvedLiteral.getType().typeName(),
-                kind,
-                resolvedLiteral.getValue(),
-                resolvedLiteral.getClass()));
+        throw new RuntimeException("Unsupported ResolvedLiteral type.");
 
 Review comment:
   It's very useful for development actually. And for users, at least what kind 
of ResolvedLiteral should be thrown to remind where could be wrong in user 
queries. 
 
----------------------------------------------------------------
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:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 325210)
    Time Spent: 50m  (was: 40m)

> Don't use ZetaSQL's unimplemented functions
> -------------------------------------------
>
>                 Key: BEAM-8362
>                 URL: https://issues.apache.org/jira/browse/BEAM-8362
>             Project: Beam
>          Issue Type: New Feature
>          Components: dsl-sql-zetasql
>    Affects Versions: 2.15.0
>            Reporter: Andrew Pilloud
>            Assignee: Andrew Pilloud
>            Priority: Major
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Unfortunately a bunch of debug functionality is still unimplemented in 
> ZetaSQL. We should avoid calling those functions.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to