How Do I Change A Field Type?¶
You may see a field or column with an incorrect type, such as a data represented as a string or number. To correct this, make a new column. If you use the same name as the original field, it will be replaced. For example, this snippet will parse an ISO8601 formatted string representing 2:01 PM August 13 2024 in Pacific Daylight time to an Observe timestamp.
// timestamp="2024-08-13T14:01:34-07:00"
make_col newtime:parse_isotime(timestamp)