SHOW_TIME_LINE
命令功能
查看当前生效或者被归档的Hudi time line以及某个指定instant time的详细内容。
命令格式
- 查看某个表生效的time line列表:
- 查看某个表某个时间戳后的生效的time line列表:
call show_active_instant_list(table => '[table_name]', instant => '[instant]');
- 查看某个表生效的某个instant信息:
call show_active_instant_detail(table => '[table_name]', instant => '[instant]');
- 查看某个表已被归档的instant time line列表:
- 查看某个表某个时间戳后的已被归档的instant time line列表:
call show_archived_instant_list(table => '[table_name]', instant => '[instant]');
- 查看某个表已被归档的instant信息:
call show_archived_instant_detail(table => '[table_name], instant => '[instant]');
参数描述
| 参数 | 描述 |
|---|---|
| table_name | 需要查询的Hudi表名,支持database.tablename格式。 |
| instant | 需要查询的instant时间戳,用于过滤或定位特定的Instant记录。可选,当需要查看某个时间戳之后的Instant列表或某个特定Instant的详细信息时设置此参数。 |
示例
call show_active_instant_detail(table => 'hudi_table1', instant => '20220913144936897');
系统响应
可在客户端中查看查询结果。