flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From suez1224 <...@git.apache.org>
Subject [GitHub] flink pull request #5367: [FLINK-7923][Table API & SQL] Support field access...
Date Thu, 01 Feb 2018 23:01:08 GMT
Github user suez1224 commented on a diff in the pull request:

    https://github.com/apache/flink/pull/5367#discussion_r165515039
  
    --- Diff: flink-libraries/flink-table/src/test/scala/org/apache/flink/table/runtime/stream/sql/SqlITCase.scala
---
    @@ -469,6 +473,148 @@ class SqlITCase extends StreamingWithStateTestBase {
         assertEquals(expected.sorted, StreamITCase.testResults.sorted)
       }
     
    +  @Test
    +  def testArrayElementAtFromTableForTuple(): Unit = {
    +
    +    val env = StreamExecutionEnvironment.getExecutionEnvironment
    +    val tEnv = TableEnvironment.getTableEnvironment(env)
    +    StreamITCase.clear
    +
    +    val data = List(
    +      (1, Array((12, 45), (2, 5))),
    --- End diff --
    
    Added null check.
    for nested tuple input, it wont work for now due to https://issues.apache.org/jira/browse/CALCITE-2162.
I've submitted a fix to it, should be available in Calcite 1.16.


---

Mime
View raw message