Attribute Data Types
Last updated:2023-02-21
Attribute Data Types
Data Type Description
The type of an attribute is determined by Data Center - Metadata Management - Attribute Management - Attribute Data Type. The Operation Growth platform supports five data types:
| Chinese Name | Attribute Data Type | Storage Type | Data Requirement | Display Example |
|---|---|---|---|---|
| Numeric | NUMBER | Number | Pure number, including decimals | 12 or 12.0 |
| Boolean | BOOL | Integer | Only 0 and 1 are supported |
|
| String | STRING | String | / | "orange" |
| List | LIST | String array | Array | "Tesla","Volkswagen","Audi" |
| Datetime | DATETIME | Long integer | 13-digit numeric timestamp |
When reporting data later, if the reported type does not match the type displayed in metadata, the system attempts type conversion. If conversion is impossible or fails, the data cannot be used after reporting. The attempted type conversions are as follows:
Type Conversion Rules
| Configured Data Type | Actually Reported Numeric | Actually Reported Boolean (true, false) | Actually Reported String | Actually Reported List | Actually Reported Datetime (timestamp) |
|---|---|---|---|---|---|
| Numeric | Stores the original value and uses it as numeric | The system stores it but cannot convert it for use | The system stores it but cannot convert it for use | Stores the original value and uses it as numeric | |
| Boolean | The system stores it but cannot convert it for use | The system stores it but cannot convert it for use | The system stores it but cannot convert it for use | ||
| String | Stores the original value and uses it as string | Stores the original value and uses it as string | Stores the original value and uses it as string | The system stores it but cannot convert it for use | Stores the original value and uses it as string |
| List | The system stores it but cannot convert it for use | The system stores it but cannot convert it for use | The system stores it but cannot convert it for use | Stores the original value and uses it as list | The system stores it but cannot convert it for use |
| Datetime (timestamp) | Stores the original value and uses it as datetime | The system stores it but cannot convert it for use | The system stores it but cannot convert it for use | Stores the original value and uses it as datetime |
Was this document helpful?