QueryPublicModelEngine

Updated at:

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 num clause 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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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 statements are supported.

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

ParameterTypeExampleDescription
codeStringdwsThe code of the data warehouse layer.
englishNameStringdwsThe English name of the data warehouse layer.
nameStringSummary layerThe Chinese name of the data warehouse layer.
ownerIdString0123456The ID of the owner.
ownerNameStringJohn DoeThe name of the owner.
descriptionStringSummary layer descriptionThe description.
uuidStringobj-123456The unique identifier of the object.
gmtCreateTimeStamp1644397025000The creation time.
gmtModifiedTimeStamp1644459965000The modification time.
creatorIdString0123456The base ID of the creator.
creatorNameStringJohn DoeThe name of the creator.
modifierIdString0123456The base ID of the modifier.
modifierNameStringJohn DoeThe name of the modifier.

The FML statement used to query data domains is as follows:

show domains; Output parameters

ParameterTypeExampleDescription
codeStringmemberThe code of the data domain.
englishNameStringmemberThe English name of the data domain.
nameStringMemberThe Chinese name of the data domain.
ownerIdString0123456The ID of the owner.
ownerNameStringJohn DoeThe name of the owner.
businessUnitCodeStringbu-123456The code of the business unit.
descriptionStringMember domain descriptionThe description.
uuidStringobj-123456The unique identifier of the object.
gmtCreateTimeStamp1644397025000The creation time.
gmtModifiedTimeStamp1644459965000The modification time.
creatorIdString0123456The base ID of the creator.
creatorNameStringJohn DoeThe name of the creator.
modifierIdString0123456The base ID of the modifier.
modifierNameStringJohn DoeThe 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

ParameterTypeExampleDescription
codeStringbp-123456The code of the business process.
englishNameStringpayThe English name of the business process.
nameStringPaymentThe Chinese name of the business process.
dataDomainCodeStringtradeThe code of the associated data domain.
dataDomainNameStringTradeThe Chinese name of the associated data domain.
dataDomainUuidStringdm-123456The UUID of the associated data domain.
ownerIdString0123456The base ID of the owner.
ownerNameStringJohn DoeThe name of the owner.
descriptionStringPaymentThe description.
sourceInteger2The creation source. Valid values:
1: Created by the system.
2: Created by a user.




uuidStringobj-123456The unique identifier of the object.
gmtCreateTimeStamp1644397025000The creation time.
gmtModifiedTimeStamp1644459965000The modification time.
creatorIdStringcreatorIdThe base ID of the creator.
creatorNameStringJohn DoeThe name of the creator.
modifierIdString0123456The base ID of the modifier.
modifierNameStringJohn DoeThe 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

ParameterTypeExampleDescription
categoryDetailDirectoryDetailDTO{"uuid": "cate_uuid", "code": "trd", "name": "Trade"}The detailed information of the business category.
nameStringE-commerceThe name of the directory.
detailTypeStringDICTThe subtype of the directory.
parentUuidStringdy-123456The UUID of the parent directory.
descriptionStringDescriptionThe description of the directory.
codeStringindThe code of the business category.
dataDomainsList[{"uuid": "domain1", "code": "trd", "name": "Trade domain"}]The data domains associated with the business category.
ownerIdString0123456The base ID of the owner.
ownerNameStringJohn DoeThe name of the owner.
businessUnitCodeStringbu-123456The code of the business unit.
descriptionStringDescriptionThe description of the directory.
categoryPathStringtm.indThe path of the business category.

The FML statement used to query data marts is as follows:

show markets; Output parameters

ParameterTypeExampleDescription
categoryDetailDirectoryDetailDTO{"uuid": "cate_uuid", "code": "trd", "name": "Trade"}The detailed information of the data mart.
nameStringE-commerceThe name of the directory.
detailTypeStringDICTThe subtype of the directory.
parentUuidStringdy-123456The UUID of the parent directory.
descriptionStringDescriptionThe description of the directory.
codeStringindThe code of the business category.
subDetailTypeStringcommonThe specific subtype of the directory.
auditDTOListList[{"baseId":"123","showName":"test"}]The list of reviewers.
codeStringmemberThe code of the data domain.
englishNameStringmemberThe English name of the data domain.
nameStringMemberThe Chinese name of the data domain.
ownerIdString0123456The base ID of the owner.
ownerNameStringJohn DoeThe name of the owner.
businessUnitCodeStringbu-123456The code of the business unit.
descriptionStringMember domain descriptionThe description.
auditDTOListList[{"baseId":"123","showName":"test"}]The list of reviewers.
categoryPathStringtm.indThe path of the business category.

