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
  • 0 is treated as false;
  • 1 is treated as true
  • true
  • false
  • String STRING String / "orange"
    List LIST String array Array "Tesla","Volkswagen","Audi"
    Datetime DATETIME Long integer 13-digit numeric timestamp
  • "2015-06-19 17:51:21"
  • "2015-06-19"
  • 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
  • If the original value contains non-numeric characters, the system stores it but cannot convert it for use
  • If the original value is pure numeric, it is used as numeric
  • The system stores it but cannot convert it for use Stores the original value and uses it as numeric
    Boolean
  • If 0 is reported, converted to false
  • If 1 is reported, converted to true
  • If another value is reported, the system stores it but cannot convert it for use
  • The system stores it but cannot convert it for use
  • If 0 is reported, converted to false
  • If 1 is reported, converted to true
  • If another value is reported, 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
  • If the original value contains non-numeric characters, the system stores it but cannot convert it for use
  • If the original value is pure numeric, it is used as datetime
  • The system stores it but cannot convert it for use Stores the original value and uses it as datetime
    Was this document helpful?

    Copyright 2011-2026, jiguang.cn, All Rights Reserved. 粤ICP备12056275号-13 Shenzhen Hexun Huagu Information Technology Co., Ltd.

    Open in Docs Center