[[ https://developer.mozilla.org/en-US/docs/Web/API/Navigator/deviceMemory | The Navigator.deviceMemory property ]] is used to populate the deviceMemory property of a NavigationTiming event. That property is a floating point number.
The NavigationTiming schema defines the deviceMemory field as having the number type, reflecting the above. Indeed, the field is set to the value of the above without any processing.
However, the corresponding column in the Hive table has the BIGINT type:
use event; # The describe statement can't handle a complex column name with more than 2 separators... describe navigationtiming.event.deviceMemory; +---------------+------------+--------------------+ | col_name | data_type | comment | +---------------+------------+--------------------+ | deviceMemory | bigint | from deserializer | +---------------+------------+--------------------+
Expected results
use event; describe navigationtiming.event.deviceMemory; +---------------+------------+--------------------+ | col_name | data_type | comment | +---------------+------------+--------------------+ | deviceMemory | double | from deserializer | +---------------+------------+--------------------+