The FML statement used to query subject areas is as follows:

show subjects; Output parameters

ParameterTypeExampleDescription
categoryDetailDirectoryDetailDTO{"uuid": "cate_uuid", "code": "trd", "name": "Trade"}The detailed information of the subject.
nameStringE-commerceThe name of the directory.
detailTypeStringDICTThe subtype of the directory.
parentUuidStringdy-123456The UUID of the parent directory.
descriptionStringDescriptionThe description of the directory.
codeStringindThe code of the business category.
subDetailTypeStringcommonThe specific subtype of the directory.
auditDTOListList[{"baseId":"123","showName":"test"}]The list of reviewers.
codeStringmemberThe code of the data domain.
englishNameStringmemberThe English name of the data domain.
nameStringMemberThe Chinese name of the data domain.
ownerIdString0123456The base ID of the owner.
ownerNameStringJohn DoeThe name of the owner.
businessUnitCodeStringbu-123456The code of the business unit.
descriptionStringMember domain descriptionThe description.
auditDTOListList[{"baseId":"123","showName":"test"}]The list of reviewers.
categoryPathStringtm.indThe path of the business category.

The FML statement used to query data standard sets is as follows:

show dict groups; Output parameters

ParameterTypeExampleDescription
nameStringE-commerceThe name of the directory.
detailTypeStringDICTThe subtype of the directory.
parentUuidStringdy-123456The UUID of the parent directory.
descriptionStringDescriptionThe description of the directory.
codeStringindThe code of the business category.
uuidListobj-123456The unique identifier of the object.
gmtCreateTimeStamp1644397025000The creation time.
gmtModifiedTimeStamp1644459965000The modification time.
creatorIdString0123456The base ID of the creator.
creatorNameStringJohn DoeThe name of the creator.
modifierIdString0123456The base ID of the modifier.
modifierNameStringJohn DoeThe name of the modifier.

The FML statement used to query data standards is as follows:

show dicts; Output parameters

ParameterTypeExampleDescription
codeStringshop_typeThe English abbreviation.
englishNameStringshop typeThe English name.
nameStringShop typeThe Chinese name.
noStringSN00001The standard number.
dataTypeStringSTRINGThe data type.
lengthInteger10The column length.
numericalPrecisionInteger2The column precision.
notNullBooleanfalseSpecifies whether the value cannot be empty.
defaultValueStringFlagship storeThe default value.
parentNoStringSN0001The number of the parent standard.
parentNameStringShopThe name of the parent standard.
codeTableNoStringshop_typeThe number of the referenced code table.
codeTableNameStringShop type code tableThe name of the referenced code table.
codeTableUuidStringtb-0001The UUID of the referenced code table.
directoryUuidStringDirectory UUIDThe UUID of the associated directory.
directoryNameStringShop directoryThe name of the associated directory.
descriptionStringremarkThe description.
uuidStringobj-123456The unique identifier of the object.
gmtCreateTimeStamp1644397025000The creation time.
gmtModifiedTimeStamp1644459965000The modification time.
creatorIdString0123456The base ID of the creator.
creatorNameStringJohn DoeThe name of the creator.
modifierIdString0123456The base ID of the modifier.
modifierNameStringJohn DoeThe name of the modifier.

The FML statement used to query standard codes is as follows:

show code tables; Output parameters

ParameterTypeExampleDescription
codeStringshop_typeThe code.
nameStringShop typeThe name.
extendNameStringshop typeThe English name.
descriptionStringremarkThe description.
uuidStringobj-123456The unique identifier of the object.
gmtCreateTimeStamp1644397025000The creation time.
gmtModifiedTimeStamp1644459965000The modification time.
creatorIdString0123456The base ID of the creator.
creatorNameStringJohn DoeThe name of the creator.
modifierIdString0123456The base ID of the modifier.
modifierNameStringJohn DoeThe name of the modifier.

The FML statement used to query measurement unit groups is as follows:

show measure_unit groups; Output parameters

