Skip to content

[Feature] help The prompts are less readable #5031

@yangjf2019

Description

@yangjf2019

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

1.Improve readability

When I execute flink run $FLINK_HOME/lib/paimon-flink-action-0.9.0.jar mysql_sync_table --help, Poorly readable prompts are output.We need to improve this problem.
Several other actions have the same problem:

mysql_sync_table
mysql_sync_database

postgres_sync_table

kafka_sync_table
kafka_sync_database

mongodb_sync_table
mongodb_sync_database

pulsar_sync_table
pulsar_sync_database
Image

Action command:

  clone
  compact
  compact_database
  drop_partition
  delete
  merge_into
  rollback_to
  create_tag
  create_tag_from_timestamp
  delete_tag
  reset_consumer
  migrate_table
  migrate_file
  migrate_database
  remove_orphan_files
  query_service
  expire_partitions
  mark_partition_done
  create_branch
  delete_branch
  fast_forward
  repair
  rewrite_file_index
  expire_snapshots
Image

2. Remove duplicate prompts from postgres_sync_table

https://github.com/apache/paimon/blob/master/paimon-flink/paimon-flink-cdc/src/main/java/org/apache/paimon/flink/action/cdc/postgres/PostgresSyncTableActionFactory.java#L56-L57

Image

Solution

We can add prompt for cdc action to improving the output information.The desired look is as follows:

mysql_sync_table

Image

mysql_sync_database

Image

merge_into

Image

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions