I hereby claim:
- I am jerryjj on github.
- I am jerryjj (https://keybase.io/jerryjj) on keybase.
- I have a public key ASCn6_F-8jiE4qWc6qUwPClHbxmDxy53aF3cmgxSKnFnbQo
To claim this, I am signing this object:
/** | |
* A transforms incoming device signal event to BQ schema event | |
* @param {string} inJson | |
* @return {string} outJson | |
*/ | |
function transformDeviceSignalEvent(inJson) { | |
var original = JSON.parse(inJson) | |
var now = new Date() |
WITH dummy_data AS ( | |
SELECT * FROM unnest( | |
array<struct<device_id string, ride_id string, timestamp TIMESTAMP, event_name string, latitude float64, longitude float64, battery_percentage int64, power_on_status bool>>[ | |
("0001", "123456", TIMESTAMP("2019-10-07 13:28:30.000 UTC"), "poweron", 60.1696993, 24.9294322, 88, true), | |
("0001", "123456", TIMESTAMP("2019-10-07 13:29:00.000 UTC"), "gps", 60.16962, 24.9288, 86, true), | |
("0001", "123456", TIMESTAMP("2019-10-07 13:29:30.000 UTC"), "gps", 60.16958, 24.92813, 84, true), | |
("0001", "123456", TIMESTAMP("2019-10-07 13:30:00.000 UTC"), "gps", 60.16969, 24.92074, 82, true), | |
("0001", "123456", TIMESTAMP("2019-10-07 13:30:30.000 UTC"), "poweroff", 60.1680235, 24.9222142, 81, false), | |
("0002", "123457", TIMESTAMP("2019-10-07 13:29:00.000 UTC"), "poweron", 60.1696993, 24.9294322, 20, true), | |
("0002", "123457", TIMESTAMP("2019-10-07 13:29:30.000 UTC"), "gps", 60.16962, 24.9288, 18, true), |
[ | |
{ | |
"name": "timestamp", | |
"type": "TIMESTAMP" | |
}, | |
{ | |
"name": "processing_timestamp", | |
"type": "TIMESTAMP" | |
}, | |
{ |
I hereby claim:
To claim this, I am signing this object:
Verifying that +jerryjayjay is my blockchain ID. https://onename.com/jerryjayjay |