ParameterTypeExampleDescription
nameStringE-commerceThe name of the directory.
detailTypeStringDICTThe subtype of the directory.
parentUuidStringdy-123456The UUID of the parent directory.
descriptionStringDescriptionThe description of the directory.
codeStringindThe category code.
uuidStringobj-123456The unique identifier of the object.
gmtCreateTimeStamp1644397025000The creation time.
gmtModifiedTimeStamp1644459965000The modification time.
creatorIdString0123456The base ID of the creator.
creatorNameStringJohn DoeThe name of the creator.
modifierIdString0123456The base ID of the modifier.
modifierNameStringJohn DoeThe name of the modifier.

The FML statement used to query measurement units is as follows:

show measure_units; Output parameters

ParameterTypeExampleDescription
codeStringyuanThe English abbreviation.
englishNameStringRMBThe English name.
nameStringYuanThe Chinese name.
directoryUuidStringdi-0001The UUID of the unit group.
directoryNameStringCurrencyThe name of the unit group.
descriptionStringremarkThe description.
uuidStringobj-123456The unique identifier of the object.
gmtCreateTimeStamp1644397025000The creation time.
gmtModifiedTimeStamp1644459965000The modification time.
creatorIdString0123456The base ID of the creator.
creatorNameStringJohn DoeThe name of the creator.
modifierIdString0123456The base ID of the modifier.
modifierNameStringJohn DoeThe name of the modifier.

The FML statement used to query standard code content is as follows:

show codes from code_table; Output parameters

ParameterTypeExampleDescription
codeContentString0The code content value.
extendNameContentStringfemaleThe extended standard code name.
nameContentStringFemaleThe standard code name.
descriptionStringremarkThe standard code description.
uuidStringobj-123456The unique identifier of the object.
gmtCreateTimeStamp1644397025000The creation time.
gmtModifiedTimeStamp1644459965000The modification time.
creatorIdString0123456The base ID of the creator.
creatorNameStringJohn DoeThe name of the creator.
modifierIdString0123456The base ID of the modifier.
modifierNameStringJohn DoeThe name of the modifier.

The FML statement used to query naming dictionaries is as follows:

show naming dicts; Output parameters

ParameterTypeExampleDescription
codeStringshopThe English abbreviation.
creatorIdString0123456The base ID of the creator.
creatorNameStringJohn DoeThe name of the creator.
extendNameStringshopThe English name.
gmtCreateTimeStamp1644397025000The creation time.
gmtModifiedTimeStamp1644459965000The modification time.
modifierIdString0123456The base ID of the modifier.
modifierNameStringJohn DoeThe name of the modifier.
nameStringShopThe Chinese name.
ownerIdString0123456The base ID of the owner.
ownerNameStringJohn DoeThe name of the owner.
uuidStringobj-123456The unique identifier of the object.

The FML statement used to query table information is as follows:

show tables; Output parameters

ParameterTypeExampleDescription
codeStringdim_shopThe table code.
nameStringShop dimension tableThe Chinese name of the table.
typeInteger1The table type. Valid values:
0: Fact table.
1: Dimension table.
3: Aggregate table.
4: Application table.
5: Source table.
6: Dimension.
















detailTypeStringnormalThe specific table type. Valid values:
Normal dimension.
Enumeration dimension.
Transaction fact.







businessProcessUuidStringbp-123456The UUID of the business process.
businessUnitUuidStringbu-123456The UUID of the business unit.
dataWarehouseLayerUuidStringly-123456The UUID of the data warehouse layer.
businessCategoryUuidStringbc-123456The UUID of the business category.
ownerIdString0123456The base ID of the owner.
ownerNameStringJohn DoeThe name of the owner.
descriptionStringShop table descriptionThe description.
configStringJSON stringThe extended attribute configuration.
lifeCycleInteger365The lifecycle of the table.
uuidStringobj-123456The unique identifier of the object.
gmtCreateTimeStamp1644397025000The creation time.
gmtModifiedTimeStamp1644459965000The modification time.
creatorIdString0123456The base ID of the creator.
creatorNameStringJohn DoeThe name of the creator.
modifierIdString0123456The base ID of the modifier.
modifierNameStringJohn DoeThe name of the modifier.

The FML statement used to query dimension tables is as follows:

show dim tables; Output parameters

ParameterTypeExampleDescription
codeStringdim_shopThe table code.
nameStringShop dimension tableThe Chinese name of the table.
typeInteger1The table type. Valid values:
0: Fact table.
1: Dimension table.




