celltobig commented on issue #1170:
URL: 
https://github.com/apache/incubator-paimon/issues/1170#issuecomment-1554311730

   use  Flink to 1.14.6  submit OK ,but  checkpoint  not  work well
   like this
   
   
![image](https://github.com/apache/incubator-paimon/assets/4598224/d0f00a70-abaa-44e5-9de9-2d4a35f3378e)
   
   
   
   USE CATALOG my_paimon;
   use test_flink;
   SET 'execution.checkpointing.interval' = '60 s';
   
   drop TABLE IF EXISTS 
`my_hive`.`test_flink`.`ods_kafka_cowell_oms_order_base_stream_v2`;
   CREATE TABLE 
`my_hive`.`test_flink`.`ods_kafka_cowell_oms_order_base_stream_v2` (
   `pt` as proctime(),
   `id` bigint,
   `order_id` bigint,
   `business_id` bigint,
   `business_name` varchar(128),
   `store_id` bigint,
   `gmt_create` timestamp(3),
   `gmt_update` timestamp(3)
   )WITH (
     'properties.auto.commit.interval.ms' = '1000',
     'canal-json.ignore-parse-errors' = 'true',
     'format' = 'canal-json',
     'properties.bootstrap.servers' = 'xxxxxxx:9092',
     'connector' = 'kafka',
     'topic' = 'cowell_order_order_base',
     'scan.startup.mode' = 'group-offsets',
     'properties.auto.offset.reset.strategy' = 'earliest',
     'properties.group.id' = 'test_flink_group_v2',
     'properties.enable.auto.commit' = 'true'
   );
   
   CREATE TABLE IF NOT EXISTS `my_paimon`.`test_flink`.`order_base_v2`(
   `dt` STRING,
   `pt` timestamp,
   `ts` timestamp,
   `id` bigint ,
   `order_id` bigint,
   `business_id` bigint,
   `business_name` STRING,
   `store_id` bigint,
   `gmt_create` timestamp,
   `gmt_update` timestamp,
   PRIMARY KEY (dt, id) NOT ENFORCED
   )
   PARTITIONED BY (dt) 
   with (
   'bucket'='3',
   'bucket-key'='id',
   'file.format'='parquet',
   'merge-engine'='deduplicate',
   'changelog-producer' = 'full-compaction', --指定 changelog-producer 为 
full-compaction 
   'full-compaction.delta-commits' ='30'
   );
   
   -- job
   INSERT INTO `my_paimon`.`test_flink`.`order_base_v2`
   SELECT 
   DATE_FORMAT(gmt_create,'yyyyMMdd') as dt,  -- 以订单生成时间为单位分区
   -- proctime() as dt,  -- 入湖的时间
   proctime() as pt,  -- 入湖的时间
   gmt_update as ts,  -- 业务发生的event_time
   `id`,
   `order_id`,
   `business_id`,
   `business_name`,
   `store_id`,
   `gmt_create`,
   `gmt_update`
   FROM 
   `my_hive`.`test_flink`.`ods_kafka_cowell_oms_order_base_stream_v2`
   ;
   
   -- select * from `my_paimon`.`test_flink`.`order_base_v2`;
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to