Login  Register

[jira] [Created] (FLINK-22897) FlinkSQL1.12 Sink to Hive with diffrent parallelism will due to produce many small files

Posted by Shang Yuanchun (Jira) on Jun 07, 2021; 7:24am
URL: http://deprecated-apache-flink-mailing-list-archive.368.s1.nabble.com/jira-Created-FLINK-22897-FlinkSQL1-12-Sink-to-Hive-with-diffrent-parallelism-will-due-to-produce-mans-tp51166.html

zhengjiewen created FLINK-22897:
-----------------------------------

             Summary: FlinkSQL1.12 Sink to Hive with diffrent parallelism will due to produce many small files
                 Key: FLINK-22897
                 URL: https://issues.apache.org/jira/browse/FLINK-22897
             Project: Flink
          Issue Type: Improvement
    Affects Versions: 1.12.1
            Reporter: zhengjiewen


I try to use flink sql in batch mode, to sink data into hive partition table, here is the sql:

 
{code:java}
//代码占位符
{code}
INSERT OVERWRTITE 【targetTable】SELECT 【field】FROM 【sourceTable】;

 

 

And I found that when the parallelism of the sink operator is different from that of the operator before it, a large number of small files will be generated. But this is not the case when the parallelism is the same.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)