detailTypeStringnormalThe specific table type. Valid values:
Normal dimension.
Enumeration dimension.
Transaction fact.







businessProcessUuidStringbp-123456The UUID of the business process.
businessUnitUuidStringbu-123456The UUID of the business unit.
dataWarehouseLayerUuidStringly-123456The UUID of the data warehouse layer.
businessCategoryUuidStringbc-123456The UUID of the business category.
ownerIdString0123456The base ID of the owner.
ownerNameStringJohn DoeThe name of the owner.
descriptionStringShop table descriptionThe description.
configStringJSON stringThe extended attribute configuration.
lifeCycleInteger365The lifecycle of the table.
uuidStringobj-123456The unique identifier of the object.
gmtCreateTimeStamp1644397025000The creation time.
gmtModifiedTimeStamp1644459965000The modification time.
creatorIdString0123456The base ID of the creator.
creatorNameStringJohn DoeThe name of the creator.
modifierIdString0123456The base ID of the modifier.
modifierNameStringJohn DoeThe name of the modifier.

The FML statement used to query fact tables is as follows:

show fact tables; Output parameters

ParameterTypeExampleDescription
codeStringdim_shopThe table code.
nameStringShop dimension tableThe Chinese name of the table.
typeInteger1The table type. Valid values:
0: Fact table.
1: Dimension table.




detailTypeStringnormalThe specific table type. Valid values:
Normal dimension.
Enumeration dimension.
Transaction fact.







businessProcessUuidStringbp-123456The UUID of the business process.
businessUnitUuidStringbu-123456The UUID of the business unit.
dataWarehouseLayerUuidStringly-123456The UUID of the data warehouse layer.
businessCategoryUuidStringbc-123456The UUID of the business category.
ownerIdString0123456The base ID of the owner.
ownerNameStringJohn DoeThe name of the owner.
descriptionStringShop table descriptionThe description.
configStringJSON stringThe extended attribute configuration.
lifeCycleInteger365The lifecycle of the table.
uuidStringobj-123456The unique identifier of the object.
gmtCreateTimeStamp1644397025000The creation time.
gmtModifiedTimeStamp1644459965000The modification time.
creatorIdString0123456The base ID of the creator.
creatorNameStringJohn DoeThe name of the creator.
modifierIdString0123456The base ID of the modifier.
modifierNameStringJohn DoeThe name of the modifier.

The FML statement used to query aggregate tables is as follows:

show dws tables; Response parameters

Parameter nameParameter typeExample valueDescription
dataDomainUuidStringdm-12345The UUID of the data domain.
dataDomainCodeStringmemberThe code of the data domain.
dataDomainNameStringMemberThe name of the data domain.
timePeriodsList[{"uuid": "uuid", "code": "code", "name": "Name"}]The list of time periods.
uuidStringobj-123456The unique identifier of the object.
codeStringdws_001The table name.
nameStringPayment summary tableThe Chinese name of the table.
adjunctsList[{"uuid": "uuid", "code": "code", "name": "Name"}]The list of modifiers.
dimensionsList[{"uuid": "uuid", "code": "code", "name": "Name"}]The granularity.
bizEntityUuidStringdim-123456The UUID of the business entity.
bizEntityCodeStringdim_shopThe English abbreviation of the business entity.
bizEntityNameStringShop tableThe Chinese name of the business entity.
relUuidStringdim_a-123456The UUID of the associated dimension.
typeInteger3The table type. Valid values: 3 (Aggregate table).
detailTypeStringdws_normalThe specific table type. Valid values:
dws_normal: Regular aggregate table.
dws_advanced: Light aggregate table.




businessProcessUuidStringbp-123456The UUID of the business process.
businessUnitUuidStringbu-123456The UUID of the business unit.
dataWarehouseLayerUuidStringly-123456The UUID of the data warehouse layer.
businessCategoryUuidStringbc-123456The UUID of the business category.
ownerIdString0123456The BaseId of the owner.
ownerNameStringJohn DoeThe name of the owner.
descriptionStringShop table remarksThe description.
configStringJSON stringThe extended attribute configuration.
lifeCycleInteger365The lifecycle of the table.
gmtCreateTimeStamp1644397025000The creation time.
gmtModifiedTimeStamp1644459965000The modification time.
creatorIdString0123456The BaseId of the creator.
creatorNameStringJohn DoeThe name of the creator.
modifierIdString0123456The BaseId of the modifier.
modifierNameStringJohn DoeThe name of the modifier.

