flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clarkyzl <...@git.apache.org>
Subject [GitHub] flink pull request #3623: [FLINK-6196] [table] Support dynamic schema in Tab...
Date Thu, 20 Apr 2017 08:21:34 GMT
Github user clarkyzl commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3623#discussion_r112392884
  
    --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/table/functions/utils/UserDefinedFunctionUtils.scala
---
    @@ -382,7 +381,10 @@ object UserDefinedFunctionUtils {
           implicitResultType: TypeInformation[_],
           params: Expression*): TableFunctionCall = {
         val arguments = transformLiteralExpressions(params: _*)
    -    val userDefinedResultType = tableFunction.getResultType(arguments)
    +    val typeInformations = params.map { param =>
    +      if (param.valid) param.resultType else null
    --- End diff --
    
    I think if the parameter is not resolved. It is not validated.
    
    ```
        val result = in
          .join(funcDyn('c, 1) as 'name)
          .select('c, 'name)
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message