数据湖探索 DLI-表相关:描述表信息

时间:2024-07-05 17:23:48

描述表信息

您可以使用该接口获取表的元数据描述信息。示例代码如下:
def get_table_schema(dli_client, db_name, tbl_name):
 try:
        table_info = dli_client.get_table_schema(db_name, tbl_name)
        print(table_info)
    except DliException as e:
        print(e)
        return
support.huaweicloud.com/sdkreference-dli/dli_04_0038.html