The FML statement used to query application tables is as follows.

show ads tables; Response parameters

Parameter nameParameter typeExample valueDescription
dataDomainUuidStringdm-12345The UUID of the data domain.
dataDomainCodeStringmemberThe code of the data domain.
dataDomainNameStringMemberThe name of the data domain.
timePeriodsList[{"uuid": "uuid", "code": "code", "name": "Name"}]The list of time periods.
uuidStringobj-123456The unique identifier of the object.
codeStringdws_001The table name.
nameStringPayment summary tableThe Chinese name of the table.
adjunctsList[{"uuid": "uuid", "code": "code", "name": "Name"}]The list of modifiers.
dimensionsList[{"uuid": "uuid", "code": "code", "name": "Name"}]The granularity.
bizEntityUuidStringdim-123456The UUID of the business entity.
bizEntityCodeStringdim_shopThe English abbreviation of the business entity.
bizEntityNameStringShop tableThe Chinese name of the business entity.
relUuidStringdim_a-123456The UUID of the associated dimension.
typeInteger1The table type. Valid values:
0: Fact table.
1: Dimension table.




detailTypeStringnormalThe specific table type. Valid values:
normal: Regular dimension.
enum: Enumerated dimension.
transaction: Transaction fact.







businessProcessUuidStringbp-123456The UUID of the business process.
businessUnitUuidStringbu-123456The UUID of the business unit.
dataWarehouseLayerUuidStringly-123456The UUID of the data warehouse layer.
businessCategoryUuidStringbc-123456The UUID of the business category.
ownerIdString0123456The BaseId of the owner.
ownerNameStringJohn DoeThe name of the owner.
descriptionStringShop table remarksThe description.
configStringJSON stringThe extended attribute configuration.
lifeCycleInteger365The lifecycle of the table.
gmtCreateTimeStamp1644397025000The creation time.
gmtModifiedTimeStamp1644459965000The modification time.
creatorIdString0123456The BaseId of the creator.
creatorNameStringJohn DoeThe name of the creator.
modifierIdString0123456The BaseId of the modifier.
modifierNameStringJohn DoeThe 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 nameParameter typeExample valueDescription
tableUuidStringtb-123456The UUID of the table.
tableCodeStringdim_shopThe code of the table.
tableNameStringShop tableThe name of the table.
columnCodeStringshop_idThe code of the column.
columnNameStringShop IDThe name of the column.
columnUuidStringcol-123456The UUID of the column.
columnTypeStringSTRINGThe data type of the column.
columnCategoryStringATTRIBUTEThe category of the column.

The FML statement used to query column information is as follows.

show columns from table_code; Response parameters

Parameter nameParameter typeExample valueDescription
codeStringseller_idThe code of the column.
nameString卖家 IdThe Chinese name of the column.
dataTypeStringSTRINGThe data type.
typeStringATTRIBUTEThe field type.
isPrimaryKeyBooleanfalseSpecifies whether the column is a primary key.
isPartitionKeyBooleanfalseSpecifies whether the column is a partition key.
partitionOrderInteger1The order of the partition key.
notNullBooleantrueSpecifies whether the column cannot be null.
dataDictionaryUuidStringmember_idThe code of the data dictionary.
dataDictionaryCodeStringMember IDThe name of the data dictionary.
codeTableUuidStringcd-123456The UUID of the associated code table.
codeTableCodeStringsexThe code of the associated code table.
codeTableNameStringGenderThe name of the associated code table.
measureUnitCodeStringpercentThe code of the associated unit.
measureUnitNameStringCentThe name of the associated unit.
sourceProjectNameStringautotestThe name of the source project.
sourceTableCodeStringdictThe code of the source table.
sourceColumnCodeStringageThe code of the source field.
sourceRelationTagStringlabelThe redundant relationship tag.
descriptionStringField remarksThe description.
orderIdString1The order of the field.
columnGroupNameIntegercol_group_1The field group to which the column belongs.
configStringJSON stringThe extended attribute configuration.
uuidStringobj-123456The unique identifier of the object.
gmtCreateTimeStamp1644397025000The creation time.
gmtModifiedTimeStamp1644459965000The modification time.
creatorIdString0123456The BaseId of the creator.
creatorNameStringJohn DoeThe name of the creator.
modifierIdString0123456The BaseId of the modifier.
modifierNameStringJohn DoeThe name of the modifier.

