The attribute type identifies the type of data allowed for the attribute value (key-value pair).
The Dgraph supports the following attribute data types:
Attribute type | Description |
---|---|
mdex:string | XML-valid character strings. |
mdex:int | A 32-bit signed integer. Although the Dgraph supports mdex:int attributes, they are not used by Data Processing workflows. |
mdex:long | A 64-bit signed integer. mdex:long values accepted by the Dgraph can be up to the value of 9,223,372,036,854,775,807. |
mdex:double | A floating point value. |
mdex:time | Represents the hour and minutes of an instance of time, with the optional specification of fractional seconds. The time value can be specified as a universal (UTC) date time or as a local time plus a UTC time zone offset. |
mdex:dateTime | Represents the year, month, day, hour, minute, and seconds of a time point, with the optional specification of fractional seconds. The dateTime value can be specified as a universal (UTC) date time or as a local time plus a UTC time zone offset. |
mdex:duration | Represents a duration of the days, hours, and minutes of an instance of time. Although the Dgraph supports mdex:duration attributes, they are not used by Data Processing workflows. |
mdex:boolean | A Boolean. Valid Boolean values are true (or 1, which is a synonym for true) and false (or 0, which is a synonym for false). |
mdex:geocode | A latitude and longitude pair. The latitude and longitude are both double-precision floating-point values, in units of degrees. |
During a Data Processing workflow, the created Dgraph attributes are derived from the columns in a Hive table. For information on the mapping of Hive column data types to Dgraph attribute data types, see Data type discovery.