feature(hudi-query): 增加查询 Hudi 表结构

This commit is contained in:
2023-07-07 12:33:14 +08:00
parent b6d60af652
commit bd0a56217d
7 changed files with 198 additions and 2 deletions

View File

@@ -48,9 +48,54 @@ function toolTab() {
{
type: 'input-text',
name: 'hdfs',
label: 'HDFS路经',
label: 'HDFS路经',
required: true,
clearable: true,
description: '输入表HDFS路径',
}
]
},
{
type: 'form',
title: '查询表结构',
actions: [
{
type: 'submit',
label: '查询',
actionType: 'dialog',
dialog: {
title: 'Hudi 表结构',
actions: [],
size: 'lg',
body: {
type: 'service',
api: {
method: 'get',
url: '${base}/hudi/schema',
data: {
hdfs: '${hdfs|default:undefined}',
},
},
body: {
type: 'page',
body: {
type: 'json',
source: '${detail}',
levelExpand: 3,
}
}
}
}
}
],
body: [
{
type: 'input-text',
name: 'hdfs',
label: 'HDFS路经',
required: true,
clearable: true,
description: '输入表HDFS路径',
}
]
},