The FML statement used to query modifiers is as follows.

show adjuncts; Response parameters

Parameter nameParameter typeExample valueDescription
businessUnitUuidStringbu-123456The UUID of the business unit.
businessUnitCodeStringtest_buThe code of the business unit.
businessUnitNameStringTest unitThe name of the business unit.
dataDomainUuidStringdt-123456The UUID of the data domain.
dataDomainCodeStringmemberThe code of the data domain.
dataDomainNameStringMember domainThe name of the data domain.
categoryUuidStringcy-123456The UUID of the business category.
categoryCodeStringtradeThe code of the business category.
categoryNameStringE-commerceThe name of the business category.
typeAdjunctTypeEnumDIM_VALThe type of the modifier.
codeStringbeautyThe English abbreviation.
nameString美妆The Chinese name.
extendNameStringbeautyThe English name.
descriptionStringBeauty descriptionThe description.
bizExpressionStringUsed to define how report statistics are calculatedThe business definition.
expressionStringbeauty = 1The semantic expression of the modifier.
bizEntityUuidStringdim-123456The UUID of the business entity.
bizEntityCodeStringdim_shopThe English abbreviation of the business entity.
bizEntityNameString店铺表The Chinese name of the business entity.
relUuidStringdim_a-123456The UUID of the associated dimension.
ownerIdString0123456The BaseId of the owner.
ownerNameStringJohn DoeThe name of the owner.
isDeletedDeleteTagEnumNOSpecifies whether the object is deleted.
uuidStringobj-123456The unique identifier of the object.
gmtCreateTimeStamp1644397025000The creation time.
gmtModifiedTimeStamp1644459965000The modification time.
creatorIdString0123456The BaseId of the creator.
creatorNameStringJohn DoeThe name of the creator.
modifierIdString0123456The BaseId of the modifier.
modifierNameStringJohn DoeThe name of the modifier.

The FML statement used to query time periods is as follows.

show time_periods; Response parameters

Parameter nameParameter typeExample valueDescription
businessUnitUuidStringbu-123456The business unit to which the time period belongs.
businessUnitCodeStringtest_buThe code of the business unit.
typeTimePeriodTypeEnumDAYThe type of the time period.
typeNameStringDayThe name of the time period type.
codeString1dThe English abbreviation.
nameString1 天The Chinese name.
extendNameString1dThe English name.
descriptionStringTime period descriptionThe description.
isDeletedDeleteTagEnumNOSpecifies whether the object is deleted.
timeBeginStringstart_expressionThe start time expression.
timeEndStringend_expressionThe end time expression.
gmtCreateTimeStamp1633885261000The creation time.
gmtModifiedTimeStamp1633885261000The modification time.
modifierIdString0123456The BaseId of the modifier.
modifierNameStringJohn DoeThe name of the modifier.
ownerIdString0123456The BaseId of the owner.
ownerNameStringJohn DoeThe name of the owner.
beginOffsetInteger1The offset of the start period.
endOffsetInteger1The offset of the end period.
firstDayInteger1The 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]).
uuidStringobj-123456The unique identifier of the object.
creatorIdString0123456The BaseId of the creator.
creatorNameStringJohn DoeThe name of the creator.

The FML statement used to query atomic metrics is as follows.

show atomic indicators; Response parameters

Parameter nameParameter typeExample valueDescription
dataDistinctYesOrNoEnumYESSpecifies whether data deduplication is required. Valid values:
YES
NO.




aggFunctionTypeAggFunctionEnumSUMThe aggregation function type of the metric. Valid values:
SUM
COUNT
AVG
MAX
MIN
RATE
RANK
UNDEFINED.






















calExpressionStringpriceThe calculation definition (code).
dataTypeDataTypeNameEnumTINYINTThe data type. Valid values: TINYINT, SMALLINT, INT, BIGINT, BINARY, FLOAT, DOUBLE, DECIMAL, VARCHAR, CHAR, STRING, DATE, DATETIME, TIMESTAMP, BOOLEAN, ARRAY, MAP, STRUCT, and JSON.
dataRoundStringNThe data precision. Valid values:
N
M.




