flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] hequn8128 commented on issue #6381: [FLINK-7205] [table] Add UUID supported in SQL and TableApi
Date Mon, 06 Aug 2018 11:41:37 GMT
hequn8128 commented on issue #6381: [FLINK-7205] [table] Add UUID supported in SQL and TableApi
URL: https://github.com/apache/flink/pull/6381#issuecomment-410680365
 
 
   @buptljy Ok, you are right.
   How about add a test in `CalcITCase` in package of `org.apache.flink.table.runtime.stream.table`.

   
   ```
     @Test
     def testUDFNotDeterministic(): Unit = {
       val env = StreamExecutionEnvironment.getExecutionEnvironment
       val tEnv = TableEnvironment.getTableEnvironment(env)
       StreamITCase.testResults = mutable.MutableList()
       val ds = StreamTestData.getSmall3TupleDataStream(env).toTable(tEnv).select(uuid())
   
       val results = ds.toAppendStream[Row]
       results.print()
       results.addSink(new StreamITCase.StringSink[Row])
       env.execute()
   
       assert(StreamITCase.testResults.distinct.size > 1)
     }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message