JingsongLi commented on code in PR #7360:
URL: https://github.com/apache/paimon/pull/7360#discussion_r2901451186
##########
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:
Fixed, just because I changed the AI model to claude-4.6.
--
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]