dataUnitUuidStringdu-123456The UUID of the metric unit.
dataUnitCodeStringpercentThe code of the metric unit.
dataUnitNameStringCentThe name of the metric unit.
bizExpressionStringSum of payment amountThe business definition.
dataRollUpTypeStringAGG_FUNCTIONThe data roll-up method. Valid values:
AGG_FUNCTION
SUM_THEN_RATE
RATE_THEN_AVG
NOT_SUPPORT.










businessUnitUuidStringbu-0001The UUID of the business unit.
businessUnitCodeStringproject_codeThe code of the business unit.
businessProcessUuidStringdi-0002The UUID of the business process.
businessProcessCodeStringpayThe code of the business process.
businessProcessNameStringPaymentThe name of the business process.
dataDomainUuidStringdi-0003The UUID of the data domain.
dataDomainCodeStringtrdThe code of the data domain.
dataDomainNameStringTransactionThe name of the data domain.
categoryUuidStringdi-0001The UUID of the business category.
categoryCodeStringtbThe code of the business category.
categoryNameStringTaobaoThe name of the business category.
typeStringATOMICThe metric type. Valid values:
ATOMIC
DERIVATIVE
DERIVATIVE_COMPOSITE.







codeStringpay_amtThe English abbreviation.
nameString支付金额The Chinese name.
extendNameStringpay amountThe English name.
descriptionStringremarkThe description.
statusStringNORMALThe metric status. Valid values:
DRAFT
DEV
NORMAL.







ownerIdString0001The BaseId of the owner.
ownerNameStringOwner nameThe name of the owner.
isDeletedDeleteTagEnumNOSpecifies whether the object is deleted. Valid values:
YES
NO.




uuidStringobj-123456The unique identifier of the object.
gmtCreateTimeStamp1644397025000The creation time.
gmtModifiedTimeStamp1644459965000The modification time.
creatorIdString0123456The BaseId of the creator.
creatorNameStringJohn DoeThe name of the creator.
modifierIdString0123456The BaseId of the modifier.
modifierNameStringJohn DoeThe name of the modifier.

The FML statement used to query derived metrics is as follows.

show derivative indicators; Response parameters

ParameterTypeExampleDescription
timePeriodUuidStringtp-0001The UUID of the time period.
timePeriodCodeString1dThe English abbreviation of the time period.
timePeriodNameString近 1 天The Chinese name of the time period.
adjunctUuidsList["adj-001"]The list of modifier UUIDs.
adjunctCodesList["male"]The list of English abbreviations of modifiers.
adjunctNamesList男性The list of Chinese names of modifiers.
atomicIndicatorUuidStringind-a-0001The UUID of the atomic metric.
atomicIndicatorCodeStringpay_amtThe English abbreviation of the atomic metric.
atomicIndicatorNameString支付金额The Chinese name of the atomic metric.
dataTypeDataTypeNameEnumBIGINTThe data type. Valid values: TINYINT, SMALLINT, INT, BIGINT, BINARY, FLOAT, DOUBLE, DECIMAL, VARCHAR, CHAR, STRING, DATE, DATETIME, TIMESTAMP, BOOLEAN, ARRAY, MAP, STRUCT, and JSON.
bizEntityUuidStringdim-123456The UUID of the business entity.
bizEntityCodeStringdim_shopThe English abbreviation of the business entity.
bizEntityNameString店铺表The Chinese name of the business entity.
relUuidStringdim_a-123456The UUID of the associated dimension.
indHashStringhash-0001The hash value of the metric.
suggestCodeStringpay_amt_1dThe recommended code.
businessUnitUuidStringbu-0001The UUID of the business unit.
businessUnitCodeStringproject_codeThe code of the business unit.
businessProcessUuidStringdi-0002The UUID of the business process.
businessProcessCodeStringpayThe code of the business process.
businessProcessNameStringPaymentThe name of the business process.
dataDomainUuidStringdi-0003The UUID of the data domain.
dataDomainCodeStringtrdThe code of the data domain.
dataDomainNameStringTradeThe name of the data domain.
categoryUuidStringdi-0001The UUID of the category.
categoryCodeStringtbThe code of the category.
categoryNameStringTaobaoThe name of the category.
typeIndicatorTypeEnumATOMICThe metric type. Valid values:
ATOMIC
DERIVATIVE
DERIVATIVE_COMPOSITE







