[ 
https://issues.apache.org/jira/browse/FLINK-4554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15726119#comment-15726119
 ] 

ASF GitHub Bot commented on FLINK-4554:
---------------------------------------

Github user fhueske commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2919#discussion_r91114685
  
    --- Diff: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/codegen/CodeGenUtils.scala
 ---
    @@ -189,6 +188,16 @@ object CodeGenUtils {
           throw new CodeGenException("Interval expression type expected.")
         }
     
    +  def requireArray(genExpr: GeneratedExpression) =
    +    if (!TypeCheckUtils.isArray(genExpr.resultType)) {
    +      throw new CodeGenException("Array expression type expected.")
    +    }
    +
    +  def requireInteger(genExpr: GeneratedExpression) =
    +    if (!TypeCheckUtils.isInteger(genExpr.resultType)) {
    +      throw new CodeGenException("Array expression type expected.")
    --- End diff --
    
    `Array` -> `Integer`


> Add support for array types
> ---------------------------
>
>                 Key: FLINK-4554
>                 URL: https://issues.apache.org/jira/browse/FLINK-4554
>             Project: Flink
>          Issue Type: New Feature
>          Components: Table API & SQL
>            Reporter: Timo Walther
>            Assignee: Timo Walther
>
> Support creating arrays:
> {code}ARRAY[1, 2, 3]{code}
> Access array values:
> {code}myArray[3]{code}
> And operations like:
> {{UNNEST, UNNEST WITH ORDINALITY, CARDINALITY}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to