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

zhangzh commented on FLINK-25471:
---------------------------------

@ [~paul8263] 

i tested with Flink 1.13.3 ,

in batch mode ,output is :

(ALICE,1)
(ALICE,2)
(BOB,1)
(LILY,1)
(LILY,2)
(LILY,3)

in streaming mode ,output is :

(ALICE,1)
(ALICE,2)
(BOB,1)
(LILY,1)
(LILY,2)
(LILY,3)

 

flink 1.13.3, both outouts  result are same.  i think  the streaming outouts is 
correct, but the batch outouts is wrong.

 

 

flink 1.14.2, both outouts the  are different.  only the streaming outputs is 
correct , the batch outouts is wrong yet.

> wrong result if table transfrom to DataStream then keyby  sum in Batch Mode
> ---------------------------------------------------------------------------
>
>                 Key: FLINK-25471
>                 URL: https://issues.apache.org/jira/browse/FLINK-25471
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / API, Table SQL / Runtime
>    Affects Versions: 1.14.2
>         Environment: mac book pro m1 
> jdk 8 
> scala 2.11
> flink 1.14.2
> idea 2020
>            Reporter: zhangzh
>            Priority: Critical
>         Attachments: TableToDataStreamBatchWordCount-1.scala, pom.xml
>
>
> I have a dataStream with 6 lines datas like this:
> Row.of("Alice"),
> Row.of("alice"),
> Row.of("Bob"),
> Row.of("lily"),
> Row.of("lily"),
> Row.of("lily")
> then  make it to  table  with one column "word"
> then sql transform : select upper(word) from tmp_table
> then change to dataStream
> then keyby sum.
>  
> in batch mode:
> I think correct result is:
> > (BOB,1)
> > (ALICE,2)
> > (LILY,3)
>  
> but the result is :
> > (BOB,1)
> if i set different parallelism ,the result is different.
>  
> the source file  and pom is in attach.
>  is  a bug?
> pelease help me!!!
>  
>  
>  
>  
>  
>  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to