codeStringpay_amtThe English abbreviation.
nameString支付金额The Chinese name.
extendNameStringpay amountThe English name.
descriptionStringremarkThe description.
statusIndicatorStatusEnumNORMALThe metric status. Valid values:
DRAFT
DEV
NORMAL







ownerIdString0001The base ID of the owner.
ownerNameStringOwner nameThe name of the owner.
isDeletedDeleteTagEnumNOSpecifies whether the object is deleted. Valid values:
YES
NO




uuidStringobj-123456The unique identifier of the object.
gmtCreateTimeStamp1644397025000The creation time.
gmtModifiedTimeStamp1644459965000The modification time.
creatorIdString0123456The base ID of the creator.
creatorNameStringJohn DoeThe name of the creator.
modifierIdString0123456The base ID of the modifier.
modifierNameStringJohn DoeThe name of the modifier.

The FML statement used to query composite metrics is as follows.

show derivative composite indicators; Response elements

ParameterTypeExampleDescription
businessUnitCodeStringproject_codeThe name of the workspace.
businessProcessUuidStringdi-0002The UUID of the business process.
businessProcessCodeStringpayThe code of the business process.
businessProcessNameStringPaymentThe name of the business process.
dataDomainUuidStringdi-0003The UUID of the data domain.
dataDomainCodeStringtrdThe code of the data domain.
dataDomainNameStringTransactionThe name of the data domain.
categoryUuidStringdi-0001The UUID of the category.
categoryCodeStringtbThe code of the category.
categoryNameStringTaobaoThe name of the category.
typeStringDERIVATIVE_COMPOSITEThe calculation mode. Valid values: DERIVATIVE_COMPOSITE (calculation expression) and DERIVATIVE_COMPARISON (period-over-period comparison).
codeStringpay_amtThe English abbreviation of the metric.
nameString支付金额The Chinese name of the metric.
extendNameStringpay amountThe English name of the metric.
descriptionStringremarkThe description of the metric.
calculateExpressionString{@pay_amt_1d[Last 1 day_Payment amount]}/{@pay_amt_1m[Last 30 days_Payment amount]}The calculation expression.
comparisonPeriodTypeStringDAY_MOMThe 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).
comparisonIndicatorUuidStringobj-123456The UUID of the metric used for period-over-period comparison.
comparisonIndicatorCodeStringpay_amt_1dThe English abbreviation of the metric used for period-over-period comparison.
comparisonIndicatorNameString近 1 天_支付金额The Chinese name of the metric used for period-over-period comparison.
ownerIdString0001The base ID of the metric owner.
ownerNameStringJohn DoeThe name of the metric owner.
isDeletedDeleteTagEnumNOSpecifies whether the object is deleted. Valid values: YES and NO.
uuidStringobj-123456The unique identifier of the object.
gmtCreateTimeStamp1644397025000The creation time of the metric.
gmtModifiedTimeStamp1644459965000The modification time of the metric.
creatorIdString0123456The base ID of the metric creator.
creatorNameStringJohn DoeThe name of the metric creator.
modifierIdString0123456The base ID of the metric modifier.
modifierNameStringJohn DoeThe 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

ParameterTypeExampleDescription
uuidStringobj-123456The unique identifier of the metric.
codeStringpay_amtThe English abbreviation of the metric.
nameString支付金额The Chinese name of the metric.
extendNameStringpay amountThe English name of the metric.
relationsListSee 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"
    }
]
ParameterTypeExampleDescription
uuidStringobj-123456The unique identifier of the model.
codeStringdws_001The English abbreviation of the model.
nameString支付汇总表The Chinese name of the model.
extendNameStringdws_001The English name of the model.
entityTypeEntityTypeEnumTableThe entity type of the dependent metric. Valid values include but are not limited to TABLE, BASE_ATOMIC_INDICATOR, and BASE_DERIVATIVE_INDICATOR.
entityTypeNameStringTableThe name of the entity type.
entitySubTypeStringDWS_TABLEThe entity subtype. Valid values include but are not limited to DWS_TABLE, ATOMIC_INDICATOR, and DERIVATIVE_INDICATOR.
entitySubTypeNameStringAggregate tableThe name of the entity subtype.
ownerIdString0001The base ID of the owner.
ownerNameStringZhang SanThe 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.