plusplusjiajia commented on code in PR #7360:
URL: https://github.com/apache/paimon/pull/7360#discussion_r2901441430


##########
paimon-python/pypaimon/cli/cli_table.py:
##########
@@ -233,3 +461,89 @@ def add_table_subcommands(table_parser):
         help='Do not raise error if table already exists'
     )
     create_parser.set_defaults(func=cmd_table_create)
+    
+    # table drop command
+    drop_parser = table_subparsers.add_parser('drop', help='Drop a table')
+    drop_parser.add_argument(
+        'table',
+        help='Table identifier in format: database.table'
+    )
+    drop_parser.add_argument(
+        '--ignore-if-not-exists', '-i',
+        action='store_true',
+        help='Do not raise error if table does not exist'
+    )
+    drop_parser.set_defaults(func=cmd_table_drop)
+    
+    # table import command
+    import_parser = table_subparsers.add_parser('import', help='Import data 
from CSV or JSON file')
+    import_parser.add_argument(
+        'table',
+        help='Table identifier in format: database.table'
+    )
+    import_parser.add_argument(
+        '--input', '-i',
+        required=True,
+        help='Path to input file (CSV or JSON format)'
+    )
+    import_parser.set_defaults(func=cmd_table_import)
+    
+    # table alter command
+    alter_parser = table_subparsers.add_parser('alter', help='Alter a table 
with schema changes')
+    alter_parser.add_argument(
+        'table',
+        help='Table identifier in format: database.table'
+    )
+    alter_parser.add_argument(
+        '--ignore-if-not-exists',

Review Comment:
   --ignore-if-not-exists for table alter doesn't have a -i short option, any 
particular reason for this?



-- 
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