2016-05-11 13:39:56 +01:00
|
|
|
# odps
|
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
> Aliyun ODPS (Open Data Processing Service) command-line tool.
|
2021-09-13 09:21:21 +01:00
|
|
|
> Some subcommands such as `odps inst` have their own usage documentation.
|
2021-06-09 07:12:11 +01:00
|
|
|
> More information: <https://www.alibabacloud.com/help/doc-detail/27971.htm>.
|
2016-05-11 13:39:56 +01:00
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
- Start the command-line with a custom configuration file:
|
2016-05-11 13:39:56 +01:00
|
|
|
|
2016-05-12 15:15:16 +01:00
|
|
|
`odpscmd --config={{odps_config.ini}}`
|
2016-05-11 13:39:56 +01:00
|
|
|
|
|
|
|
- Switch current project:
|
|
|
|
|
|
|
|
`use {{project_name}};`
|
|
|
|
|
|
|
|
- Show tables in the current project:
|
|
|
|
|
|
|
|
`show tables;`
|
|
|
|
|
2016-05-11 17:17:52 +01:00
|
|
|
- Describe a table:
|
|
|
|
|
|
|
|
`desc {{table_name}};`
|
|
|
|
|
2016-05-11 13:39:56 +01:00
|
|
|
- Show table partitions:
|
|
|
|
|
|
|
|
`show partitions {{table_name}};`
|
|
|
|
|
2016-05-11 17:17:52 +01:00
|
|
|
- Describe a partition:
|
2016-05-11 13:39:56 +01:00
|
|
|
|
|
|
|
`desc {{table_name}} partition ({{partition_spec}});`
|