Google Cloud Dataflow to BigQuery - UDF - convert unixTimestamp to local time
问题 What is the best way to convert unixTimestamp to local time in the following scenario? I am using Pub/Sub Subscription to BigQuery Template. Dataflow fetches data in json format from PubSub, does the transformation, inserts into BigQuery Preferably, I want to use UDF for data transformation setup. (For simplicity,) Input data includes only unixTimestamp. Example: {"unixTimestamp": "1612325106000"} Bigquery table has 3 columns: unix_ts:INTEGER, iso_dt:DATETIME, local_dt:DATETIME where unix_ts