You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2018/08/06 11:45:19 UTC

[GitHub] hequn8128 edited a comment on issue #6381: [FLINK-7205] [table] Add UUID supported in SQL and TableApi

hequn8128 edited a comment 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. Thanks for pointing it out.
   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