QueryPublicModelEngine
Queries the information of the data modeling engine by using FML statements.
Operation description
Each time you call this operation, you must use an FML statement to request the query information.
Except for queries on data warehouse layers, business processes, and data domains, you can use paged queries for other data modeling engine information queries. You can append the
offset num limit numclause at the end of the FML statement to specify the offset and the number of entries to return per page. Currently, the offset value must be a multiple of the page size.Each time you call this operation, a maximum of 1,000 data entries are returned.
Prerequisites: Intelligent Data Modeling must be activated before you use this operation. If the service is not activated, the operation returns the 400 Valid.FML.ProductNotActivated error. If the service has expired, the operation returns the 400 Valid.FML.ProductExpired error.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Text |
string |
Yes |
The FML statement used to query engine information. For more information, see Configure and manage data tables by using FML statements.
Currently, only |
show dim tables |
| ProjectId |
string |
Yes |
The ID of the DataWorks workspace. You can log on to the DataWorks console and go to the Workspace Management page to obtain the ID. |
1234 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The results returned by the FML statement query. |
||
| RequestId |
string |
The unique ID of the request. You can use the ID to troubleshoot issues if an error occurs. |
4CFB2DED-7D9B-4C42-B4AA-CFF4991DFFF4 |
| ReturnValue |
array<object> |
The list information returned by the FML statement query. |
|
|
object |
The data modeling engine information returned by the FML statement query. |
{ "uuid": "obj-123456", "code": "dim_shop", "name": "Shop dimension table", "type": 1, "detailType": "normal" } |
Response result description.
The FML statement used to query data warehouse layers is as follows:
show layers; Output parameters
| Parameter | Type | Example | Description |
| code | String | dws | The code of the data warehouse layer. |
| englishName | String | dws | The English name of the data warehouse layer. |
| name | String | Summary layer | The Chinese name of the data warehouse layer. |
| ownerId | String | 0123456 | The ID of the owner. |
| ownerName | String | John Doe | The name of the owner. |
| description | String | Summary layer description | The description. |
| uuid | String | obj-123456 | The unique identifier of the object. |
| gmtCreate | TimeStamp | 1644397025000 | The creation time. |
| gmtModified | TimeStamp | 1644459965000 | The modification time. |
| creatorId | String | 0123456 | The base ID of the creator. |
| creatorName | String | John Doe | The name of the creator. |
| modifierId | String | 0123456 | The base ID of the modifier. |
| modifierName | String | John Doe | The name of the modifier. |
The FML statement used to query data domains is as follows:
show domains; Output parameters
| Parameter | Type | Example | Description |
| code | String | member | The code of the data domain. |
| englishName | String | member | The English name of the data domain. |
| name | String | Member | The Chinese name of the data domain. |
| ownerId | String | 0123456 | The ID of the owner. |
| ownerName | String | John Doe | The name of the owner. |
| businessUnitCode | String | bu-123456 | The code of the business unit. |
| description | String | Member domain description | The description. |
| uuid | String | obj-123456 | The unique identifier of the object. |
| gmtCreate | TimeStamp | 1644397025000 | The creation time. |
| gmtModified | TimeStamp | 1644459965000 | The modification time. |
| creatorId | String | 0123456 | The base ID of the creator. |
| creatorName | String | John Doe | The name of the creator. |
| modifierId | String | 0123456 | The base ID of the modifier. |
| modifierName | String | John Doe | The name of the modifier. |
The FML statements used to query business processes are as follows:
Unconditional list query: show business_processes;
Query a business process by code: show business_processes where code='bp-code';
Query business processes by data domain: show business_processes where data_domain='dm-code'; Output parameters
| Parameter | Type | Example | Description |
| code | String | bp-123456 | The code of the business process. |
| englishName | String | pay | The English name of the business process. |
| name | String | Payment | The Chinese name of the business process. |
| dataDomainCode | String | trade | The code of the associated data domain. |
| dataDomainName | String | Trade | The Chinese name of the associated data domain. |
| dataDomainUuid | String | dm-123456 | The UUID of the associated data domain. |
| ownerId | String | 0123456 | The base ID of the owner. |
| ownerName | String | John Doe | The name of the owner. |
| description | String | Payment | The description. |
| source | Integer | 2 | The creation source. Valid values: 1: Created by the system. 2: Created by a user. |
| uuid | String | obj-123456 | The unique identifier of the object. |
| gmtCreate | TimeStamp | 1644397025000 | The creation time. |
| gmtModified | TimeStamp | 1644459965000 | The modification time. |
| creatorId | String | creatorId | The base ID of the creator. |
| creatorName | String | John Doe | The name of the creator. |
| modifierId | String | 0123456 | The base ID of the modifier. |
| modifierName | String | John Doe | The name of the modifier. |
The FML statements used to query business categories are as follows.
show business_categories;
show business_categories where code='code';
show business_categories where keyword='keyword';
show business_categories where uuid='uuid';
Output parameters
| Parameter | Type | Example | Description |
| categoryDetail | DirectoryDetailDTO | {"uuid": "cate_uuid", "code": "trd", "name": "Trade"} | The detailed information of the business category. |
| name | String | E-commerce | The name of the directory. |
| detailType | String | DICT | The subtype of the directory. |
| parentUuid | String | dy-123456 | The UUID of the parent directory. |
| description | String | Description | The description of the directory. |
| code | String | ind | The code of the business category. |
| dataDomains | List | [{"uuid": "domain1", "code": "trd", "name": "Trade domain"}] | The data domains associated with the business category. |
| ownerId | String | 0123456 | The base ID of the owner. |
| ownerName | String | John Doe | The name of the owner. |
| businessUnitCode | String | bu-123456 | The code of the business unit. |
| description | String | Description | The description of the directory. |
| categoryPath | String | tm.ind | The path of the business category. |
The FML statement used to query data marts is as follows:
show markets; Output parameters
| Parameter | Type | Example | Description |
| categoryDetail | DirectoryDetailDTO | {"uuid": "cate_uuid", "code": "trd", "name": "Trade"} | The detailed information of the data mart. |
| name | String | E-commerce | The name of the directory. |
| detailType | String | DICT | The subtype of the directory. |
| parentUuid | String | dy-123456 | The UUID of the parent directory. |
| description | String | Description | The description of the directory. |
| code | String | ind | The code of the business category. |
| subDetailType | String | common | The specific subtype of the directory. |
| auditDTOList | List | [{"baseId":"123","showName":"test"}] | The list of reviewers. |
| code | String | member | The code of the data domain. |
| englishName | String | member | The English name of the data domain. |
| name | String | Member | The Chinese name of the data domain. |
| ownerId | String | 0123456 | The base ID of the owner. |
| ownerName | String | John Doe | The name of the owner. |
| businessUnitCode | String | bu-123456 | The code of the business unit. |
| description | String | Member domain description | The description. |
| auditDTOList | List | [{"baseId":"123","showName":"test"}] | The list of reviewers. |
| categoryPath | String | tm.ind | The path of the business category. |
The FML statement used to query subject areas is as follows:
show subjects; Output parameters
| Parameter | Type | Example | Description |
| categoryDetail | DirectoryDetailDTO | {"uuid": "cate_uuid", "code": "trd", "name": "Trade"} | The detailed information of the subject. |
| name | String | E-commerce | The name of the directory. |
| detailType | String | DICT | The subtype of the directory. |
| parentUuid | String | dy-123456 | The UUID of the parent directory. |
| description | String | Description | The description of the directory. |
| code | String | ind | The code of the business category. |
| subDetailType | String | common | The specific subtype of the directory. |
| auditDTOList | List | [{"baseId":"123","showName":"test"}] | The list of reviewers. |
| code | String | member | The code of the data domain. |
| englishName | String | member | The English name of the data domain. |
| name | String | Member | The Chinese name of the data domain. |
| ownerId | String | 0123456 | The base ID of the owner. |
| ownerName | String | John Doe | The name of the owner. |
| businessUnitCode | String | bu-123456 | The code of the business unit. |
| description | String | Member domain description | The description. |
| auditDTOList | List | [{"baseId":"123","showName":"test"}] | The list of reviewers. |
| categoryPath | String | tm.ind | The path of the business category. |
The FML statement used to query data standard sets is as follows:
show dict groups; Output parameters
| Parameter | Type | Example | Description |
| name | String | E-commerce | The name of the directory. |
| detailType | String | DICT | The subtype of the directory. |
| parentUuid | String | dy-123456 | The UUID of the parent directory. |
| description | String | Description | The description of the directory. |
| code | String | ind | The code of the business category. |
| uuid | List | obj-123456 | The unique identifier of the object. |
| gmtCreate | TimeStamp | 1644397025000 | The creation time. |
| gmtModified | TimeStamp | 1644459965000 | The modification time. |
| creatorId | String | 0123456 | The base ID of the creator. |
| creatorName | String | John Doe | The name of the creator. |
| modifierId | String | 0123456 | The base ID of the modifier. |
| modifierName | String | John Doe | The name of the modifier. |
The FML statement used to query data standards is as follows:
show dicts; Output parameters
| Parameter | Type | Example | Description |
| code | String | shop_type | The English abbreviation. |
| englishName | String | shop type | The English name. |
| name | String | Shop type | The Chinese name. |
| no | String | SN00001 | The standard number. |
| dataType | String | STRING | The data type. |
| length | Integer | 10 | The column length. |
| numericalPrecision | Integer | 2 | The column precision. |
| notNull | Boolean | false | Specifies whether the value cannot be empty. |
| defaultValue | String | Flagship store | The default value. |
| parentNo | String | SN0001 | The number of the parent standard. |
| parentName | String | Shop | The name of the parent standard. |
| codeTableNo | String | shop_type | The number of the referenced code table. |
| codeTableName | String | Shop type code table | The name of the referenced code table. |
| codeTableUuid | String | tb-0001 | The UUID of the referenced code table. |
| directoryUuid | String | Directory UUID | The UUID of the associated directory. |
| directoryName | String | Shop directory | The name of the associated directory. |
| description | String | remark | The description. |
| uuid | String | obj-123456 | The unique identifier of the object. |
| gmtCreate | TimeStamp | 1644397025000 | The creation time. |
| gmtModified | TimeStamp | 1644459965000 | The modification time. |
| creatorId | String | 0123456 | The base ID of the creator. |
| creatorName | String | John Doe | The name of the creator. |
| modifierId | String | 0123456 | The base ID of the modifier. |
| modifierName | String | John Doe | The name of the modifier. |
The FML statement used to query standard codes is as follows:
show code tables; Output parameters
| Parameter | Type | Example | Description |
| code | String | shop_type | The code. |
| name | String | Shop type | The name. |
| extendName | String | shop type | The English name. |
| description | String | remark | The description. |
| uuid | String | obj-123456 | The unique identifier of the object. |
| gmtCreate | TimeStamp | 1644397025000 | The creation time. |
| gmtModified | TimeStamp | 1644459965000 | The modification time. |
| creatorId | String | 0123456 | The base ID of the creator. |
| creatorName | String | John Doe | The name of the creator. |
| modifierId | String | 0123456 | The base ID of the modifier. |
| modifierName | String | John Doe | The name of the modifier. |
The FML statement used to query measurement unit groups is as follows:
show measure_unit groups; Output parameters
| Parameter | Type | Example | Description |
| name | String | E-commerce | The name of the directory. |
| detailType | String | DICT | The subtype of the directory. |
| parentUuid | String | dy-123456 | The UUID of the parent directory. |
| description | String | Description | The description of the directory. |
| code | String | ind | The category code. |
| uuid | String | obj-123456 | The unique identifier of the object. |
| gmtCreate | TimeStamp | 1644397025000 | The creation time. |
| gmtModified | TimeStamp | 1644459965000 | The modification time. |
| creatorId | String | 0123456 | The base ID of the creator. |
| creatorName | String | John Doe | The name of the creator. |
| modifierId | String | 0123456 | The base ID of the modifier. |
| modifierName | String | John Doe | The name of the modifier. |
The FML statement used to query measurement units is as follows:
show measure_units; Output parameters
| Parameter | Type | Example | Description |
| code | String | yuan | The English abbreviation. |
| englishName | String | RMB | The English name. |
| name | String | Yuan | The Chinese name. |
| directoryUuid | String | di-0001 | The UUID of the unit group. |
| directoryName | String | Currency | The name of the unit group. |
| description | String | remark | The description. |
| uuid | String | obj-123456 | The unique identifier of the object. |
| gmtCreate | TimeStamp | 1644397025000 | The creation time. |
| gmtModified | TimeStamp | 1644459965000 | The modification time. |
| creatorId | String | 0123456 | The base ID of the creator. |
| creatorName | String | John Doe | The name of the creator. |
| modifierId | String | 0123456 | The base ID of the modifier. |
| modifierName | String | John Doe | The name of the modifier. |
The FML statement used to query standard code content is as follows:
show codes from code_table; Output parameters
| Parameter | Type | Example | Description |
| codeContent | String | 0 | The code content value. |
| extendNameContent | String | female | The extended standard code name. |
| nameContent | String | Female | The standard code name. |
| description | String | remark | The standard code description. |
| uuid | String | obj-123456 | The unique identifier of the object. |
| gmtCreate | TimeStamp | 1644397025000 | The creation time. |
| gmtModified | TimeStamp | 1644459965000 | The modification time. |
| creatorId | String | 0123456 | The base ID of the creator. |
| creatorName | String | John Doe | The name of the creator. |
| modifierId | String | 0123456 | The base ID of the modifier. |
| modifierName | String | John Doe | The name of the modifier. |
The FML statement used to query naming dictionaries is as follows:
show naming dicts; Output parameters
| Parameter | Type | Example | Description |
| code | String | shop | The English abbreviation. |
| creatorId | String | 0123456 | The base ID of the creator. |
| creatorName | String | John Doe | The name of the creator. |
| extendName | String | shop | The English name. |
| gmtCreate | TimeStamp | 1644397025000 | The creation time. |
| gmtModified | TimeStamp | 1644459965000 | The modification time. |
| modifierId | String | 0123456 | The base ID of the modifier. |
| modifierName | String | John Doe | The name of the modifier. |
| name | String | Shop | The Chinese name. |
| ownerId | String | 0123456 | The base ID of the owner. |
| ownerName | String | John Doe | The name of the owner. |
| uuid | String | obj-123456 | The unique identifier of the object. |
The FML statement used to query table information is as follows:
show tables; Output parameters
| Parameter | Type | Example | Description |
| code | String | dim_shop | The table code. |
| name | String | Shop dimension table | The Chinese name of the table. |
| type | Integer | 1 | The table type. Valid values: 0: Fact table. 1: Dimension table. 3: Aggregate table. 4: Application table. 5: Source table. 6: Dimension. |
| detailType | String | normal | The specific table type. Valid values: Normal dimension. Enumeration dimension. Transaction fact. |
| businessProcessUuid | String | bp-123456 | The UUID of the business process. |
| businessUnitUuid | String | bu-123456 | The UUID of the business unit. |
| dataWarehouseLayerUuid | String | ly-123456 | The UUID of the data warehouse layer. |
| businessCategoryUuid | String | bc-123456 | The UUID of the business category. |
| ownerId | String | 0123456 | The base ID of the owner. |
| ownerName | String | John Doe | The name of the owner. |
| description | String | Shop table description | The description. |
| config | String | JSON string | The extended attribute configuration. |
| lifeCycle | Integer | 365 | The lifecycle of the table. |
| uuid | String | obj-123456 | The unique identifier of the object. |
| gmtCreate | TimeStamp | 1644397025000 | The creation time. |
| gmtModified | TimeStamp | 1644459965000 | The modification time. |
| creatorId | String | 0123456 | The base ID of the creator. |
| creatorName | String | John Doe | The name of the creator. |
| modifierId | String | 0123456 | The base ID of the modifier. |
| modifierName | String | John Doe | The name of the modifier. |
The FML statement used to query dimension tables is as follows:
show dim tables; Output parameters
| Parameter | Type | Example | Description |
| code | String | dim_shop | The table code. |
| name | String | Shop dimension table | The Chinese name of the table. |
| type | Integer | 1 | The table type. Valid values: 0: Fact table. 1: Dimension table. |
| detailType | String | normal | The specific table type. Valid values: Normal dimension. Enumeration dimension. Transaction fact. |
| businessProcessUuid | String | bp-123456 | The UUID of the business process. |
| businessUnitUuid | String | bu-123456 | The UUID of the business unit. |
| dataWarehouseLayerUuid | String | ly-123456 | The UUID of the data warehouse layer. |
| businessCategoryUuid | String | bc-123456 | The UUID of the business category. |
| ownerId | String | 0123456 | The base ID of the owner. |
| ownerName | String | John Doe | The name of the owner. |
| description | String | Shop table description | The description. |
| config | String | JSON string | The extended attribute configuration. |
| lifeCycle | Integer | 365 | The lifecycle of the table. |
| uuid | String | obj-123456 | The unique identifier of the object. |
| gmtCreate | TimeStamp | 1644397025000 | The creation time. |
| gmtModified | TimeStamp | 1644459965000 | The modification time. |
| creatorId | String | 0123456 | The base ID of the creator. |
| creatorName | String | John Doe | The name of the creator. |
| modifierId | String | 0123456 | The base ID of the modifier. |
| modifierName | String | John Doe | The name of the modifier. |
The FML statement used to query fact tables is as follows:
show fact tables; Output parameters
| Parameter | Type | Example | Description |
| code | String | dim_shop | The table code. |
| name | String | Shop dimension table | The Chinese name of the table. |
| type | Integer | 1 | The table type. Valid values: 0: Fact table. 1: Dimension table. |
| detailType | String | normal | The specific table type. Valid values: Normal dimension. Enumeration dimension. Transaction fact. |
| businessProcessUuid | String | bp-123456 | The UUID of the business process. |
| businessUnitUuid | String | bu-123456 | The UUID of the business unit. |
| dataWarehouseLayerUuid | String | ly-123456 | The UUID of the data warehouse layer. |
| businessCategoryUuid | String | bc-123456 | The UUID of the business category. |
| ownerId | String | 0123456 | The base ID of the owner. |
| ownerName | String | John Doe | The name of the owner. |
| description | String | Shop table description | The description. |
| config | String | JSON string | The extended attribute configuration. |
| lifeCycle | Integer | 365 | The lifecycle of the table. |
| uuid | String | obj-123456 | The unique identifier of the object. |
| gmtCreate | TimeStamp | 1644397025000 | The creation time. |
| gmtModified | TimeStamp | 1644459965000 | The modification time. |
| creatorId | String | 0123456 | The base ID of the creator. |
| creatorName | String | John Doe | The name of the creator. |
| modifierId | String | 0123456 | The base ID of the modifier. |
| modifierName | String | John Doe | The name of the modifier. |
The FML statement used to query aggregate tables is as follows:
show dws tables; Response parameters
| Parameter name | Parameter type | Example value | Description |
| dataDomainUuid | String | dm-12345 | The UUID of the data domain. |
| dataDomainCode | String | member | The code of the data domain. |
| dataDomainName | String | Member | The name of the data domain. |
| timePeriods | List | [{"uuid": "uuid", "code": "code", "name": "Name"}] | The list of time periods. |
| uuid | String | obj-123456 | The unique identifier of the object. |
| code | String | dws_001 | The table name. |
| name | String | Payment summary table | The Chinese name of the table. |
| adjuncts | List | [{"uuid": "uuid", "code": "code", "name": "Name"}] | The list of modifiers. |
| dimensions | List | [{"uuid": "uuid", "code": "code", "name": "Name"}] | The granularity. |
| bizEntityUuid | String | dim-123456 | The UUID of the business entity. |
| bizEntityCode | String | dim_shop | The English abbreviation of the business entity. |
| bizEntityName | String | Shop table | The Chinese name of the business entity. |
| relUuid | String | dim_a-123456 | The UUID of the associated dimension. |
| type | Integer | 3 | The table type. Valid values: 3 (Aggregate table). |
| detailType | String | dws_normal | The specific table type. Valid values: dws_normal: Regular aggregate table. dws_advanced: Light aggregate table. |
| businessProcessUuid | String | bp-123456 | The UUID of the business process. |
| businessUnitUuid | String | bu-123456 | The UUID of the business unit. |
| dataWarehouseLayerUuid | String | ly-123456 | The UUID of the data warehouse layer. |
| businessCategoryUuid | String | bc-123456 | The UUID of the business category. |
| ownerId | String | 0123456 | The BaseId of the owner. |
| ownerName | String | John Doe | The name of the owner. |
| description | String | Shop table remarks | The description. |
| config | String | JSON string | The extended attribute configuration. |
| lifeCycle | Integer | 365 | The lifecycle of the table. |
| gmtCreate | TimeStamp | 1644397025000 | The creation time. |
| gmtModified | TimeStamp | 1644459965000 | The modification time. |
| creatorId | String | 0123456 | The BaseId of the creator. |
| creatorName | String | John Doe | The name of the creator. |
| modifierId | String | 0123456 | The BaseId of the modifier. |
| modifierName | String | John Doe | The name of the modifier. |
The FML statement used to query application tables is as follows.
show ads tables; Response parameters
| Parameter name | Parameter type | Example value | Description |
| dataDomainUuid | String | dm-12345 | The UUID of the data domain. |
| dataDomainCode | String | member | The code of the data domain. |
| dataDomainName | String | Member | The name of the data domain. |
| timePeriods | List | [{"uuid": "uuid", "code": "code", "name": "Name"}] | The list of time periods. |
| uuid | String | obj-123456 | The unique identifier of the object. |
| code | String | dws_001 | The table name. |
| name | String | Payment summary table | The Chinese name of the table. |
| adjuncts | List | [{"uuid": "uuid", "code": "code", "name": "Name"}] | The list of modifiers. |
| dimensions | List | [{"uuid": "uuid", "code": "code", "name": "Name"}] | The granularity. |
| bizEntityUuid | String | dim-123456 | The UUID of the business entity. |
| bizEntityCode | String | dim_shop | The English abbreviation of the business entity. |
| bizEntityName | String | Shop table | The Chinese name of the business entity. |
| relUuid | String | dim_a-123456 | The UUID of the associated dimension. |
| type | Integer | 1 | The table type. Valid values: 0: Fact table. 1: Dimension table. |
| detailType | String | normal | The specific table type. Valid values: normal: Regular dimension. enum: Enumerated dimension. transaction: Transaction fact. |
| businessProcessUuid | String | bp-123456 | The UUID of the business process. |
| businessUnitUuid | String | bu-123456 | The UUID of the business unit. |
| dataWarehouseLayerUuid | String | ly-123456 | The UUID of the data warehouse layer. |
| businessCategoryUuid | String | bc-123456 | The UUID of the business category. |
| ownerId | String | 0123456 | The BaseId of the owner. |
| ownerName | String | John Doe | The name of the owner. |
| description | String | Shop table remarks | The description. |
| config | String | JSON string | The extended attribute configuration. |
| lifeCycle | Integer | 365 | The lifecycle of the table. |
| gmtCreate | TimeStamp | 1644397025000 | The creation time. |
| gmtModified | TimeStamp | 1644459965000 | The modification time. |
| creatorId | String | 0123456 | The BaseId of the creator. |
| creatorName | String | John Doe | The name of the creator. |
| modifierId | String | 0123456 | The BaseId of the modifier. |
| modifierName | String | John Doe | The name of the modifier. |
The FML statement used to query table information and return field information is as follows.
show full tables; Response parameters
| Parameter name | Parameter type | Example value | Description |
| tableUuid | String | tb-123456 | The UUID of the table. |
| tableCode | String | dim_shop | The code of the table. |
| tableName | String | Shop table | The name of the table. |
| columnCode | String | shop_id | The code of the column. |
| columnName | String | Shop ID | The name of the column. |
| columnUuid | String | col-123456 | The UUID of the column. |
| columnType | String | STRING | The data type of the column. |
| columnCategory | String | ATTRIBUTE | The category of the column. |
The FML statement used to query column information is as follows.
show columns from table_code; Response parameters
| Parameter name | Parameter type | Example value | Description |
| code | String | seller_id | The code of the column. |
| name | String | 卖家 Id | The Chinese name of the column. |
| dataType | String | STRING | The data type. |
| type | String | ATTRIBUTE | The field type. |
| isPrimaryKey | Boolean | false | Specifies whether the column is a primary key. |
| isPartitionKey | Boolean | false | Specifies whether the column is a partition key. |
| partitionOrder | Integer | 1 | The order of the partition key. |
| notNull | Boolean | true | Specifies whether the column cannot be null. |
| dataDictionaryUuid | String | member_id | The code of the data dictionary. |
| dataDictionaryCode | String | Member ID | The name of the data dictionary. |
| codeTableUuid | String | cd-123456 | The UUID of the associated code table. |
| codeTableCode | String | sex | The code of the associated code table. |
| codeTableName | String | Gender | The name of the associated code table. |
| measureUnitCode | String | percent | The code of the associated unit. |
| measureUnitName | String | Cent | The name of the associated unit. |
| sourceProjectName | String | autotest | The name of the source project. |
| sourceTableCode | String | dict | The code of the source table. |
| sourceColumnCode | String | age | The code of the source field. |
| sourceRelationTag | String | label | The redundant relationship tag. |
| description | String | Field remarks | The description. |
| orderId | String | 1 | The order of the field. |
| columnGroupName | Integer | col_group_1 | The field group to which the column belongs. |
| config | String | JSON string | The extended attribute configuration. |
| uuid | String | obj-123456 | The unique identifier of the object. |
| gmtCreate | TimeStamp | 1644397025000 | The creation time. |
| gmtModified | TimeStamp | 1644459965000 | The modification time. |
| creatorId | String | 0123456 | The BaseId of the creator. |
| creatorName | String | John Doe | The name of the creator. |
| modifierId | String | 0123456 | The BaseId of the modifier. |
| modifierName | String | John Doe | The name of the modifier. |
The FML statement used to query modifiers is as follows.
show adjuncts; Response parameters
| Parameter name | Parameter type | Example value | Description |
| businessUnitUuid | String | bu-123456 | The UUID of the business unit. |
| businessUnitCode | String | test_bu | The code of the business unit. |
| businessUnitName | String | Test unit | The name of the business unit. |
| dataDomainUuid | String | dt-123456 | The UUID of the data domain. |
| dataDomainCode | String | member | The code of the data domain. |
| dataDomainName | String | Member domain | The name of the data domain. |
| categoryUuid | String | cy-123456 | The UUID of the business category. |
| categoryCode | String | trade | The code of the business category. |
| categoryName | String | E-commerce | The name of the business category. |
| type | AdjunctTypeEnum | DIM_VAL | The type of the modifier. |
| code | String | beauty | The English abbreviation. |
| name | String | 美妆 | The Chinese name. |
| extendName | String | beauty | The English name. |
| description | String | Beauty description | The description. |
| bizExpression | String | Used to define how report statistics are calculated | The business definition. |
| expression | String | beauty = 1 | The semantic expression of the modifier. |
| bizEntityUuid | String | dim-123456 | The UUID of the business entity. |
| bizEntityCode | String | dim_shop | The English abbreviation of the business entity. |
| bizEntityName | String | 店铺表 | The Chinese name of the business entity. |
| relUuid | String | dim_a-123456 | The UUID of the associated dimension. |
| ownerId | String | 0123456 | The BaseId of the owner. |
| ownerName | String | John Doe | The name of the owner. |
| isDeleted | DeleteTagEnum | NO | Specifies whether the object is deleted. |
| uuid | String | obj-123456 | The unique identifier of the object. |
| gmtCreate | TimeStamp | 1644397025000 | The creation time. |
| gmtModified | TimeStamp | 1644459965000 | The modification time. |
| creatorId | String | 0123456 | The BaseId of the creator. |
| creatorName | String | John Doe | The name of the creator. |
| modifierId | String | 0123456 | The BaseId of the modifier. |
| modifierName | String | John Doe | The name of the modifier. |
The FML statement used to query time periods is as follows.
show time_periods; Response parameters
| Parameter name | Parameter type | Example value | Description |
| businessUnitUuid | String | bu-123456 | The business unit to which the time period belongs. |
| businessUnitCode | String | test_bu | The code of the business unit. |
| type | TimePeriodTypeEnum | DAY | The type of the time period. |
| typeName | String | Day | The name of the time period type. |
| code | String | 1d | The English abbreviation. |
| name | String | 1 天 | The Chinese name. |
| extendName | String | 1d | The English name. |
| description | String | Time period description | The description. |
| isDeleted | DeleteTagEnum | NO | Specifies whether the object is deleted. |
| timeBegin | String | start_expression | The start time expression. |
| timeEnd | String | end_expression | The end time expression. |
| gmtCreate | TimeStamp | 1633885261000 | The creation time. |
| gmtModified | TimeStamp | 1633885261000 | The modification time. |
| modifierId | String | 0123456 | The BaseId of the modifier. |
| modifierName | String | John Doe | The name of the modifier. |
| ownerId | String | 0123456 | The BaseId of the owner. |
| ownerName | String | John Doe | The name of the owner. |
| beginOffset | Integer | 1 | The offset of the start period. |
| endOffset | Integer | 1 | The offset of the end period. |
| firstDay | Integer | 1 | The first day of the period. This parameter is required when the type is WEEK, MONTH, QUARTER, or YEAR. Valid values: WEEK (Initial day of the week. Sunday: 1, Monday: 2, Tuesday: 3, Wednesday: 4, Thursday: 5, Friday: 6, Saturday: 7), MONTH (Initial day of the month. First day of the month: 1, last day of the month: 99, 2nd to 27th: [2~27]), QUARTER (Initial month. January to December: [0~11]), YEAR (Initial month. January to December: [0~11]). |
| uuid | String | obj-123456 | The unique identifier of the object. |
| creatorId | String | 0123456 | The BaseId of the creator. |
| creatorName | String | John Doe | The name of the creator. |
The FML statement used to query atomic metrics is as follows.
show atomic indicators; Response parameters
| Parameter name | Parameter type | Example value | Description |
| dataDistinct | YesOrNoEnum | YES | Specifies whether data deduplication is required. Valid values: YES NO. |
| aggFunctionType | AggFunctionEnum | SUM | The aggregation function type of the metric. Valid values: SUM COUNT AVG MAX MIN RATE RANK UNDEFINED. |
| calExpression | String | price | The calculation definition (code). |
| dataType | DataTypeNameEnum | TINYINT | The data type. Valid values: TINYINT, SMALLINT, INT, BIGINT, BINARY, FLOAT, DOUBLE, DECIMAL, VARCHAR, CHAR, STRING, DATE, DATETIME, TIMESTAMP, BOOLEAN, ARRAY, MAP, STRUCT, and JSON. |
| dataRound | String | N | The data precision. Valid values: N M. |
| dataUnitUuid | String | du-123456 | The UUID of the metric unit. |
| dataUnitCode | String | percent | The code of the metric unit. |
| dataUnitName | String | Cent | The name of the metric unit. |
| bizExpression | String | Sum of payment amount | The business definition. |
| dataRollUpType | String | AGG_FUNCTION | The data roll-up method. Valid values: AGG_FUNCTION SUM_THEN_RATE RATE_THEN_AVG NOT_SUPPORT. |
| businessUnitUuid | String | bu-0001 | The UUID of the business unit. |
| businessUnitCode | String | project_code | The code of the business unit. |
| businessProcessUuid | String | di-0002 | The UUID of the business process. |
| businessProcessCode | String | pay | The code of the business process. |
| businessProcessName | String | Payment | The name of the business process. |
| dataDomainUuid | String | di-0003 | The UUID of the data domain. |
| dataDomainCode | String | trd | The code of the data domain. |
| dataDomainName | String | Transaction | The name of the data domain. |
| categoryUuid | String | di-0001 | The UUID of the business category. |
| categoryCode | String | tb | The code of the business category. |
| categoryName | String | Taobao | The name of the business category. |
| type | String | ATOMIC | The metric type. Valid values: ATOMIC DERIVATIVE DERIVATIVE_COMPOSITE. |
| code | String | pay_amt | The English abbreviation. |
| name | String | 支付金额 | The Chinese name. |
| extendName | String | pay amount | The English name. |
| description | String | remark | The description. |
| status | String | NORMAL | The metric status. Valid values: DRAFT DEV NORMAL. |
| ownerId | String | 0001 | The BaseId of the owner. |
| ownerName | String | Owner name | The name of the owner. |
| isDeleted | DeleteTagEnum | NO | Specifies whether the object is deleted. Valid values: YES NO. |
| uuid | String | obj-123456 | The unique identifier of the object. |
| gmtCreate | TimeStamp | 1644397025000 | The creation time. |
| gmtModified | TimeStamp | 1644459965000 | The modification time. |
| creatorId | String | 0123456 | The BaseId of the creator. |
| creatorName | String | John Doe | The name of the creator. |
| modifierId | String | 0123456 | The BaseId of the modifier. |
| modifierName | String | John Doe | The name of the modifier. |
The FML statement used to query derived metrics is as follows.
show derivative indicators; Response parameters
| Parameter | Type | Example | Description |
| timePeriodUuid | String | tp-0001 | The UUID of the time period. |
| timePeriodCode | String | 1d | The English abbreviation of the time period. |
| timePeriodName | String | 近 1 天 | The Chinese name of the time period. |
| adjunctUuids | List | ["adj-001"] | The list of modifier UUIDs. |
| adjunctCodes | List | ["male"] | The list of English abbreviations of modifiers. |
| adjunctNames | List | 男性 | The list of Chinese names of modifiers. |
| atomicIndicatorUuid | String | ind-a-0001 | The UUID of the atomic metric. |
| atomicIndicatorCode | String | pay_amt | The English abbreviation of the atomic metric. |
| atomicIndicatorName | String | 支付金额 | The Chinese name of the atomic metric. |
| dataType | DataTypeNameEnum | BIGINT | The data type. Valid values: TINYINT, SMALLINT, INT, BIGINT, BINARY, FLOAT, DOUBLE, DECIMAL, VARCHAR, CHAR, STRING, DATE, DATETIME, TIMESTAMP, BOOLEAN, ARRAY, MAP, STRUCT, and JSON. |
| bizEntityUuid | String | dim-123456 | The UUID of the business entity. |
| bizEntityCode | String | dim_shop | The English abbreviation of the business entity. |
| bizEntityName | String | 店铺表 | The Chinese name of the business entity. |
| relUuid | String | dim_a-123456 | The UUID of the associated dimension. |
| indHash | String | hash-0001 | The hash value of the metric. |
| suggestCode | String | pay_amt_1d | The recommended code. |
| businessUnitUuid | String | bu-0001 | The UUID of the business unit. |
| businessUnitCode | String | project_code | The code of the business unit. |
| businessProcessUuid | String | di-0002 | The UUID of the business process. |
| businessProcessCode | String | pay | The code of the business process. |
| businessProcessName | String | Payment | The name of the business process. |
| dataDomainUuid | String | di-0003 | The UUID of the data domain. |
| dataDomainCode | String | trd | The code of the data domain. |
| dataDomainName | String | Trade | The name of the data domain. |
| categoryUuid | String | di-0001 | The UUID of the category. |
| categoryCode | String | tb | The code of the category. |
| categoryName | String | Taobao | The name of the category. |
| type | IndicatorTypeEnum | ATOMIC | The metric type. Valid values: ATOMIC DERIVATIVE DERIVATIVE_COMPOSITE |
| code | String | pay_amt | The English abbreviation. |
| name | String | 支付金额 | The Chinese name. |
| extendName | String | pay amount | The English name. |
| description | String | remark | The description. |
| status | IndicatorStatusEnum | NORMAL | The metric status. Valid values: DRAFT DEV NORMAL |
| ownerId | String | 0001 | The base ID of the owner. |
| ownerName | String | Owner name | The name of the owner. |
| isDeleted | DeleteTagEnum | NO | Specifies whether the object is deleted. Valid values: YES NO |
| uuid | String | obj-123456 | The unique identifier of the object. |
| gmtCreate | TimeStamp | 1644397025000 | The creation time. |
| gmtModified | TimeStamp | 1644459965000 | The modification time. |
| creatorId | String | 0123456 | The base ID of the creator. |
| creatorName | String | John Doe | The name of the creator. |
| modifierId | String | 0123456 | The base ID of the modifier. |
| modifierName | String | John Doe | The name of the modifier. |
The FML statement used to query composite metrics is as follows.
show derivative composite indicators; Response elements
| Parameter | Type | Example | Description |
| businessUnitCode | String | project_code | The name of the workspace. |
| businessProcessUuid | String | di-0002 | The UUID of the business process. |
| businessProcessCode | String | pay | The code of the business process. |
| businessProcessName | String | Payment | The name of the business process. |
| dataDomainUuid | String | di-0003 | The UUID of the data domain. |
| dataDomainCode | String | trd | The code of the data domain. |
| dataDomainName | String | Transaction | The name of the data domain. |
| categoryUuid | String | di-0001 | The UUID of the category. |
| categoryCode | String | tb | The code of the category. |
| categoryName | String | Taobao | The name of the category. |
| type | String | DERIVATIVE_COMPOSITE | The calculation mode. Valid values: DERIVATIVE_COMPOSITE (calculation expression) and DERIVATIVE_COMPARISON (period-over-period comparison). |
| code | String | pay_amt | The English abbreviation of the metric. |
| name | String | 支付金额 | The Chinese name of the metric. |
| extendName | String | pay amount | The English name of the metric. |
| description | String | remark | The description of the metric. |
| calculateExpression | String | {@pay_amt_1d[Last 1 day_Payment amount]}/{@pay_amt_1m[Last 30 days_Payment amount]} | The calculation expression. |
| comparisonPeriodType | String | DAY_MOM | The period-over-period comparison type. Valid values: DAY_MOM (day-over-day), WEEK_MOM (week-over-week), WEEK_YOY (week year-over-year), MONTH_MOM (month-over-month), MONTH_YOY (month year-over-year), QUARTER_MOM (quarter-over-quarter), YEAR_MOM (year-over-year), and YEAR_YOY (year-over-year). |
| comparisonIndicatorUuid | String | obj-123456 | The UUID of the metric used for period-over-period comparison. |
| comparisonIndicatorCode | String | pay_amt_1d | The English abbreviation of the metric used for period-over-period comparison. |
| comparisonIndicatorName | String | 近 1 天_支付金额 | The Chinese name of the metric used for period-over-period comparison. |
| ownerId | String | 0001 | The base ID of the metric owner. |
| ownerName | String | John Doe | The name of the metric owner. |
| isDeleted | DeleteTagEnum | NO | Specifies whether the object is deleted. Valid values: YES and NO. |
| uuid | String | obj-123456 | The unique identifier of the object. |
| gmtCreate | TimeStamp | 1644397025000 | The creation time of the metric. |
| gmtModified | TimeStamp | 1644459965000 | The modification time of the metric. |
| creatorId | String | 0123456 | The base ID of the metric creator. |
| creatorName | String | John Doe | The name of the metric creator. |
| modifierId | String | 0123456 | The base ID of the metric modifier. |
| modifierName | String | John Doe | The name of the metric modifier. |
The FML statement used to query the information about the model on which a single metric depends is as follows.
show statistic indicator table_code; Response parameters
| Parameter | Type | Example | Description |
| uuid | String | obj-123456 | The unique identifier of the metric. |
| code | String | pay_amt | The English abbreviation of the metric. |
| name | String | 支付金额 | The Chinese name of the metric. |
| extendName | String | pay amount | The English name of the metric. |
| relations | List | See the following section for an example. | The list of model information on which the metric depends. For more information about the EntityInfo structure, see the following section. |
The following code block shows an example of the EntityInfo structure and describes the parameters.
[
{
"uuid": "uuid",
"code": "code",
"name": "Chinese name",
"extendName": "full name in English",
"entityType": "EntityTypeEnum.BASE_DERIVATIVE_INDICATOR",
"entityTypeName": "Entity type name",
"entitySubType": "DERIVATIVE_INDICATOR",
"entitySubTypeName": "Entity subtype name",
"ownerId": "0001",
"ownerName": "Owner name"
}
]
| Parameter | Type | Example | Description |
| uuid | String | obj-123456 | The unique identifier of the model. |
| code | String | dws_001 | The English abbreviation of the model. |
| name | String | 支付汇总表 | The Chinese name of the model. |
| extendName | String | dws_001 | The English name of the model. |
| entityType | EntityTypeEnum | Table | The entity type of the dependent metric. Valid values include but are not limited to TABLE, BASE_ATOMIC_INDICATOR, and BASE_DERIVATIVE_INDICATOR. |
| entityTypeName | String | Table | The name of the entity type. |
| entitySubType | String | DWS_TABLE | The entity subtype. Valid values include but are not limited to DWS_TABLE, ATOMIC_INDICATOR, and DERIVATIVE_INDICATOR. |
| entitySubTypeName | String | Aggregate table | The name of the entity subtype. |
| ownerId | String | 0001 | The base ID of the owner. |
| ownerName | String | Zhang San | The name of the owner. |
Examples
Success response
JSON format
{
"RequestId": "4CFB2DED-7D9B-4C42-B4AA-CFF4991DFFF4",
"ReturnValue": [
{
"uuid": "obj-123456",
"code": "dim_shop",
"name": "Shop dimension table",
"type": 1,
"detailType": "normal"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Valid.FML.NoPermission | You are not authorized to access the project resources. | You are not granted the required permissions to access the current project. |
| 400 | Valid.FML.OnlySupportQueryStatement | Only FML query statement is supported. | Only FML statements are supported. |
| 400 | Valid.FML.ProjectNotExist | The project does not exist. | Information about the project is not found. Check input parameters. |
| 400 | Valid.FML.StatementNotValid | The FML statement is invalid. | The FML statement is invalid. For information about the FML syntax, see https://dataworks-doc.yuque.com/docs/share/ff7899ed-c433-4970-b20e-6582ea3939f3?#. |
| 400 | Valid.FML.ProductExpired | 智能数据建模产品购买已到期 | The Data Modeling feature that you purchase expires. |
| 400 | Valid.FML.ProductNotActivated | 智能数据建模产品未开通 | The Data Modeling feature is not enabled. |
| 500 | Execute.FML.ProcessError | Failed to execute FML statement. | The FML statement fails to be executed. Try again later. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.